All,
We have a web service that is written in VB.NET
The web service accepts a complex type as a parameter.
This type is called “WebOrder”.
In .NET, this WebOrder class inherits from a base class called Order.
When exposed via a web service, the WSDL for the WebOrder looks like this:
<s:complexType name="WebOrder">
- <s:complexContent mixed="false">
- <s:extension base="s0:Order">
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="WebOrderNumber" type="s:string"/>
</s:sequence>
</s:extension>
</s:complexContent>
</s:complexType>
(please note the extension base bit)
The problem is, when CF automatically generates the structs for the web service, it seems that it doesn’t recognize that WebOrder is derived from Order.
If I use <cfset> to explicitly add all of the members or Order I get an error that says that CF can’t find a method that accepts those parameters.
If I only use the unique property of WebOrder, the .NET web service will not accept the order, because it doesn’t contain any of the required data for the Order base class.
Thanks,
- Gary
