Hi All,
I'm trying to create a .NET client to consume a webMethods web service.
Based on the wsdl file given by you I've generated a .NET proxy class using
the .NET WSDL.EXE. The proxy class appears to send a valid request because
webMethods sends back a valid response. However, when the proxy class calls
Invoke(), it returns the object[] results of the correct length i.e. 2 but
with each element null. The return parameters are just strings. There are no
exceptions. Why are th return parameters null?
Thanx & Regds,
Arun
HeatherW - 16 Jun 2004 19:11 GMT
> Hi All,
>
[quoted text clipped - 5 lines]
> with each element null. The return parameters are just strings. There are no
> exceptions. Why are th return parameters null?
We ran into this same issue. We had to new each string on the server side for it not to come back null on the client side. If we just had str = "cat" it wouldn't work. Don't know why...
Arun Kumar - 17 Jun 2004 05:39 GMT
Hi Heather,
Thanx for your reply... My Webservice is hosted in WebMethods
(http://webmethods.com) and it is sending the reply correctly...
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="http://www.w3.org/1999/XMLSchema"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<GSC:receiveSoapService
xmlns:GSC="http://wm1:6000/com.ipaper.enterprise.globalsupplychain.apriso.ou
tbound.soapservice">
<processMessageResult>true</processMessageResult>
<errorMessage>This is a response message</errorMessage>
</GSC:receiveSoapService>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
But the but the proxy fails to deserialize..... and returns null... Is the
same issue you had... Please help....
Thanx,
Arun
> > Hi All,
> >
[quoted text clipped - 7 lines]
>
> We ran into this same issue. We had to new each string on the server side for it not to come back null on the client side. If we just had str = "cat"
it wouldn't work. Don't know why...
Lucien - 21 Jun 2004 18:09 GMT
What are the intput/ouput types? Is this WSE related or ASMX Only?
> Hi All,
>
[quoted text clipped - 9 lines]
>
> Arun