SAP Business connector sending XML data

Dear all,
I am using an RFC to transfer the data from SAP R/3 to web server. I have to send the data to web server URl via SAP Business Connector in the below format.
I am getting data in RFC sttructure, Now I need to change the above data into XMl and hence need to compress.
The requirement is as below:
The XML message is signed, encoded in base64.
Signed and encoded XML message is compressed in GZIP format.
Can u please share your ideas to achieve this.
Thanks and regards,

Dear Michal and Prateek,
Thank you very much for your ideas.
This is my flow:
clear XML data -> SIgning with detached signature  -> Base 64 encode -> send the data via HTTP port.
I am signing the message using pub.security.pkcs7:sign.
But here problem is I am not able to get the detached signature.
If I select the option Detached signature it is giving only signature.
How can I manage the Detached signature and Message at HTTP port.
Please help me.
Thanks and regards,

Similar Messages

  • SAP Business Connector send XML to SAP

    Hello,
    There is a BC which should read XML files from a specified folder and send them to SAP via RFC (in IDOC format).
    The conection works between BC and SAP fine, gateways are registered and RFC destination has been maintained and tested in SAP.
    How/where can I assign the "package" (which contains the folder with XMLs) with the SAP system (it is configured under "Adapters"-->"SAP ..." with correct listeners).
    Is the assignment the "Routing rules" or the "Map"?
    When should Business Connector start to read the specified folder? Does it start according to "scheduling tasks"?
    Where can I monitor the procedures?
    Thanks in advance!
    Terence

    Hello Prateek,
    Thank you very much for your answer. The AdapterGuide was really helpfull.
    Now the routing rule is associated to the correct Service (that was a the problem). So the rule started to process the XML files from the folder (the XML files disappeared immediately after I corrected the rule).
    But now my problem is that on the SAP side there is no inbound IDOCs so it seems the trasmission may failed.
    Moreover under "Routing"-->"Transactions" I don't see these entries with the the current date.
    Our routing rule is simple: "wildcard" "wildcard" "wildcard" "ALE (R/3 IDOC)"--><OUR SAP SYSTEM>
    The SAP connection is working as I can test under "SAP..." menu.
    Is there any other way to monitor what had happened with these XML files? I'm sure the BC processed as the files are gone, but there is no IDOC in the destination SAP...
    Thanks a lot!

  • Forwarding XML/EDI from SAP Business connector to EDI (cloverleaf)

    Hello,
    We are having issues setting SAP up to work with the business connector and our EDI system - cloverleaf.
    For testing, we would like to:
    1.  Create an idoc in SAP and send it to the Busness Connector.
    2.  Have the busness connector send the doc via XML to our EDI system cloverleaf.
    Currently, I have things setup like so:
    SAP/ECC6:
    SM59: RFC setup as type T and works fine.
    WE20: Partner Type LS:
    I have 2 message types setup (in outboard: I have "orders" and in Inbound I have the same).
    in WE21: I have a cloverleaf (our EDI system) to run with the RFC destination I setup in SM59.
    On the Business connector, I have the following under routing rules:
    From SAP to the Business connector:
    Sender: 8805
    Reciver: 10000000008
    Message Type: Orders
    ACL Group: none
    Package: default
    Main Flow Services: wm.PartnerMgr.flows.88605.1000000008:ORDERS
    Transport: ALE (R3/IDOC)
    SAP destination: RD1 (our sid).
    FOR my outgoing to our EDI system cloverleaf:
    I am using the sender: * - Not sure if this should be SAP or the BC.
    Reciver:  *  - Our EDI system.  our EDI system is listening on port 49001.
    Message Type: Orders
    Under URL (not sure about this one) 
    I have  http://reg2lxap0725:5555/MessagingSystem/receive/BcAdapter/BC
    I am however stummped on how the URL shold look..
    Now, when we test the above config...  I recive the following results in WE02.
    0000000000003024  25     03 Green Light: IDoc Successful Green     LS/  /SAPBC     ORDERS05     ORDERS     Outbox     CLOVERLEAF
    For some reason, we also have an "inbound" that fails.
    0000000000003025  25     56 Red Light: IDoc Has Errors           KU/  /0000088605 ORDERS05 ORDERS Inbox     SAPRD1
    My main question is however around routing... 
    We are trying to send these to our EDI system which is listening on 49001.
    I am not sure how they want us to setup the routing rules to pass this over to the right port..
    I have also  searched the documentation, and have not found any real step by step guides, so I may be missing a few things..
    Any advice to point me to the right direction is greatly appriciated....
    Thanks  everyone,
    Richard

    Hello Prateek,
    Thank you very much for your answer. The AdapterGuide was really helpfull.
    Now the routing rule is associated to the correct Service (that was a the problem). So the rule started to process the XML files from the folder (the XML files disappeared immediately after I corrected the rule).
    But now my problem is that on the SAP side there is no inbound IDOCs so it seems the trasmission may failed.
    Moreover under "Routing"-->"Transactions" I don't see these entries with the the current date.
    Our routing rule is simple: "wildcard" "wildcard" "wildcard" "ALE (R/3 IDOC)"--><OUR SAP SYSTEM>
    The SAP connection is working as I can test under "SAP..." menu.
    Is there any other way to monitor what had happened with these XML files? I'm sure the BC processed as the files are gone, but there is no IDOC in the destination SAP...
    Thanks a lot!

  • How to HTTP POST data to SAP Business Connector

    Hello,
    I would like to transfer data from a client with HTTP POST to SAP Business Connector. SAP BC acts as server. In SAP BC I created a Java service containing the code:
    IDataCursor idatacursor = pipeline.getCursor();
    idatacursor.first("node");
    Object obj1 = idatacursor.getValue();
    System.out.println(obj1.toString()); //for test
    But how can I access the data that was sent with HTTP POST in my service?
    Thank you
    Piotr Dudzik

    Hi,
    quite easy:
    StringBuffer buffer = new StringBuffer();
    String resultString = null;
    String xmlString = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"+
            "<biztalk_1 xmlns=\"urn:biztalk-org:biztalk:biztalk_1\">"+
            "<header>"+
            "<delivery>"+
            "<to>"+
    "<address>urn:sap-com:logical-system:XXX</address>"+
            "</to>"+
            "<from>"+
    "<address>urn:sap-com:logical-system:YYY</address>"+
            "</from>"+
            "</delivery>"+
            "</header>"+
            "<body>"+
            "<doc:Z_RFC_CALL_NAME> xmlns:doc=\"urn:sap-com:document:sap:rfc:functions\" xmlns=\"\">"+
            ... [PARAMETERS]
            "</doc:Z_RFC_CALL_NAME>"+
            "</body>"+
            "</biztalk_1>";
            try {
                URL url = new URL(SCHEMA, this.host, Integer.parseInt(PORT), FILE);
                HttpURLConnection connection = (HttpURLConnection)url.openConnection();
                initConnection(connection);
                OutputStream out = connection.getOutputStream();
                out.write(xmlString.getBytes());
                out.close();
                InputStream reader = connection.getInputStream();
                char ch;
                while((ch = (char)reader.read()) != -1 && ch != 0xFFFF)
                    buffer.append(ch);
                resultString = buffer.toString();
                if (this.getXMLEntry(resultString, "E_STATUS").equals("E")) { // ERROR
                    System.out.println("errormessage: "+this.getXMLEntry(resultString, "E_EMSG"));
                } else {
                    // ok, is supose this is an S (success), parse the stuff
                reader.close();
            catch (Exception e){
                e.printStackTrace();
                System.out.println(e);

  • SAP Business Connector XML File processing

    Hi All,
    we're using SAP Business Connector to process XML Files (from NON-SAP system).
    XML-Files are mapped to IDOCs and sent to our sap-system in order to create purchase orders.
    Let's say we have 3 Purchase Orders (XML) in our SAP BC input directory,
    the first purchase order has a header text (customer field), the following 2 dont. After processing the xml-files all 3 Idocs have the same header text of the first purchase order.
    How can i change this behaviour?
    Regards
    REA

    Hello Ramy,
    You have to check this logic of t BC. if you want to check the Idocs then goto WE02 in SAP.
    if you are using message type PORDCR1 then check segment E1BPMEPOTEXTHEADER or PORDCR thne check segment E1BPEKPOTX
    Regards
    Naresh

  • Problems with invoke call in browser (SAP Business Connector)

    Hallo,
    I have a problem with the invoke call in a browser to test a build flow in the SAP Business Connector:
    I build a flow which receives a XML file, converts it into a record, then adds some mandatory data to the segment "EDI_DC40", then reconverts it into XML. After that, the XML gets converted into SAP IDOC format. Then I send it via ALE service to the connected SAP System.
    The flow works so far if I test it with the "send XML file" function in "Test" menu. But when I test it via a call in the browser, it doesn´t work. The mandatory data in "EDI_DC40" is there, but the Business connector does not recognize the data which comes with the XML for this segment ("MESTYP" and "SNDPRN") - so it can not be transfered to the SAP system. It causes a routing rule error, because sender and message type is unknown.
    Does anybody has experiences with that? Is there a difference between browser call and the test function "send xml file"?
    Thanks in advance for your help!
    Kai

    Hi,
    Just debug your SAP BC service in which you are calling the RFC and check if proper values are getting mappend to your input variables of RFC.
    If that is correct than there wont be much chances of problem in BC.
    \[removed by moderator\]
    Regards,
    Siddhesh S.Tawate
    Edited by: Jan Stallkamp on Jul 1, 2008 4:32 PM

  • SAP Business Connector certificate problem

    We are trying trying to send data from SAP to bank via SAP business connector using bank URL. We have configured the certificates in SAP BC which are authenticated by bank on the basis of private key generated from our server. Now when we trying to post data to bank it is giving below error.
    java.lang.RuntimeException: iaik.security.ssl.SSLCertificateException: Peer certificate rejected by TrustDecider
    Any idea? Please give me some suggestions to resole this problem.
    Thanks and Regards

    Normally I do not like to give documentation references, but in this case I think it makes sense. Certificate handling is an ugly and complicated topic, so many things can go wrong. Please check the SAP BC 4.7 Administration Guide, page 103 onwards ("Securing communications with the server"). It explains very well what needs to be done. Make sure you configured everything correctly.
    CSY

  • SAP Business Connector in xMII 12.0

    Hi,
        Can somebody help me out about SAP business connector action in transaction? and How to send one XML or Message from SAP xMII 12.0 to SAP ERP system?
    Thanks,
    Madhavi

    Hi Madhavi,
    Business Connector is a fairly old middleware technology provided by SAP which can be used to integrate SAP ERP to other applications. It is largely superseded by SAP XI/PI (which provides better, more robust & scalable middleware and A2A integration functionality). MII can connect to XI/PI via its SOAP or HTTP post actions, or via the SAP XI action block for business logic transactions (released via SDN for MII 11.5, and part of the MII 12.0 core product).
    For direct connections to ERP systems (e.g. for RFC calls), use the JCo action blocks in MII 11.5, and the JRA actions in v. 12.0.
    Hope this helps,
    Sascha

  • SAP Business Connector & UPS World Ship Software

    Hi @all,
    I like to implement an interface for data transfer from SAP Backend to UPS World Ship to indicate delivery ticketing.
    Now I heared that I can use SAP Business Connector (SAP BC)  to realise it. Does anyone of you know how how to configure SAP BC to send/retrieve the data to/from World Ship?
    Thank you very much in advance,
    Stefan

    Hi,
    sorry for beeing late with my answer, but here it is
    We want to exchange delivery orders.
    We like to send delivery data (delivery number, customer name, contact person, adress lines, delivery location, delivery land, phone number, references, ect.) to Worldship during the printing activity.
    The data we like to recieve from Wordship is tracking number, date and time of delivery and the name of the subscriber.
    Worldship uses ODBC to send data back to SAP.
    Kind Regards,
    Stefan Burghardt

  • SAP Business Connector on Windows XP

    I've been trying to get the SAP Business Connector 4.7 to work on Windows XP professional but haven't been very successful. The business connector seems to install okay, but when I try to start the business connector through the server.bat file it generates the following errors:
    (loglevel = 4) 
    Loading WmPartners package
    00000E  [B2BSERV.0026.0002] Failure while loading service wm.PartnerMgr.gateway.transport.EmailTransport:startup: [B2BSERV.0026.9106] No method startup in class wm.PartnerMgr.gateway.transport.EmailTransport
    00000F  [B2BSERV.0026.0002] Failure while loading service wm.PartnerMgr.xtn.admin:saveMessage: [B2BSERV.0026.9106] No method saveMessage in class wm.PartnerMgr.xtn.admin
    000010  [B2BSERV.0026.0002] Failure while loading service wm.PartnerMgr.xtn.admin:view: [B2BSERV.0026.9106] No method view in class wm.PartnerMgr.xtn.admin
    000011  [B2BSERV.0026.0002] Failure while loading service wm.PartnerMgr.gateway.admin:saveRoutingRule: [B2BSERV.0026.9106] No method saveRoutingRule in class wm.PartnerMgr.gateway.admin
    000012  [B2BSERV.0026.0002] Failure while loading service wm.PartnerMgr.gateway.admin:convertWildCards: [B2BSERV.0026.9106] No method convertWildCards in class wm.PartnerMgr.gateway.admin
    000013  [B2BSERV.0026.0002] Failure while loading service wm.PartnerMgr.gateway.transport.B2B:startup: [B2BSERV.0026.9106] No method startup in class wm.PartnerMgr.gateway.transport.B2B
    000014  [B2BSERV.0026.0002] Failure while loading service wm.PartnerMgr.xtn.admin:editStore: [B2BSERV.0026.9106] No method editStore in class wm.PartnerMgr.xtn.admin
    000015  [B2BSERV.0026.0002] Failure while loading service wm.PartnerMgr.gateway.transport.FTPTransport:startup: [B2BSERV.0026.9106] No method startup in class wm.PartnerMgr.gateway.transport.FTPTransport
    000016  [B2BSERV.0026.0002] Failure while loading service wm.PartnerMgr.xtn.admin:invokeViewService: [B2BSERV.0026.9106] No method invokeViewService in class wm.PartnerMgr.xtn.admin
    000017  [B2BSERV.0026.0002] Failure while loading service wm.PartnerMgr.xtn.admin:viewMsgContent: [B2BSERV.0026.9106] No method viewMsgContent in class wm.PartnerMgr.xtn.admin
    000018  [B2BSERV.0026.0002] Failure while loading service wm.PartnerMgr.gateway.admin:updateTransports: [B2BSERV.0026.9106] No method updateTransports in class wm.PartnerMgr.gateway.admin
    000019  [B2BSERV.0026.0002] Failure while loading service wm.PartnerMgr.gateway.admin:invokeService: [B2BSERV.0026.9106] No method invokeService in class wm.PartnerMgr.gateway.admin
    00001A  [B2BSERV.0026.0002] Failure while loading service wm.PartnerMgr.xtn.admin:log: [B2BSERV.0026.9106] No method log in class wm.PartnerMgr.xtn.admin
    00001B  [B2BSERV.0028.0005] Loading SAP package
    00001C  [B2BSERV.0026.0002] Failure while loading service wm.PartnerMgr.gateway.transport.RFC:startup: [B2BSERV.0026.9106] No method startup in class wm.PartnerMgr.gateway.transport.RFC
    00001D  [B2BSERV.0026.0002] Failure while loading service wm.PartnerMgr.gateway.transport.BAPI:startup: [B2BSERV.0026.9106] No method startup in class wm.PartnerMgr.gateway.transport.BAPI
    00001E  [B2BSERV.0026.0002] Failure while loading service wm.PartnerMgr.gateway.transport.XML:startup: [B2BSERV.0026.9106] No method startup in class wm.PartnerMgr.gateway.transport.XML
    00001F  [B2BSERV.0026.0002] Failure while loading service sap.bapi:encodeToFile: [B2BSERV.0026.9106] No method encodeToFile in class com.wm.pkg.sap.bapi.BusinessDocumentCoder
    000020  [B2BSERV.0026.0002] Failure while loading service sap.bapi.Mapper:bapi2rfc: [B2BSERV.0026.9104] Missing class sap.bapi.Mapper
    000021  [B2BSERV.0026.0002] Failure while loading service sap.bapi.Mapper:rfc2bapi: [B2BSERV.0026.9104] Missing class sap.bapi.Mapper
    000022  [B2BSERV.0026.0002] Failure while loading service sap.bapi.Mapper:bapi2ale: [B2BSERV.0026.9104] Missing class sap.bapi.Mapper
    000023  [B2BSERV.0026.0002] Failure while loading service sap.admin:listGatewayServices: [B2BSERV.0026.9106] No method listGatewayServices in class sap.admin
    000024  [B2BSERV.0026.0002] Failure while loading service sap.bapi.Mapper:ale2bapi: [B2BSERV.0026.9104] Missing class sap.bapi.Mapper
    000025  [B2BSERV.0026.0002] Failure while loading service wm.PartnerMgr.gateway.transport.ALE:startup: [B2BSERV.0026.9106] No method startup in class wm.PartnerMgr.gateway.transport.ALE
    000026  [B2BSERV.0028.0005] Loading WmSamples package
    000027  [B2BSERV.0028.0026] Warning: Deprecated service type (webtap) in service sample.webtap:logApp in package WmSamples
    000028  [B2BSERV.0028.0005] Loading WmDB package
    These errors don't stop the business connector from starting up, but the errors are not normal behaviour. When I try to start the business connector through a Windows service then I get the message "Could not start the SAP Business Connector Service on Local Computer. Error 126: The specified module could not be found".
    I have a working business connector installation on a Windows 2000 server, and when I checked the error log of that installation I noticed that it had logged the same errors about the 'WmPartners' package. It on the other hand didn't have any problems loading the 'SAP' package.
    I tried installing the business connector on two different systems with identical results. Has anybody been able to get the business connector to work on Windows XP?

    HI,
    I have no idea clearly about BC.. but ..
    See the following links.. may be helpfull..
    Business connector
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a8609b90-0201-0010-c6bc-a41b611c6dac
    SAP Business Connector on Windows XP
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/92e5bd90-0201-0010-b799-dfdc27f3100a
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a8424011-0d01-0010-e19d-e5bd8ca52244
    If usefull .. points rewarded..
    Regards
    Chilla..

  • Flat File Transfer from SAP R/3 4.7 to SAP Business Connector 4.8

    Hi Experts,
    I have a requirement of transferring a flat file from my R/3 SAP 4.7 Box Application Server to the Business Connector 4.8 Box. I am new to SAP Business Connector and I am not to sure whether FTP works if I use a shell script in SAP R/3. Also, is there any way Business Connector Box can pull the file from R/3 Application Server and store the file in the Business Connector Server.
    Any help will be appreciated!!!
    Regards,
    Subhhrangsu

    Hi,
    There are many ways thru which you can pass document to SAP BC:
    You can HTTP, FTP, Email document to SAP BC.
    SAP BC has predefined services for all of them.
    For FTP document to SAP BC:
    1 Initiate an FTP session on SAP BC Serveru2019s FTP listening port ( this can be found out from SAP BC administrator or from SAP BC homepage).
    2 Point to the directory that contains the service to which you want to pass the XML
    document.
    Example cd \ns\Purchasing\SubmitOrder
    3 Copy the XML document to this directory using the following command:
    put XMLDoc.xml
    Where XMLDoc.xml is the name of the file that you want to pass to SAP BC Server.
    Example put PurchaseOrder.xml
    Above code can be written in a batch file and you can schedule it to run at interval of minutes.
    You can write java client program as well to upload file and map it to String variable of Flow service of SAP BC.
    As Micheal said, you can look at sapbc/Developer/doc folder to look for more options.
    Best Regards,
    Divyesh

  • To run a java service in SAP business connector.

    Hi,
    I have created one java service in SAP business connector.When i run it, i get the error as " Service 'rfctest:validatedata' is not operational. To run this service, first recompile the Java source."
    I have set the "path" variable,still i am getting the same error.
    What should i do to solve this problem?

    Hello,
    when you call a BAPI from an external system via Business Connector, you will send a bXML document to BC (for example via HTTP). Refer to the SapbcSAPAdapterGuide for how to do that in detail, its good explained (see 4-25 and 7-3) there.
    The explanation about sender/receiver is not correct. sender and receiver are the logical system names of the SAP backend system and the external system (check in transaction SALE of the SAP system).
    Just send such document to BC, it will create the routing rule automatically. Then complete the routing rule (see 7-2) and activate it.
    CSY

  • SAP Business Connector Error

    Guys,
    Do you know what this error in SAP Business Connector means:
    Missing or Invalid Parameter:Sender
    Any help would be appreciated.
    Thanks,
    Sathya

    Now this is a broad question_
    I guess you mean: IDOC handling
    This means usually, that the Sender ID is not set up properly in the BC (Send/Reveice Rules). In case you don't have a 1:1 mapping, use the '*' for ALL.
    Can you please give more specific information:
    where is the Error (Log, Popup-message etc),
    what is the context (BAPI CALL, IDOC etc)
    -hs

  • Using SMTP service in SAP Business Connector

    Dear All,
    Can any one tell me how to use SMTP service in SAP Business Connectors. My requirement is like I need to send a mail to a particular mail id, if a transaction fails.
    Do i need to do some configuration from Administrator side.
    What all efforts would be required for the same.
    Regards
    Siddhesh.

    Hi Carlos,
    I had escalated the issue to the BASIS/INFRA team. But they say that there is no configuration that can be done on the mail server side ( exchange server ). They told me that some configuration needs to be done from the BC side.
    This is what he had to say:
    Port 5555 is the non-standard default port used by SAP BC for HTTP connections. For SMTP the default port number is 25.
    As far as i understand this port 25 is used when in routing rule we define email transport. But my requirement is like it should first do an http and only in case when http fails it should do SMTP.
    So it is not possible to have routing rule with mail transport.
    Can you give some inputs from your side.
    Regards,
    Siddhesh S.Tawate

  • NULL Value in SAP Business Connector  (BC47_CoreFix7 )

    Dear All,
    I am working with SAP Business Connector and some times i get NULL value in (PROXY SERVER) in Secure Proxy (HTTPS) so i need usualy to remove it manully and save the changes.
    Would you plesae help me to solve this issue either to delete automatically or to have any idea to prevent getting this NULL value.
    Thanks in advance..
    Message was edited by: Hassan Hakeem

    Dear,
    i need the answer ASAP pleasssssssssssse.
    Thanks..
    Message was edited by: Hassan Hakeem

Maybe you are looking for

  • IPhoto cannot be opened because of a problem

    Tried opening iPhoto on Yosemite 10.10 and the following error has popped up: Process:               iPhoto [9870] Path:                  /Applications/iPhoto.app/Contents/MacOS/iPhoto Identifier:            com.apple.iPhoto Version:               ??

  • Screen doesn't fit

    Since two days, my screens don't fit anymore on my iPhone4. I can scroll (only a millimeter or two) up and down and left to right, even on the home screen! It bothers me, because I have no clue how it happened. I shut down my phone and restarted it a

  • How do I add a hyperlink to a placed image?

    On the "about the author" page of the iBook I am writing I'd like to add links so people can follow me on Twitter, Facebook, etc. I have created icon images but I can't actually make them "clickable", I can't add a hyperlink to an image? Or am I miss

  • How to embed the swf in wordpress?

    Hi, I'm all new to this and just wonder, is this possible? I got a plugin for my blog, but need only one swf-file, not a hole folder with stuff. Thanks! Daniel

  • OS X update installation failure problem

    MacBook Pro 7,1 core duo 2,66GHz (2010) Mac Os X 10.6.3 The Macbook fell down and the LCD screen is broken. If I run the hardware test, it fails. However, when attached to an external monitor seems to work fine. So this is the way I'm using it right