Webservice proxy class generation
Posted
by kaivalya
on Stack Overflow
See other posts from Stack Overflow
or by kaivalya
Published on 2010-03-24T11:08:33Z
Indexed on
2010/03/24
11:13 UTC
Read the original article
Hit count: 286
I include the below xsd file:
<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns="http://www.xxxx.com/schemas/2005/06/messages" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://www.xxxx.com/schemas/2005/06/messages" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:include schemaLocation="xxxxCommonTypes.xsd" />
<xs:element name="HotelDetailRQ">
<xs:annotation>
<xs:documentation>Request data to obtain detailed information for the specified hotel product.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:complexContent mixed="false">
<xs:extension base="CoreRequest">
<xs:sequence>
<xs:element name="HotelCode">
<xs:annotation>
<xs:documentation>Hotel code to obtain detailed inormation.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1" />
<xs:maxLength value="10" />
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
</xs:schema>
to a wsdl file via;
<xsd:schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://axis.frontend.hydra.xxxx.com">
<xsd:import schemaLocation="C:\Users\xxxx\HotelDetailRQ.xsd" namespace="http://www.xxxx.com/schemas/2005/06/messages" />
</xsd:schema>
The problem is when I add the wsdl file to visual studio as a web reference, it does not generate the HotelDetailRQ proxy class in reference.cs file. So I am unable to use a generated HotelDetailRQ class.
I am not experienced in using xsd files or wsdl files. Can you point me to where I might be making mistake here?
© Stack Overflow or respective owner