473,786 Members | 2,660 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

create webservice client from SOAP examples

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>

<AesBusinessSes sion 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:Envelop e xmlns:xsi="http ://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http ://www.w3.org/2001/XMLSchema"
xmlns:soap="htt p://schemas.xmlsoap .org/soap/envelope/">
<soap:Body>
<LoginRespons e>
<LoginResult>
<AesBusinessSes sion id="int" />
<AesResult result="boolean " message="string " resultType="str ing">
<resultArg />
</AesResult>
</LoginResult>
</LoginResponse>
</soap:Body>
</soap:Envelope>

The AesBusinessSess ion 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 "AesBusinessSes sion" or "AesResult" ,

I have "LoginRespo nse" AND "LoginResul t".

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

Hans Kesting


Nov 17 '05 #1
0 2328

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
981
by: Hans Kesting | last post by:
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
0
2797
by: Det | last post by:
Hi there I am somewhat stuck with calling a WebService from out of a VB App. My Goal: - Get a WebService invoked under MS - Access 2002, not using the MS-SOAP-Toolkit but the .net - Framework My Restrictions: - The WebService is pure Java, running under WebSphere5.1 - The Request requires Basic Authentication and needs to be SSL
5
8270
by: jb | last post by:
*Please* help --- I'm tearing my hair out. I want to use sessionstate in a webservice, accessed from a client, written in script (JScript, InfoPath). I have written my webservice (C# .NET). I have marked the method(s) with EnableSession=true. I have read everything there is to read! I am told that to reuse session, my client needs to receive a cookie in the header from the webservice and then pass this back in all future calls. ...
7
5406
by: stephan querengaesser | last post by:
hi ng, i try to invoke a webservice-method with an filter-object, that contains value types. if i don´t want to filter the return value of the method, i have to pass a new instance of the filter-object without setting any properties. but the value type-properties can´t be null and the filter is set to 0 (int) or false (bool). therefore i did implement the propertySpecified-pattern like this:
7
4987
by: Christian Wilhelm | last post by:
Hi! I'm trying to call a Java WebService out of a .net Client. There are two Methods, one Method requires one Parameter of type Parameter, the other Method requires one Parameter of type Parameter. I can call the first Method without Problems, the Parameter can be deserialized by the WebService. But if I want to call the second Method and give it an Array of Parameters, then the following exception is thrown by the WebService:...
0
1644
by: Dhananjayan | last post by:
Hi, I have a webservice(eg.IStringServicePort) running on Axis, iam able to create a java client for the same and invoke the service and obtain the result. I wanted to create a .Net client(C#) for the same..For that I did the following thing I added a web reference for the service thru "Add Web Reference", It got added successfully, But iam unable to find the web reference in my c# class. Because of that iam not able to invoke the...
3
2201
by: Dhananjayan | last post by:
Hi, I have a java webservice running on Axis, Iam able to create a java client to invoke the webservice and obtain the result. But iam not able to invoke the service from .Net client.. Here are the steps i followed to create a .net client I created a web reference("NetClient") for a webservice running in Axis thru "Add Web Reference", it created succesfully. The next step I should do in order to invoke the service is to
4
2810
by: Benny Dein | last post by:
Hi I want to create a servlet or something similar by which im able to create virtual webservices. Lets say i would like to create a webservice with a method called 'getDate' which returnes the current date. This could be done by making a wsdl file (or whatever the name is) and via a wizard in some java tool make a real webservice. This webservice would be static since it creates a class in which i can make my code to return the
5
2757
by: VictorG | last post by:
Hello, I am trying to secure a webservice using WSE 3.0 and the turnkey usernameForCertificateSecurity profile. I am passing a valid username token, and on the server I have overridden the Authenticate token call and it is being called. My ASP.NET service has a Login() method and it is being called during client application startup. Both the client and service have matching policy config files. Once authentication
0
9655
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9497
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10363
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10110
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7517
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6749
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5534
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4067
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3670
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.