Invoking WebMethods WebService Issue

A

Arun Kumar

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
 
H

HeatherW

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?

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...
 
A

Arun Kumar

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

HeatherW said:
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?

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...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top