Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Calling WebService:  request , respond form C# class/Apps

Posted on 2011-09-10
2
Medium Priority
?
360 Views
Last Modified: 2013-12-17
Hi all

Given the SOAP message below
I am looking for guidance in form of a direction, code or tutorial
That will help me call the webservice and get a respond..

I have the WSDL file, I have downloaded already and have generated the corresponding classes.

Thanks in Advance
SOAP 1.1
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /MYWebServices/BillerDownloadServices.asmx HTTP/1.1
Host: ebill-test.yellowworld.ch
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://www.myWorld.com/GetProcessProtocol"

<?xml version="1.0" encoding="utf-8"?>
<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>
    <GetProcessProtocol xmlns="http://www.myWorld.com">
      <CustomerID>string</CustomerID>
      <CreateDate>dateTime</CreateDate>
      <ArchiveData>boolean</ArchiveData>
    </GetProcessProtocol>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<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>
    <GetProcessProtocolResponse xmlns="http://www.myWorld.com">
      <GetProcessProtocolResult>
        <DownloadFile>
          <Data>base64Binary</Data>
          <Filename>string</Filename>
        </DownloadFile>
        <DownloadFile>
          <Data>base64Binary</Data>
          <Filename>string</Filename>
        </DownloadFile>
      </GetProcessProtocolResult>
    </GetProcessProtocolResponse>
  </soap:Body>
</soap:Envelope>

Open in new window

0
Comment
Question by:ZURINET
2 Comments
 
LVL 75

Accepted Solution

by:
käµfm³d   👽 earned 2000 total points
ID: 36516837
One of the generated classes should have been named along the lines of "XXXClient". This is your proxy class. It should have one or more methods which you can call to invoke your service. You'll need to see which parameters and return values these functions use. Create instances of such parameter classes and populate them accordingly. For the response, you should simply need to capture that value via a variable of the same type as mentioned in the function signatures.
0
 

Author Comment

by:ZURINET
ID: 36518711
Hi Kaufmed

Thank you for the feedback..
I would be glad to have a tutorial or example.. any link might help..
I have found a couple but... I am still looking


Kind Regards


0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

886 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question