You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-dev@xml.apache.org by Jo...@pdb.sbs.de on 2001/03/06 09:45:48 UTC

SOAP interop with SAP Business Connector

Hi everybody,

I've just installed SOAP 2.1 and I wonder, how I can write a SOAP client, which sends the following SAP Envelope/Request (alternatively a Biztalk Envelope) tzo the SAP Business Connector, and read its reply.

<?xml version="1.0" encoding="iso-8859-1"?>
<sap:Envelope xmlns:sap="urn:sap-com:document:sap" version="1.0">
  <sap:Header xmlns:rfcprop="urn:sap-com:document:sap:rfc:properties">
    <saptr:From xmlns:saptr="urn:sap-com:document:sap:transport">WAP_System</saptr:From>
    <saptr:To xmlns:saptr="urn:sap-com:document:sap:transport">R3</saptr:To>
  </sap:Header>
  <sap:Body>
    <rfc:BAPI_BANKACCT_GET_LIST xmlns:rfc="urn:sap-com:document:sap:rfc:functions">
      <I_BANKKEY></I_BANKKEY>
      <I_COUNTRY>DE</I_COUNTRY>
      <I_PARTNER>0000000002</I_PARTNER>
      <I_XHOLDER>X</I_XHOLDER>
      <I_XLEGITIM></I_XLEGITIM>
      <T_ACCOUNT>
        <item>
          <COUNTRY></COUNTRY>
          <BANKKEY></BANKKEY>
          <ACCOUNT></ACCOUNT>
          <IBAN></IBAN>
          <PARTNER></PARTNER>
          <XHOLDER></XHOLDER>
          <XLEGITIM></XLEGITIM>
        </item>
      </T_ACCOUNT>
    </rfc:BAPI_BANKACCT_GET_LIST>
  </sap:Body>
</sap:Envelope>

