R
Rob Hill
Hello,
I have a web service that I am writing that has to conform to the WSDL given
to me by my integration partner.
There is a section in the schema that I am unable to duplicate. Here is the
snip:
<s:element name="SubmitTransactionResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1"
name="SubmitTransactionResult" type="tns:Transaction" />
<s:element minOccurs="0" maxOccurs="1" name="objAuthentication"
type="tns:Authentication" />
<s:element minOccurs="0" maxOccurs="1" name="objTransaction"
type="tns:Transaction" />
</s:sequence>
</s:complexType>
</s:element>
It appears that my method "SubmitTransaction" is expected to respond with an
unnamed complexType. If I make an object that has these three items as
properties and return that, my WSDL looks like this:
<s:element name="SubmitTransactionResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="Response"
type="tns:Response" />
</s:sequence>
</s:complexType>
</s:element>
<s:complexType name="Response">
<s:sequence>
<s:element minOccurs="0" maxOccurs="1"
name="SubmitTransactionResult" type="tns:Transaction" />
<s:element minOccurs="0" maxOccurs="1" name="objAuthentication"
type="tns:Authentication" />
<s:element minOccurs="0" maxOccurs="1" name="objTransaction"
type="tns:Transaction" />
</s:sequence>
</s:complexType>
Clearly they do not match. How do I return this unnamed complexType?
Thanks,
Rob
I have a web service that I am writing that has to conform to the WSDL given
to me by my integration partner.
There is a section in the schema that I am unable to duplicate. Here is the
snip:
<s:element name="SubmitTransactionResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1"
name="SubmitTransactionResult" type="tns:Transaction" />
<s:element minOccurs="0" maxOccurs="1" name="objAuthentication"
type="tns:Authentication" />
<s:element minOccurs="0" maxOccurs="1" name="objTransaction"
type="tns:Transaction" />
</s:sequence>
</s:complexType>
</s:element>
It appears that my method "SubmitTransaction" is expected to respond with an
unnamed complexType. If I make an object that has these three items as
properties and return that, my WSDL looks like this:
<s:element name="SubmitTransactionResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="Response"
type="tns:Response" />
</s:sequence>
</s:complexType>
</s:element>
<s:complexType name="Response">
<s:sequence>
<s:element minOccurs="0" maxOccurs="1"
name="SubmitTransactionResult" type="tns:Transaction" />
<s:element minOccurs="0" maxOccurs="1" name="objAuthentication"
type="tns:Authentication" />
<s:element minOccurs="0" maxOccurs="1" name="objTransaction"
type="tns:Transaction" />
</s:sequence>
</s:complexType>
Clearly they do not match. How do I return this unnamed complexType?
Thanks,
Rob