Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / June 2004

Tip: Looking for answers? Try searching our database.

Invoking WebMethods WebService Issue

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Arun Kumar - 16 Jun 2004 01:13 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.