My college is currently using the following Java Socket Connection to do the job.

                     socket = new Socket(HOST,PORT);
                      try{
                           File file = new File("Bankacct_get_list.xml");
                           PrintWriter out =  new PrintWriter(socket.getOutputStream());

                           out.println("POST /invoke/wm.PartnerMgr.gateway.transport.RFC/InboundProcess HTTP/1.0");
                           out.println("Content-type: application/x-sap.rfc");
                           out.println("Content-length: " + file.length() );
                           out.println("");

Has anybody an Idea, how I can use SOAP to the job? Do I have to write Java Code to adapt Apache SOAP to the SAP or Biztalk protocol.

Furthermore we have to integrate this kind of program into an webLogic application server, where we keep the corresponding business objects. Can anyone explain to me, how this conversion from EJB to XML and back works with Apache SOAP.

Many thanks in advance

Josef

Josef Scherer
Software Entwickler     		*    E-Mail: mailto:josef.scherer@pdb.sbs.de
Siemens Business Services 	(   Tel.: (+49) 5251-8-11597
SBS SI SWE 3 			4    Fax: (+49) 5251-8-12016
  

  

Re: SOAP interop with SAP Business Connector

Posted by Simon Fell <so...@zaks.demon.co.uk>.
you can't because that's not soap, its just structured like soap.

Cheers
Simon

On Tue, 6 Mar 2001 09:45:48 +0100 , in soap you wrote:

>
>Hi everybody,
>
>I've just installed SOAP 2.1 and I wonder, how I can write a SOAP client, which sends the following SAP Envelope/Request (alternatively a Biztalk Envelope) tzo the SAP Business Connector, and read its reply.
>
><?xml version="1.0" encoding="iso-8859-1"?>
><sap:Envelope xmlns:sap="urn:sap-com:document:sap" version="1.0">
>  <sap:Header xmlns:rfcprop="urn:sap-com:document:sap:rfc:properties">
>    <saptr:From xmlns:saptr="urn:sap-com:document:sap:transport">WAP_System</saptr:From>
>    <saptr:To xmlns:saptr="urn:sap-com:document:sap:transport">R3</saptr:To>
>  </sap:Header>
>  <sap:Body>
>    <rfc:BAPI_BANKACCT_GET_LIST xmlns:rfc="urn:sap-com:document:sap:rfc:functions">
>      <I_BANKKEY></I_BANKKEY>
>      <I_COUNTRY>DE</I_COUNTRY>
>      <I_PARTNER>0000000002</I_PARTNER>
>      <I_XHOLDER>X</I_XHOLDER>
>      <I_XLEGITIM></I_XLEGITIM>
>      <T_ACCOUNT>
>        <item>
>          <COUNTRY></COUNTRY>
>          <BANKKEY></BANKKEY>
>          <ACCOUNT></ACCOUNT>
>          <IBAN></IBAN>
>          <PARTNER></PARTNER>
>          <XHOLDER></XHOLDER>
>          <XLEGITIM></XLEGITIM>
>        </item>
>      </T_ACCOUNT>
>    </rfc:BAPI_BANKACCT_GET_LIST>
>  </sap:Body>
></sap:Envelope>
>
>My college is currently using the following Java Socket Connection to do the job.
>
>                     socket = new Socket(HOST,PORT);
>                      try{
>                           File file = new File("Bankacct_get_list.xml");
>                           PrintWriter out =  new PrintWriter(socket.getOutputStream());
>
>                           out.println("POST /invoke/wm.PartnerMgr.gateway.transport.RFC/InboundProcess HTTP/1.0");
>                           out.println("Content-type: application/x-sap.rfc");
>                           out.println("Content-length: " + file.length() );
>                           out.println("");
>
>Has anybody an Idea, how I can use SOAP to the job? Do I have to write Java Code to adapt Apache SOAP to the SAP or Biztalk protocol.
>
>Furthermore we have to integrate this kind of program into an webLogic application server, where we keep the corresponding business objects. Can anyone explain to me, how this conversion from EJB to XML and back works with Apache SOAP.
>
>Many thanks in advance
>
>Josef
>
>Josef Scherer
>Software Entwickler     		*    E-Mail: mailto:josef.scherer@pdb.sbs.de
>Siemens Business Services 	(   Tel.: (+49) 5251-8-11597
>SBS SI SWE 3 			4    Fax: (+49) 5251-8-12016
>  
>
>  


Re: SOAP interop with SAP Business Connector

Posted by Simon Fell <so...@zaks.demon.co.uk>.
you can't because that's not soap, its just structured like soap.

Cheers
Simon

On Tue, 6 Mar 2001 09:45:48 +0100 , in soap you wrote:

>
>Hi everybody,
>
>I've just installed SOAP 2.1 and I wonder, how I can write a SOAP client, which sends the following SAP Envelope/Request (alternatively a Biztalk Envelope) tzo the SAP Business Connector, and read its reply.
>
><?xml version="1.0" encoding="iso-8859-1"?>
><sap:Envelope xmlns:sap="urn:sap-com:document:sap" version="1.0">
>  <sap:Header xmlns:rfcprop="urn:sap-com:document:sap:rfc:properties">
>    <saptr:From xmlns:saptr="urn:sap-com:document:sap:transport">WAP_System</saptr:From>
>    <saptr:To xmlns:saptr="urn:sap-com:document:sap:transport">R3</saptr:To>
>  </sap:Header>
>  <sap:Body>
>    <rfc:BAPI_BANKACCT_GET_LIST xmlns:rfc="urn:sap-com:document:sap:rfc:functions">
>      <I_BANKKEY></I_BANKKEY>
>      <I_COUNTRY>DE</I_COUNTRY>
>      <I_PARTNER>0000000002</I_PARTNER>
>      <I_XHOLDER>X</I_XHOLDER>
>      <I_XLEGITIM></I_XLEGITIM>
>      <T_ACCOUNT>
>        <item>
>          <COUNTRY></COUNTRY>
>          <BANKKEY></BANKKEY>
>          <ACCOUNT></ACCOUNT>
>          <IBAN></IBAN>
>          <PARTNER></PARTNER>
>          <XHOLDER></XHOLDER>
>          <XLEGITIM></XLEGITIM>
>        </item>
>      </T_ACCOUNT>
>    </rfc:BAPI_BANKACCT_GET_LIST>
>  </sap:Body>
></sap:Envelope>
>
>My college is currently using the following Java Socket Connection to do the job.
>
>                     socket = new Socket(HOST,PORT);
>                      try{
>                           File file = new File("Bankacct_get_list.xml");
>                           PrintWriter out =  new PrintWriter(socket.getOutputStream());
>
>                           out.println("POST /invoke/wm.PartnerMgr.gateway.transport.RFC/InboundProcess HTTP/1.0");
>                           out.println("Content-type: application/x-sap.rfc");
>                           out.println("Content-length: " + file.length() );
>                           out.println("");
>
>Has anybody an Idea, how I can use SOAP to the job? Do I have to write Java Code to adapt Apache SOAP to the SAP or Biztalk protocol.
>
>Furthermore we have to integrate this kind of program into an webLogic application server, where we keep the corresponding business objects. Can anyone explain to me, how this conversion from EJB to XML and back works with Apache SOAP.
>
>Many thanks in advance
>
>Josef
>
>Josef Scherer
>Software Entwickler     		*    E-Mail: mailto:josef.scherer@pdb.sbs.de
>Siemens Business Services 	(   Tel.: (+49) 5251-8-11597
>SBS SI SWE 3 			4    Fax: (+49) 5251-8-12016
>  
>
>