473,545 Members | 1,310 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SOAP request and response problem

1 New Member
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 authentificatio n.)
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=Myse rvice.addSubscr iber(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 1300

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

Similar topics

1
13838
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="..."> <ItemXml>xml</ItemXml> <PropertyView>string</PropertyView>
2
4079
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, but I may be barking up the wrong tree with this approach. Any expert help would greatly be appreciated. Dim objReader Set objReader =...
0
3698
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 with my SOAP request, so that the SOAP server will receive it and does some high level processing. Is it possible to add our own HTTP header fields...
0
2930
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 but I'm not sure. Below is a water-downed version of the code that I'm working on. While debugging, I noticed that if I pass an invalid SOAP...
0
1580
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 you have any recommendations how to handle too large requests and responses? I should notify client if he is sending too large request or asking for...
0
4728
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 http://www.schlossnagle.org/~george/blog/index.php?/archives/235-Salesforce.com-and-PHP.html ) To acheive this, I subclass SoapClient and overwrite the __doRequest() method. According to the...
0
1054
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 UNCHANGED! This is my problem. When I receive first response with Request("Data"), store it to the string variable and then I forward that data to...
2
1896
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 as a xml file.. but the client shud recieve it as a soap response.
2
5734
by: fj | last post by:
i am looking for tools to intercept soap request/response between server and client. Any suggestion?
0
7391
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...
1
7410
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...
0
7746
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5962
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
4941
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...
0
3443
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3438
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1010
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
693
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.