Solved

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

Posted on 2011-09-10
2
354 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 500 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: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

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

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

860 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