none
VB.Net & WSDL File RRS feed

  • Question

  • i am newbie on SOAP... Please help me.

    My Customer pass me the WSDL File to communicate with SAP Server. I had totally no idea how to start it? Please give me the advise.

    • Moved by Carl Cai Tuesday, May 6, 2014 1:56 AM (form vb.net)More related
    Monday, May 5, 2014 1:28 PM

Answers

All replies

  • i am newbie on SOAP... Please help me.

    My Customer pass me the WSDL File to communicate with SAP Server. I had totally no idea how to start it? Please give me the advise.

    Hi,

    I have helped you move this thread to a more dedicated forum to get better supports.

    Thanks for your understanding.

    Regards.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Tuesday, May 6, 2014 1:55 AM
  • Hi Giin,

    Using wsdl.exe( with /serverInterface flag) or svcutil.exe, you can convert the WSDL file to interfaces for server-side implementation of an ASP.NET Web Service. See more at http://msdn.microsoft.com/en-us/library/7h3ystb6(VS.80).aspx

    I am not familiar with SAP Server, it seems there are three versions of SAP adapter available, all three are based on WCF. Hope a blog here can provide you some ideas: https://social.technet.microsoft.com/wiki/contents/articles/13150.biztalk-server-wcf-based-sap-adapter-and-troubleshooting.aspx

    Regards,

    Haixia


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Tuesday, May 6, 2014 5:46 AM
    Moderator
  • Hi Xie,

      I using the SoapUI try to retrieve the data from database. Below is the RAW Data from SoapUI. Now the problem is how i implement to VB.Net.

    (POST)

    POST http://ADDRESS01.company.com:50000/sap/xi/engine?type=entry&version=3.0&Sender.Service=BC_PSS&Interface=http://company.com/pss/pallet_id_creation%5ESI_PSS_PalletID_SAP HTTP/1.1
    Accept-Encoding: gzip,deflate
    Content-Type: text/xml;charset=UTF-8
    SOAPAction: "http://sap.com/xi/WebService/soap1.1"
    Content-Length: 322
    Host: ADDRESS01.company.com:50000
    Connection: Keep-Alive
    User-Agent: Apache-HttpClient/4.1.1 (java 1.5)
    Authorization: Basic WkVOVEVHUkFTWU9OOmVudGVncmUxMjM=

    (END POST)

    (RESPONSE)

    HTTP/1.1 200 OK
    content-type: text/xml;charset=utf-8
    content-length: 246
    x-xmb_ws_encoded: version=1.0&Sender.Party=http%3a%2f%2fsap.com%2fxi%2fXI%3aXIParty%3a&Sender.Service=EEDCLNT310&Interface=urn%3asap-com%3adocument%3asap%3arfc%3afunctions%5eZPPFM_PALLET_ID&Receiver.Party=http%3a%2f%2fsap.com%2fxi%2fXI%3aXIParty%3a&Receiver.Service=BC_PSS&To.Interface=http%3a%2f%2fcompany.com%2fpss%2fpallet_id_creation%5eSI_PSS_PalletID_SAP&MessageClass=RS&ProcessingMode=S&ConversationId=&MessageId=B68648A3-DA3F-11E3-B2BF-00000037695A&RefToMessageId=0050569C-5E88-1ED3-B6C7-F6466045A421&QualityOfService=BestEffort&TimeSent=2014-05-13T01%3a41%3a33Z
    soapaction: 'http://sap.com/xi/XI/Message/30'
    content-id: <soap-0050569C5E881ED3B6C7F6466046A421@sap.com>
    sap-xi-messageid: 00000000000000000000000000000000
    server: SAP NetWeaver Application Server / ABAP 730

    <SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
    <SOAP:Body>
    <ns1:MT_Pallet_ID xmlns:ns1="http://company.com/pss/pallet_id_creation"><PALLET_ID>185905060006529646</PALLET_ID></ns1:MT_Pallet_ID></SOAP:Body>
    </SOAP:Envelope>

    (END RESPONSE)

    **The data i need to retrieve is (185905060006529646) in BOLD & Underline


    • Edited by Giin Sing Tuesday, May 13, 2014 4:10 AM
    Tuesday, May 13, 2014 4:09 AM
  • Step-One : Generate Service Proxy using svcutil.exe

    Copy the .wsdl file to a folder say C:\Test and run below command.

    svcutil /t:code /language=VB  C:\Test\WSShakespeare.wsdl /out:C:\Test\test.vb /config:C:\Test\app.config

    Run above command from C:\Program Files\Microsoft Visual Studio 10.0\VC if you are using VS2010.

    Step-Two Include test.vb and the config file to your .net project

    Step-three- Refer this to and call appropriate method of your service by passing parameter.


    Lingaraj Mishra

    Tuesday, May 13, 2014 2:00 PM