473,407 Members | 2,359 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

SOAP request and response problem

Hello Forum,
I use VB.NET in SharpDevelop to create my first SOAP client. I set a web reference to the WSDL and got a class generated which offers me request, response, clientheader and service elements. (The clientheader is used to store username, password and mailadress for authentification.)
Then in my class I made the following:

Expand|Select|Wrap|Line Numbers
  1. Sub Button1Click(sender As Object, e As EventArgs)
  2.   Dim Myrequest As New MyNamespace.addRequest 
  3.   Dim Myrespons As New MyNamespace.addResponse
  4.   Dim Myheader As New MyNamespace.clientHeader
  5.   Dim Myservic As New MyNamespace.service
  6.  
  7.   Myheader.clientName = "Username"
  8.   Myheader.clientEmail ="user@test.de"
  9.   Myheader.clientPassword = "password"
  10.   Myrequest.city="city"
  11.   Myrequest.clientHeader = myheader
  12.   Myrequest.country="country"
  13.   Myrequest.district="district"
  14.   Myrequest.houseNumber="number"
  15.   Myrequest.postalCode ="postalcode"
  16.   Myrequest.street="street"
  17.   Myrequest.subscriberId="12345"
  18.   Myresponse = Myservice.addSubscriber(Myrequest)
  19.   MsgBox(Myresponse.resultMessage)
  20. End Sub
  21.  
When calling the line Myresponse=Myservice.addSubscriber(Myrequest) my client crashes. How I can send the request to the server and retrieve the response for further use? What I'm doing wrong?

Any help is appreciated.

Thanks a lot in advance,
Marco
Aug 11 '15 #1
0 1287

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: The Grand Admiral | last post by:
Question. I have a wsdl soap request structure as follows: <soap:Envelope xmlns:xsi="..." xmlns:xsd="..." xmlns:soap="..."> <soap:Header>... </soap:Header> <soap:Body> <SaveItem xmlns="...">...
2
by: RobertHillEDS | last post by:
While using the Soap generated ASP code, I would like to dump the raw contents of the request and response objects using Response.AppendToLog. I have tried using variations of the following code,...
0
by: ramas | last post by:
Hi, I am new to PHP scripting and i am trying to connect to a soap server (as mentioned below) using the SOAP extension comesup with PHP. Now my requirement is to add my HTTP header fields along...
0
by: Amar | last post by:
I am recieving the "The root element is missing" error from my soap extension while attempting to validate an incoming SOAP message request. I suspect the problem resides in the ChainStream method...
0
by: Sebitti | last post by:
What are the default size limits for soap request and response? Can I configure the limits in application level (web service server/ client)? Are there any IIS settings that affect the limits? Do...
0
by: Florian Laws | last post by:
Hello, to work around an interoperability problem with the PHP5 SOAP extension, I'd like to modify the generate XML SOAP request. (as described in...
0
by: Mateo | last post by:
Hi! I have communication from asp.net aplication with some service on other server.... I send them data, and they return me some data. I have to take recived data and forward it to third server...
2
by: kri25in | last post by:
Hello folks... i need some help in implementing soap in java... i need to write a program wher the client will send a soap request.. the server will parse the xml file and give back the response...
2
by: fj | last post by:
i am looking for tools to intercept soap request/response between server and client. Any suggestion?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
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...

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.