I have built a WebService so that our clients can place an Order through it. WebMethod - PlaceOrder(byval order As Order) DataType Order is a Structure-
Structure OrderItem Public ProductID As String Public Quantity As Integer End Structure Structure Order Public orderItems() As OrderItem End Structure WSDL -- <s:complexType name="Order"> <s:sequence> <s:element minOccurs="0" maxOccurs="1" name="orderItems" type="tns: ArrayOfOrderItem" /> </s:sequence> - <s:complexType name="ArrayOfOrderItem"> - <s:sequence> <s:element minOccurs="0" maxOccurs="unbounded" name="orderItem" type="tns:orderItem" /> </s:sequence> - <s:complexType name="orderItem"> - <s:sequence> <s:element minOccurs="0" maxOccurs="1" name="productID" type="s:string" /> <s:element minOccurs="1" maxOccurs="1" name="quantity" type="s:int" /> </s:sequence> But our Clients Equivalent WSDL is <s:complexType name="Order"> <s:sequence> <s:element minOccurs="0" maxOccurs="1" name="orderItems" type="tns:ArrayOfOrderItem" /> </s:sequence> - <s:complexType name="ArrayOfOrderItem"> - <s:sequence> <s:element minOccurs="0" maxOccurs="unbounded" name="orderItem" type="tns:OrderItem" /> </s:sequence> - <s:complexType name="OrderItem"> - <s:sequence> <s:element minOccurs="0" maxOccurs="1" name="productID" type="s:string" /> <s:element minOccurs="1" maxOccurs="1" name="quantity" type="s:int" /> </s:sequence> Notice the Difference in the Case of OrderItem Type. And Clients are getting Error is unknown type OrderItem. Which is correct because my Type name is orderItem. If I change the structure name orderItem to OrderItem then I have to even change the SOAP TAG NAME TO OrderItem. I am not able to set Name and Type Different like name = orderItem , Type = OrderItem. For my case, name and Type has to be the same. How can I set different entity name? Is there any workaround or am I doing something wrong. [Non-text portions of this message have been removed] ------------------------ Yahoo! Groups Sponsor --------------------~--> Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/saFolB/TM --------------------------------------------------------------------~-> Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/AspClassicAnyQuestionIsOk/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
