PC Review


Reply
Thread Tools Rate Thread

create webservice client from SOAP examples

 
 
Hans Kesting
Guest
Posts: n/a
 
      23rd Sep 2005
Hi,

I'm trying to create a client for some webservice. BUT I have only
limited information:
* no WSDL available ("expected Q1-06") (it seems to be written in Java)
* I don't have access (yet) to the real webservice
* I *do* have example SOAP messages

What I'm trying to do is to build a dummy webservice, which should accept
(and respond with) the same SOAP messages. Then I can build my code
against this dummy, so theoretically later I can change the URL to talk
to the real webservice.
The request seems to go fine, but I'm stuck on the response side.

Example from the documentation it's either (on success):
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">

<SOAP-ENV:Body>

<Response>

<AesBusinessSession id="25060"/>

</Response>

</SOAP-ENV:Body>

</SOAP-ENV:Envelope>



or (on failure)

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">

<SOAP-ENV:Body>

<Response>

<AesResult message="No server response for: Login" result="false"/>

</Response>

</SOAP-ENV:Body>

</SOAP-ENV:Envelope>




What I have so far (from the description when I open the asmx in my browser):

<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>
<LoginResponse>
<LoginResult>
<AesBusinessSession id="int" />
<AesResult result="boolean" message="string" resultType="string">
<resultArg />
</AesResult>
</LoginResult>
</LoginResponse>
</soap:Body>
</soap:Envelope>



The AesBusinessSession and AesResult are both classes, with a specified number

of properties. When returned objects or properties are null, I expect them to be

missing from the response.

The fact that the examples specify "SOAP-ENV" and my version "soap" should

also be no problem (if I understand things correctly).

The problem is the nesting level of the response. The examples have just a


"Response" between the "body" and the "AesBusinessSession" or "AesResult",

I have "LoginResponse" AND "LoginResult".



How can I adjust that? Or (also fine) is that not a problem?



Hans Kesting




 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Java client and .NET 2.0 ASP.NET Web Service: SOAP port uses anon-standard SOAP 1.2 binding uupi_duu@yahoo.com Microsoft C# .NET 0 22nd May 2009 02:10 PM
Inserting items into the SOAP Header from C# Client to call a webservice John Microsoft C# .NET 6 20th Apr 2007 04:40 PM
create webservice client from SOAP examples Hans Kesting Microsoft ASP .NET 0 23rd Sep 2005 09:09 AM
Best way to send SOAP requests from IE client pages - WebService HTC? Cory Microsoft ASP .NET 2 20th Feb 2004 09:35 AM
Invoke a method in Java webservice thro' soap call from Asp.net client. Samuel Microsoft ASP .NET 0 30th Jul 2003 06:48 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:37 AM.