Solved

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

Posted on 2011-09-10
2
350 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 74

Accepted Solution

by:
käµfm³d   👽 earned 500 total points
Comment Utility
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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

762 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now