Thanks for your reply Rob,
I'm not quite sure about the "The return sequence is unnamed."
If possible, would you try define a very simple class(has some simple type
members) and then give me a webservice/webmethod to demonstrate your
scenario. Also, you can give me a copy of the expected request & response
SOAP xml message so that I can get what's the result you want and perform
some further test on my side.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
>References: <eEb58JkeIHA.3360@TK2MSFTNGP03.phx.gbl>
<uCbGR8peIHA.7396@TK2MSFTNGHUB02.phx.gbl>
>Subject: Re: Problem matching WSDL
>Date: Fri, 29 Feb 2008 21:19:05 -0600
>Steven,
>
[quoted text clipped - 103 lines]
>>
>> Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
>> ications.
>>
[quoted text clipped - 74 lines]
>>>
>>>Rob
Rob Hill - 03 Mar 2008 15:57 GMT
This is why I posted the WSDL.
Note that the WSDL has a complexType as a return value that is a sequence of
3 items but yet the complexType tag does not have a name attribute. It's
truly as if the web service is returning 3 values.
> Thanks for your reply Rob,
>
[quoted text clipped - 220 lines]
>>>>
>>>>Rob
Steven Cheng - 05 Mar 2008 03:46 GMT
Thanks for your reply Rob,
The original XML fragment you posted are the XML schema definition of the
types(it is part of the WSDL document). I'm still not quite sure at which
position(hierarchy) will the element display and how will your SOAP
request/response look like.
Would you give me a sample request/resposne soap message? For example, in
ASP.NET Webservice, when you visit the asmx page in IE and click the
"method name" link, it will display a page with some sample soap
request/response messages (include messages for different protocol such as
SOAP 1.1, SOAP 1.2, HTTP POST ....). Here is an example(generated by
ASP.NET webservice page):
=======================
POST /linqsite/WebService.asmx HTTP/1.1
Host: localhost
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/HelloWorld"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body />
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<SubmitTransactionResponse xmlns="http://tempuri.org/">
<SubmitTransactionResult
xmlns="http://tempuri.org/customcs.xsd">string</SubmitTransactionResult>
<objAuthentication
xmlns="http://tempuri.org/customcs.xsd">string</objAuthentication>
<objTransaction
xmlns="http://tempuri.org/customcs.xsd">string</objTransaction>
</SubmitTransactionResponse>
</soap:Body>
</soap:Envelope>
=========================
With such a sample request/response pair, it is fairly easy to get what the
actual format you want.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
>Subject: Re: Problem matching WSDL
>Date: Mon, 3 Mar 2008 09:57:04 -0600
>This is why I posted the WSDL.
>
[quoted text clipped - 20 lines]
>> This posting is provided "AS IS" with no warranties, and confers no
>> rights.
Rob Hill - 09 Mar 2008 19:58 GMT
Steven,
I figured it out.
My SubmitTransaction method changes to:
public Transaction SubmitTransaction(ref Authentication objAuthentication,
ref Transaction objTransaction)
{
...
}
The ref keyword causes the objects passed in to be sent back with the
response.
Thanks for your help.
Rob
> Thanks for your reply Rob,
>
[quoted text clipped - 89 lines]
>>> This posting is provided "AS IS" with no warranties, and confers no
>>> rights.
Steven Cheng - 10 Mar 2008 02:08 GMT
Thanks for your reply Rob,
Glad that you've figured out the problem. Yes, "Ref" key word is not quite
often used in webservice since by ref object will cause the webservice
communication be more expensive.
Best regards,
Steven Cheng
Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we
can improve the support we provide to you. Please feel free to let my
manager know what you think of
the level of service provided. You can send feedback directly to my manager
at: msdnmg@microsoft.com.
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
>Subject: Re: Problem matching WSDL
>Date: Sun, 9 Mar 2008 13:58:28 -0500
>Steven,
>
[quoted text clipped - 108 lines]
>>>> This posting is provided "AS IS" with no warranties, and confers no
>>>> rights.