Solved

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

Posted on 2011-09-10
2
356 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

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 …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

751 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