Oracle b2b API's

Hi Guru's
We want to have some mechanism to enable/disable the delivery channels programicatlly. We know how to do them manually but we want to know if there are any API's / service there which can help us in automate this.
Why we wan't to do is that at our side we soemtime need to enable/disable the connections to make the connections work.
Any pointers will be highly appreciated.
Regards
Sahil

Hi Sahil,
Yes, it is very much possible. Stay tuned and I should post more information here soon.
Regards,
Anuj

Similar Messages

  • Does Oracle B2B supports file (inbound and outbound) via Odette FTP?

    I am unable to find any documentation on whether B2B can receive/send files via OFTP. If it is supported, please point me to any documentation on this topic.
    Thanks
    Shanthi

    Thanks Rafael! I have reached out to the Oracle B2B Product Development to provide an enhancement. What is your email id in case I need more details about the open source product? I visited your web site. I am unable to download the APIs since I do not have SVN. Is there a location where I can download it as a compressed zip file?
    Thanks
    Shanthi

  • B2B Api???

    Hi,
    1) We have our B2B setup working fine for some partners and some agreements.
    Usually B2B generates edi xml for a given edi message. But that would be an end to end case for our environment.
    I wanted to know is there any possible way of generating an edi xml given an edi...coz we would like to use the edi xml in our java appln.
    May be calling some api of oracle b2b of by configuring some new thing in b2b.
    2) How can we fine tune the B2B for handling extremely large number of messages, something like 1.5-2million per day.
    Thanks,
    Rosh

    Hi Rosh,
    May be calling some api of oracle b2b of by configuring some new thing in b2bNo such public API's are available. You should set up an inbound EDI business action with a simulating trading partner set-up. Pass native EDI files from simulated Trading Partner to your Host TP and keep translation enabled in Operational Capability. At the IDC specified in agreement (at your B2B side), you will get the translated XML.
    2) How can we fine tune the B2B for handling extremely large number of messages, something like 1.5-2million per day.Depends on various parameters like network configuration, intermediatory hops, security, topology, Document, exchange, transport protocol, size of payload etc., however below links will help you for a large extent-
    http://www.b2bgurus.com/2007/10/oracle-as-b2b-performance-best.html
    http://www.b2bgurus.com/2009/05/best-practice-for-handling-large-edi.html
    http://www.b2bgurus.com/2008/08/tpa-caching.html
    Regards,
    Anuj

  • Partner Self-registration in Oracle B2B 10g

    Hi B2B team,
    Wanted to confirm from you if there is any provision for Partner self-registration in Oracle B2B 10g. We are on the latest patch. I am not aware of this functionality but wanted to get this confirmed from the product team.
    Also, we will require a server restart when a new TP comes onboard in Oracle B2B 10g isnt it? Is my understanding correct or is there something we can do to overcome this?
    Regards
    Kavitha

    Kavitha,
    Drop a mail to B2B product dev team/PM to know more on this part. As far as I know there is no such facility in 10g. Yes, bounce may be required in case of certificate changes involved.
    Regards,
    Anuj

  • How to set the AS2 fileName for outbound Functional Ack 997 auto generated by Oracle B2B

    Hi Friends,
    How to set the AS2 fileName for outbound Functional Ack 997 auto generated by Oracle B2B.
    External Trading Partner is sending the EDI 856 via AS2 URL to our Oracle B2B Server.
    In the inbound 856 agreement, we have checked the option of Funtional Ack and also Functiona Ack handled by B2B is yes.
    We have the outbound agreement which is sending that Functional ack 997 (auto generated by oracle b2b) and we have specified the Outbound AS2 channel of the Partner.
    997 doc is being sent to external partner using AS2 channel, but the filename is generating as '40101'.
    Please can you let me know how to set the AS2 fileName for outbound Functional Ack 997 auto generated by Oracle B2B.
    Appreciate your valuable answers!!
    Thanks,
    Amirineni

    Amirineni,
    AFAIK, there is no option to set the file name when the 997 is generated automatically by B2B.
    Alternatively, if this is a must requirement, you can generate the FA from backend and  send to B2B with MSG_TYPE =9. In this case, you can set the header with filename (How to set the actionname property in B2B 11g)

  • Setting Message-ID email header from Oracle B2B backend in 11g

    Hi,
    Is it possible to set the Message-ID from the backend application via JMS header? Is there a JMS header exposed to set this message id in case of email transport? Will the email server able to honor this value that we set and send to Oracle B2B in 11g and send it as the email header (Message-ID)? Is this possible?
    The idea here is if my backend application can set this Message-ID value of the request message, then the response message which would be a reply to the initial message will have the value of the Message-ID in the property in-reply-to. Now if this in-reply-to is also exposed an a JMS header to the backend application, then i will be able to co-relate the request and the response messages.
    Please let me know at the earliest if this would be possible.
    Regards
    Kavitha

    Kavitha,
    Is it possible to set the Message-ID from the backend application via JMS header? Yes, please set the MSG_ID header (jca.jms.JMSProperty.MSG_ID). It will be used as Message-ID in Wire Message.
    , then i will be able to co-relate the request and the response messages.Generic Mail does not support correlation as of now. You may consider logging an enhancement request with support. If you are exchanging XML messages then you may consider using content based correlation at B2B.
    Regards,
    Anuj

  • How to get the file name from Oracle B2B 10g

    Hi My requirement is I am getting a CSV file from Trading partner, I am using oracle 10g b2b to translate the data.
    In my BPEL 10g I am using AQ adapter to get the message from IP_IN_QUEUE.
    Now I want to get the file name Eg: SampleFile.dat of the CSV file in my BPEL process.
    I tried using the b2b.filename property in the receive activity and it is not getting the file name.
    <sequence name="main">
        <receive name="Receive_Note" partnerLink="GetB2BNote"
                 portType="ns1:Dequeue_ptt" operation="Dequeue"
                 variable="Receive_Note_Dequeue_InputVariable"
                 createInstance="yes">
                 <bpelx:property name="b2b.fileName" variable="WriteFileName"/>
        </receive>
      </sequence>
    Can you help me to get the file name from Oracle b2b 10g ?
    Thanks,
    b2b user

    Hi My requirement is I am getting a CSV file from Trading partner, I am using oracle 10g b2b to translate the data.
    In my BPEL 10g I am using AQ adapter to get the message from IP_IN_QUEUE.
    Now I want to get the file name Eg: SampleFile.dat of the CSV file in my BPEL process.
    I tried using the b2b.filename property in the receive activity and it is not getting the file name.
    <sequence name="main">
        <receive name="Receive_Note" partnerLink="GetB2BNote"
                 portType="ns1:Dequeue_ptt" operation="Dequeue"
                 variable="Receive_Note_Dequeue_InputVariable"
                 createInstance="yes">
                 <bpelx:property name="b2b.fileName" variable="WriteFileName"/>
        </receive>
      </sequence>
    Can you help me to get the file name from Oracle b2b 10g ?
    Thanks,
    b2b user

  • Unable to transform EDI document to XML payload in Oracle B2B inbound op

    Hi,
    In our current project we would be implementing Oracle B2B.So I am doing simple POC on Oracle B2B inbound operation for a EDI document for a project requirement.Facing issue if Transformation option selected in Oracle B2B console. Would really appreciate if you guys give me some pointer..
    Below is short desacription of POC:
    1) Created ECS file for Purchase Order(EDI_X12 Standard, 850, Version : 4010) in Spec Builder 6.6.0
    2) Created corresponding XSD and dummy test EDI data file(.dat) in Spec Builder 6.6.0
    3) In Oracle B2B Console, created Document Type and Document Definition
    4) Created 2 Trading Partners : Our Organisation(Host) and MyPartner(Remote)
    5) My Partner is Sender and Our Organisation is Receiver
    6) Linked Document Type to both Trading Partners
    7) Created a Listening Channel
    8) Protocol of Listening Channel is Generic File
    9) Mentioned Folder Path and File Type : %From PARTY%_%TO PARTY%_%DOCUMENT TYPE NAME_%DOCUMENT REVISION%.dat
    10) Agrrement validated and deployed
    11)Checked option Transformation for Agreement
    12) In SOA Composite created a simple Asynchronous BPEL process
    13) BPEL process using a B2B Adapter is subscribed to Document Type(Purchase Order) operatioon Receive and Mode Default
    14) Using a simple Assiign activity to map payload
    15) BPEL then inoke a File Adapter service to write sme XML payload(picked from B2B fatre EDI transformed to XML) to a file
    Issue Faced:
    1) B2B could make oput Sender and Receiver Trading Partners
    2) B2B could make out the Agrrement
    3) B2B is picking up EDI file
    4) If Agreemnet has Transformation option selected, then B2B is givinng below Error:
    [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@182461f] [userId: <anonymous>] [ecid: 0000JILzvC2E0Va_xLp2iW1EzqZ_0000pg,0] [APP: soa-infra] [dcid: 162dbcacafdb4641:19e705e4:13495b34174:-7fd3-0000000000000070] java.lang.UnsatisfiedLinkError: com.edifecs.xengine.xeobjects.XEHelper.createN2XNative()Lcom/edifecs/xengine/xeobjects/XEDataProc
    at com.edifecs.xengine.xeobjects.XEHelper.createN2XNative(Native Method)
    5) It is unable to transfer EDI payload to XML
    6) Checked payload in Wire Message : still showing EDI payload
    7) Due to this BPEL is facing issue since it is expecting XML payload
    8) In BPEL it is givimng Error: Index Out Of bound.. I guess may be due to EDI payload
    9) If transformation option unchecked in Agreement in B2B console then B2B working good but BPEl failing
    Options Tried:
    1) I Exported Repository,then purged design time data and Reimported and restarted Server and tested..not working
    2) I also created a Parser Scehma for Blank EDI document(that option I found in Spec Builder 6.6.0==>New Document-->Parser Schema(Blank EDI Document) and then placed that Parser Schema file(ECS file) in folder :
    C:\Oracle\Middleware\Weblogic\Oracle_SOA1\soa\thirdparty\edifecs\XEngine\config\schema
    and added an entry in XERegistry.xml
    <Item Name="SchemaFile">${XERoot}/config/schema/Spec2</Item>
    but not working..
    3) Checked namespace in XSd and WSDl for BPEL,they are correct
    Getting no clue how to resolve..Need help...
    Thank you...

    Log File :(Weblogic JDK pointing to 32 bit)
    [2012-01-01T01:32:01.818+05:30] [AdminServer] [ERROR] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@182461f] [userId: <anonymous>] [ecid: 0000JILhj4XE0Va_xLp2iW1EzqZ_00002J,0] [APP: soa-infra] [dcid: 162dbcacafdb4641:19e705e4:13495b34174:-7fd3-0000000000000070] java.lang.UnsatisfiedLinkError: com.edifecs.xengine.xeobjects.XEHelper.createN2XNative()Lcom/edifecs/xengine/xeobjects/XEDataProc;[[
         at com.edifecs.xengine.xeobjects.XEHelper.createN2XNative(Native Method)
         at com.edifecs.xengine.xeobjects.XEHelper.createN2X(Unknown Source)
         at oracle.tip.b2b.document.edi.EDIDocumentPlugin.processIncomingDocument(EDIDocumentPlugin.java:1112)
    java.lang.UnsatisfiedLinkError: com.edifecs.xengine.xeobjects.XEHelper.createN2XNative()Lcom/edifecs/xengine/xeobjects/XEDataProc;
         at com.edifecs.xengine.xeobjects.XEHelper.createN2XNative(Native Method)
         at com.edifecs.xengine.xeobjects.XEHelper.createN2X(Unknown Source)
         at oracle.tip.b2b.document.edi.EDIDocumentPlugin.processIncomingDocument(EDIDocumentPlugin.java:1112)
         at oracle.tip.b2b.engine.Engine.processIncomingMessageImpl(Engine.java:2348)
         at oracle.tip.b2b.engine.Engine.processIncomingMessage(Engine.java:1533)
    [2012-01-01T01:32:01.834+05:30] [AdminServer] [ERROR] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@182461f] [userId: <anonymous>] [ecid: 0000JILhj4XE0Va_xLp2iW1EzqZ_00002J,0] [APP: soa-infra] [dcid: 162dbcacafdb4641:19e705e4:13495b34174:-7fd3-0000000000000070] java.lang.IndexOutOfBoundsException: Index: 0, Size: 0[[
         at java.util.ArrayList.RangeCheck(ArrayList.java:547)
         at java.util.ArrayList.get(ArrayList.java:322)
         at oracle.tip.b2b.engine.Engine.processIncomingMessageImpl(Engine.java:2746)
         at oracle.tip.b2b.engine.Engine.processIncomingMessage(Engine.java:1533)
    [2012-01-01T01:32:01.846+05:30]
    ]]

  • Transactional Behaviour of Oracle B2B 11g

    Hi Gurus/Anuj,
    Can you please explain Transactional Behaviour in Oracle B2B 11g?
    For a Inbound Interface I have three Mediators(Mediator M1,M2 and M3)
    Partner push a file at file location --> B2B Interface used in M1 ,through B2B Binding,picks the FIle and brings to SOA and--> Give it to M2 and M3.
    I need to perform Error Handling in this case..
    M1 M2 and M3 are Asynchronous,Synch and Synch in nature and I guess M1 will propogate it's transaction to M2 and M2 will propogate it's transaction to M3.
    Routing rules are Sequential..
    Note : Fault policies are applicable to parallel routing rules only. For sequential routing rules, the fault goes back to the caller and it is the responsibility of the caller to handle the fault.
    Am I correct in understanding that :
    B2B Adapter in M1 is the caller and M2 and M3 ,as being Synchronous,will follow M1'a transaction.
    And if a Fault goes into M2 and M3,it will go back to the caller,means M1.
    And in M1 we can have Fault-Handling.
    Also please explain Transactional Behaviour in Oracle B2B 11g?
    Is B2B is Asynchronous in nature?
    Is B2B Adapter a Transactional Adapter?
    What category of JCA adapter is Oracle B2B adapter?
    Thanks
    Vivek
    Edited by: Vivek on May 19, 2011 11:41 PM
    Edited by: Vivek on May 19, 2011 11:54 PM

    Hi Vivek,
    Also please explain Transactional Behaviour in Oracle B2B 11g?Oracle B2B depends upon the underlying transport being used for transactional behavior. As far as transaction propagation is concerned, we never had any such need in B2B communication.
    Am I correct in understanding that :
    B2B Adapter in M1 is the caller and M2 and M3 ,as being Synchronous,will follow M1'a transaction.
    And if a Fault goes into M2 and M3,it will go back to the caller,means M1.
    And in M1 we can have Fault-Handling.If you are using AQ interface of B2B adapter with XA Data Source then that adapter can participate in an XA global transaction that can span multiple resources. In this transaction, the application server acts as the coordinating transaction manager with multiple databases (or other resources such as JMS), each of which is involved in a single transaction.
    If you are using JMS interface of B2B adapter with XA Connection factor then that adapter can also participate in an XA global transaction that can span multiple resources.
    If you are using Default (Fabric) interface of B2B adapter then it does not participate in global transaction, rather it starts it's own local transaction and executes in that. So it will totally depend upon the interface you are using with B2B adapter that it will start and propagate a global transaction or will not participate in a global transaction. Moreover, if B2B adapter is starting a transaction and propagating it to a async service then that sync service will start a new local transaction and further sync services may execute in that transaction. As soon as the control comes back to B2B adapter, it will commit the transaction.
    Is B2B is Asynchronous in nature?B2B can be used for both sync and async calls (between partners). B2B is async when communicating with middleware.
    Is B2B Adapter a Transactional Adapter?Explained above
    What category of JCA adapter is Oracle B2B adapter?No special category. It is a specific adapter for Oracle SOA SCA composites to facilitate them in communication with Oracle B2B. You may or may not use this adapter in SOA SCA composites.
    Regards,
    Anuj

  • How to implement callout in Oracle B2B 11g

    Hi,
    I am referring to the document http://docs.oracle.com/cd/E23943_01/user.1111/e10229/callouts.htm#CHDEFBDG and trying to implement callout for a specific requirement.
    Initially i want to implement the callout using simple XML-XML transformation . For this i have done couple of settings in oracle B2B but unfortunately it is not working. Below is the detailed steps.
    1) I have copied a example java Code Example of an XML-to-XML Transformation in section 13-2 of the above mentioned document to JDeveloper, compiled the code and created the jar file (TestCallout.jar).
    2) I have copied the .jar file to a specific path (ex: D:\Oracle\Middleware\user_projects\MyCallout ) and mentioned the same path in B2B UI / Configuration tab/ Callout Direcotry.
    3) Created a New .xsl file using Jdeveloper where i am mapping from one format of XML schema to another format of XML schema.
    4) I have created a new callout in the callout tab and below are the details:
    Implementation Class : com.mycallout.XMLTransform
    Library Name : TestCallout.jar
    Now please suggest me where i can mention the path of .xsl file which i have created, in Oracle B2B callout UI ?
    What parameter name and value should i mention in the parameters section?
    Below are my XSL file :
    <xsl:stylesheet version="1.0"
    xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
    xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:aia="http://www.oracle.com/XSL/Transform/java/oracle.apps.aia.core.xpath.AIAFunctions"
    xmlns:mhdr="http://www.oracle.com/XSL/Transform/java/oracle.tip.mediator.service.common.functions.MediatorExtnFunction"
    xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
    xmlns:oraext="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:ns0="http://www.example.org"
    xmlns:dvm="http://www.oracle.com/XSL/Transform/java/oracle.tip.dvm.LookupValue"
    xmlns:hwf="http://xmlns.oracle.com/bpel/workflow/xpath"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:med="http://schemas.oracle.com/mediator/xpath"
    xmlns:ids="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"
    xmlns:bpm="http://xmlns.oracle.com/bpmn20/extensions"
    xmlns:xdk="http://schemas.oracle.com/bpel/extension/xpath/function/xdk"
    xmlns:xref="http://www.oracle.com/XSL/Transform/java/oracle.tip.xref.xpath.XRefXPathFunctions"
    xmlns:ns1="http://www.example.org"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:ora="http://schemas.oracle.com/xpath/extension"
    xmlns:socket="http://www.oracle.com/XSL/Transform/java/oracle.tip.adapter.socket.ProtocolTranslator"
    xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap"
    exclude-result-prefixes="xsi xsl ns0 ns1 xsd xp20 bpws aia mhdr bpel oraext dvm hwf med ids bpm xdk xref ora socket ldap">
    <xsl:template match="/">
    <ns0:Input>
    <ns0:OrderType>
    <xsl:value-of select="concat(/ns1:OredrStatusInquiryRequest/ns1:BranchPlant,/ns1:OredrStatusInquiryRequest/ns1:OrderType)"/>
    </ns0:OrderType>
    <ns0:OrderNumber>
    <xsl:value-of select="/ns1:OredrStatusInquiryRequest/ns1:OrderNumber"/>
    </ns0:OrderNumber>
    <ns0:Item>
    <xsl:value-of select="concat(/ns1:OredrStatusInquiryRequest/ns1:LineNumber,/ns1:OredrStatusInquiryRequest/ns1:Item)"/>
    </ns0:Item>
    </ns0:Input>
    </xsl:template>
    </xsl:stylesheet>
    Please help me to move further.

    Now please suggest me where i can mention the path of .xsl file which i have created, in Oracle B2B callout UI ?In the step#4 itself, you need to add callout parameter with name "xsltFile" which should be of type string and value of this parameter should be absolute path of XSL file (including file name). So suppose you have copied the xsl in directory C:\xsl and name of XSL file is abc.xsl then value of parameter "xsltFile" should be C:\xsl\abc.xsl
    Regards,
    Anuj

  • EDIFECS Mapping not found in the X12 Output file in Oracle B2B 11g

    Hi,
    We are using Oracle SOA suite 11g, we have created a outbound process for EDI 855 which is PO Acknowledgement.
    We are using a XML Gateway for the outbound and consuming the message in BPEL. We are mapping the OAG xml to EDIFECS xml to be consumed by Oracle B2B. We had created the EDIFECS xsd and ecs file using Oracle B2B editor and got it validated.
    Now the issue is we have mapped few elements in BPEL and the same data is found in the payload message in Oracle B2B, but we are unable to see the data in the X12 output file.
    Any thoughts will be hightly appreciated.
    Thanks
    Sathish

    Hi,
    Thanks for your update.
    The following were the elements missing in the native X12 flat file. I verified these elements present in ecs using oracle b2b document editor.
    <ns0:Segment-PO1>
    <ns0:Element-355>EA</ns0:Element-355>
    <ns0:Element-235>UI</ns0:Element-235>
    <ns0:Element-234>UPCXREF</ns0:Element-234>
    </ns0:Segment-PO1>
    <ns0:Segment-ACK>
    <ns0:Element-355 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="">EA</ns0:Element-355>
    <ns0:Element-373>20100318</ns0:Element-373>
    </ns0:Segment-ACK>
    Thanks
    Sathish

  • How to send SOAP Message with Oracle B2B

    Hi everyone,
    I need your help to send out from Oracle B2B a SOAP message with attachment of any type of file (image, pdf, etc.). Possibly using a SOA composite application or another way, it doesn't matter. I already create an ebMS partnership with a custom document protocol and I already create a working SOA composite application to send only text message to my trading partner. I have tried this solution: http://anuj-dwivedi.blogspot.it/2011/04/ebms-attachment-handling-in-oracle-b2b.html but it doesn't work for my case... It is to be noticed that I don't give any schema to my component in the SOA application explained firstly, and I select opaque as schema.
    Thanks to all, regards
    Nello

    Hi Anuj and thanks for your help,
    I need to send an ebXML message, with SOAP, and I try to send it with a .war application written in jsp connecting to http://10.85.28.24:8001/b2b/transportServlet to send the SOAP message. The errors reported is:
    javax.xml.soap.SOAPException: Unable to receive message. Received a response from url: http://10.85.28.24:8001/b2b/transportServlet with HTTP status 200 and SOAP content-type: null.
    the code I write is the following (to evaluate the two "null" in the super constructor)
    <%!
    public class EBMSSender extends SOAPRunner
    private String cpaId;
    private String service;
    private String action;
    private String mess;
    private ArrayList<String> allegati=null;
    public EBMSSender(String cpaId, String service, String action, String mess, ArrayList<String> file)
    super("http://10.85.28.24:8001/b2b/transportServlet","null", "null");
    this.cpaId = cpaId;
    this.service = service;
    this.action = action;
    this.mess=mess;
    this.allegati=file;
    @Override
    protected void prepareRequest(SOAPMessage soapMessage, SOAPBody soapBody) throws SOAPException
    soapBody.addChildElement(SOAPUtility.createElement("CPAId", getNsPrefix(), getNsURI(),"agr3"));
    soapBody.addChildElement(SOAPUtility.createElement("service", getNsPrefix(), getNsURI(),"OracleService"));
    soapBody.addChildElement(SOAPUtility.createElement("action", getNsPrefix(), getNsURI(),"Oracletohermesb"));
    soapBody.addChildElement(SOAPUtility.createElement("serviceType", getNsPrefix(), getNsURI(),"OracleServiceType"));
    soapBody.addChildElement(SOAPUtility.createElement("convId", getNsPrefix(), getNsURI(), "convId"));
    soapBody.addChildElement(SOAPUtility.createElement("fromPartyId", getNsPrefix(), getNsURI(), "Oracle"));
    soapBody.addChildElement(SOAPUtility.createElement("fromPartyType", getNsPrefix(), getNsURI(), "Name"));
    soapBody.addChildElement(SOAPUtility.createElement("toPartyId", getNsPrefix(), getNsURI(), "Hermes-b"));
    soapBody.addChildElement(SOAPUtility.createElement("toPartyType", getNsPrefix(), getNsURI(), "Name"));
    attach(soapMessage);
    protected void attach(SOAPMessage soapMessage)
    String h=mess;
    DataHandler dh;
    AttachmentPart ap = soapMessage.createAttachmentPart(h,"text/plain");
    soapMessage.addAttachmentPart(ap);
    if(allegati!=null)
    for(int i=0; i<allegati.size();i++)
    dh=new DataHandler(new FileDataSource(new File(allegati.get(i))));
    ap=soapMessage.createAttachmentPart(dh);
    ap.setContentType(new MimetypesFileTypeMap().getContentType(allegati.get(i)));
    ap.setContentLocation(allegati.get(i));
    soapMessage.addAttachmentPart(ap);
    @Override
    protected void processFault(SOAPFault soapFault) throws SOAPException{}
    @Override
    protected Object processResponse(SOAPMessage responseMessage,SOAPBody responseBody) throws SOAPException
    SOAPElement messageId = SOAPUtility.getChild(responseBody, "message_id", getNsURI());
    return null;
    %>
    The code works fine on the other trading partner side to send ebXML message to Oracle B2B. Apart from this solution (however,it would be my favorite), I find your blog and I try to implement your solution. It works: it sends files with only text payload to the other trading partner without any problem, but if I try to send for example an image in byte array written in a file .txt, the ebxml file received has the byte array with wrong characters. it may be that I have not provided the xsd schema? in case if I wanted to send an ebXML message with text and attachments, what xsd schema do I need to provide?
    or is there another way to implement a SOA composite application to send SOAP messages with attachments?
    Thank for your help!, regards
    Nello

  • Correlation in Oracle B2B Transactions

    Hi All, I am trying to find how do we co-relate EDI transactions when used Generic File as protocol.
    Outbound Scenario:
    When an EDI transaction is sent to a Trading Partner and if the host is expected to receive a TA1 acknowledgment from Trading Partner, how do we ensure the TA1 sent by Trading partner is related to the EDI transaction sent by Host.
    Please advise...

    Correlation with TA1 works on the basis of Interchange Control Number. Element I12 of TA1 contains the Interchange Control Number on the basis of which Oracle B2B correlates it with the corresponding request.
    Regards,
    Anuj

  • Oracle B2B server is not starting up

    Hi,
    System DSCP no(HOST NAME) has got changed ,after that srever is not running up properly,can you plaese help me on this.We tried to change dscp no in cache and infra eventhough status is same.
    (dscp17512---changed to ---->new dscp no)
    Please find the logs here.
    Server status:
    E:\oraHome_Cache\ip\install>opmnctl startall
    opmnctl: starting opmn and all managed processes...
    ================================================================================
    opmn id=INBAAMPC00962:6201
    4 of 6 processes started.
    ias-instance id=oracleAS_Cache*.dscp17512*.techmahindra.com
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    ias-component/process-type/process-set:
    WebCache/WebCache/WebCache
    Error
    --> Process (pid=1796)
    failed to start a managed process after the maximum retry limit
    Log:
    E:\oraHome_Cache\opmn\logs\WebCache~WebCache~1
    ias-component/process-type/process-set:
    WebCache/WebCacheAdmin/WebCacheAdmin
    Error
    --> Process (pid=4744)
    failed to start a managed process after the maximum retry limit
    Log:
    E:\oraHome_Cache\opmn\logs\WebCache~WebCacheAdmin~1
    E:\oraHome_Cache\ip\install>opmnctl status
    Processes in Instance: oracleAS_Cache.dscp17512.techmahindra.com
    ------------------------------------------------+---------
    ias-component | process-type | pid | status
    ------------------------------------------------+---------
    LogLoader | logloaderd | N/A | Down
    dcm-daemon | dcm-daemon | N/A | Down
    OC4J | home | 5740 | Alive
    WebCache | WebCache | N/A | Down
    WebCache | WebCacheAdmin | N/A | Down
    HTTP_Server | HTTP_Server | 2960 | Alive
    B2B | B2BServer | 5296 | Alive
    B2B | OC4J_B2B | 4016 | Alive
    DSA | DSA | N/A | Down
    Logs:
    2009.04.16 at 14:38:03:708: B2BStarter thread: B2B - (DEBUG) B2BStarter - Exception Error -: AIP-13121: Connection-related error. Please verify that the database server is running.
    2009.04.16 at 14:38:03:708: B2BStarter thread: B2B - (DEBUG) B2BStarter - Leaving ExecutionContext
    2009.04.16 at 14:38:03:708: B2BStarter thread: B2B - (DEBUG) B2BStarter - Sleeping for 30000
    2009.04.16 at 14:38:33:708: B2BStarter thread: B2B - (DEBUG) B2BStarter - Context Initialized
    2009.04.16 at 14:38:35:739: B2BStarter thread: BusinessLogicLayer - (ERROR) java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:137)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:174)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:286)
         at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:327)
         at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:429)
         at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:150)
         at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:31)
         at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:608)
         at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:217)
         at oracle.jdbc.pool.OracleConnectionPoolDataSource.getPhysicalConnection(OracleConnectionPoolDataSource.java:113)
         at oracle.jdbc.pool.OracleConnectionPoolDataSource.getPooledConnection(OracleConnectionPoolDataSource.java:76)
         at oracle.jdbc.pool.OracleConnectionPoolDataSource.getPooledConnection(OracleConnectionPoolDataSource.java:58)
         at oracle.jdbc.pool.OracleConnectionCacheImpl.getNewPoolOrXAConnection(OracleConnectionCacheImpl.java:493)
         at oracle.jdbc.pool.OracleConnectionCacheImpl.getPooledConnection(OracleConnectionCacheImpl.java:368)
         at oracle.jdbc.pool.OracleConnectionCacheImpl.getConnection(OracleConnectionCacheImpl.java:306)
         at oracle.jdbc.pool.OracleConnectionCacheImpl.getConnection(OracleConnectionCacheImpl.java:285)
         at oracle.tip.buslogic.common.DBConnectivity.getConnection(DBConnectivity.java:151)
         at oracle.tip.buslogic.common.ExecutionContextImpl.getService(ExecutionContextImpl.java:379)
         at oracle.tip.buslogic.common.SessionDownException.isSessionDown(SessionDownException.java:79)
         at oracle.tip.common.IPRuntimeException.initIPException(IPRuntimeException.java:146)
         at oracle.tip.common.IPRuntimeException.<init>(IPRuntimeException.java:98)
         at oracle.tip.buslogic.common.BusinessLogicRuntimeException.<init>(BusinessLogicRuntimeException.java:93)
         at oracle.tip.buslogic.common.DBConnectivity.getConnection(DBConnectivity.java:160)
         at oracle.tip.buslogic.common.ExecutionContextImpl.getService(ExecutionContextImpl.java:379)
         at oracle.tip.buslogic.common.ExecutionContextImpl.getMetaManager(ExecutionContextImpl.java:582)
         at oracle.tip.buslogic.common.PredicateManager.createPredicate(PredicateManager.java:45)
         at oracle.tip.configuration.ConfigurationUtil.getConfigurations(ConfigurationUtil.java:273)
         at oracle.tip.configuration.ConfigurationUtil.getRuntimeActiveAndQuiescingConfigurations(ConfigurationUtil.java:436)
         at oracle.tip.adapter.b2b.init.B2BStarter.run(B2BStarter.java:136)
         at java.lang.Thread.run(Thread.java:534)
    2009.04.16 at 14:38:35:739: B2BStarter thread: BusinessLogicLayer - (ERROR) caught error: Error -: AIP-13002: SQL error getting the DataSource
    2009.04.16 at 14:38:35:739: B2BStarter thread: IP - (ERROR) java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:137)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:174)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:286)
         at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:327)
         at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:429)
         at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:150)
         at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:31)
         at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:608)
         at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:217)
         at oracle.jdbc.pool.OracleConnectionPoolDataSource.getPhysicalConnection(OracleConnectionPoolDataSource.java:113)
         at oracle.jdbc.pool.OracleConnectionPoolDataSource.getPooledConnection(OracleConnectionPoolDataSource.java:76)
         at oracle.jdbc.pool.OracleConnectionPoolDataSource.getPooledConnection(OracleConnectionPoolDataSource.java:58)
         at oracle.jdbc.pool.OracleConnectionCacheImpl.getNewPoolOrXAConnection(OracleConnectionCacheImpl.java:493)
         at oracle.jdbc.pool.OracleConnectionCacheImpl.getPooledConnection(OracleConnectionCacheImpl.java:368)
         at oracle.jdbc.pool.OracleConnectionCacheImpl.getConnection(OracleConnectionCacheImpl.java:306)
         at oracle.jdbc.pool.OracleConnectionCacheImpl.getConnection(OracleConnectionCacheImpl.java:285)
         at oracle.tip.buslogic.common.DBConnectivity.getConnection(DBConnectivity.java:151)
         at oracle.tip.buslogic.common.ExecutionContextImpl.getService(ExecutionContextImpl.java:379)
         at oracle.tip.buslogic.common.ExecutionContextImpl.getMetaManager(ExecutionContextImpl.java:582)
         at oracle.tip.buslogic.common.PredicateManager.createPredicate(PredicateManager.java:45)
         at oracle.tip.configuration.ConfigurationUtil.getConfigurations(ConfigurationUtil.java:273)
         at oracle.tip.configuration.ConfigurationUtil.getRuntimeActiveAndQuiescingConfigurations(ConfigurationUtil.java:436)
         at oracle.tip.adapter.b2b.init.B2BStarter.run(B2BStarter.java:136)
         at java.lang.Thread.run(Thread.java:534)
    2009.04.16 at 14:38:35:739: B2BStarter thread: B2B - (DEBUG) B2BStarter - Exception Error -: AIP-13121: Connection-related error. Please verify that the database server is running.
    2009.04.16 at 14:38:35:739: B2BStarter thread: B2B - (DEBUG) B2BStarter - Leaving ExecutionContext
    2009.04.16 at 14:38:35:739: B2BStarter thread: B2B - (DEBUG) B2BStarter - Sleeping for 30000
    2009.04.16 at 14:39:05:738: B2BStarter thread: B2B - (DEBUG) B2BStarter - Context Initialized
    2009.04.16 at 14:39:07:785: B2BStarter thread: BusinessLogicLayer - (ERROR) java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:137)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:174)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:286)
         at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:327)
         at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:429)
         at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:150)
         at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:31)
         at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:608)
         at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:217)
         at oracle.jdbc.pool.OracleConnectionPoolDataSource.getPhysicalConnection(OracleConnectionPoolDataSource.java:113)
         at oracle.jdbc.pool.OracleConnectionPoolDataSource.getPooledConnection(OracleConnectionPoolDataSource.java:76)
         at oracle.jdbc.pool.OracleConnectionPoolDataSource.getPooledConnection(OracleConnectionPoolDataSource.java:58)
         at oracle.jdbc.pool.OracleConnectionCacheImpl.getNewPoolOrXAConnection(OracleConnectionCacheImpl.java:493)
         at oracle.jdbc.pool.OracleConnectionCacheImpl.getPooledConnection(OracleConnectionCacheImpl.java:368)
         at oracle.jdbc.pool.Orac
    Thanks
    Raj

    Hi Raj,
    Couple of points. Please check,
    1. if the listener is up
    2. the tnsnames.ora to check the right HOST
    3. related services are up
    The following thread may be of use :
    Re: Not able to connect to Oracle B2B database after restart of my system
    Regards,
    Dheeraj

  • Oracle B2B :(AIP-51505 : 5082: XEngine error - Guideline look-up failed)

    I am getting following error message on the remote host when I try to enque .
    In the error report (B2b Console)
    AIP-51505 : 5082: XEngine error - Guideline look-up failed
    I have already verified and re-verified the document properties/properties/revision on the Oracle B2B console.
    I think this error is related to
    2008.01.28 at 15:54:12:156: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.ISelectorImpl:getValue Value = Webmd
    2008.01.28 at 15:54:12:156: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.ISelectorImpl:doCommit Enter
    2008.01.28 at 15:54:12:156: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.ISelectorImpl:doCommit NodeGUID = {0BF5065C-F83C-441C-A8AA-C85CF4197931} position = 0
    2008.01.28 at 15:54:12:156: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.ISelectorImpl:doCommit Leave
    2008.01.28 at 15:54:12:156: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.ISelectorImpl:cloneSelector Enter
    2008.01.28 at 15:54:12:156: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.ISelectorImpl:cloneSelector Return = oracle.tip.adapter.b2b.document.edi.ISelectorImpl@15fc672
    2008.01.28 at 15:54:12:156: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.ISelectorImpl:doLookup Enter
    2008.01.28 at 15:54:12:156: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.ISelectorImpl:doLookup key = TransactionPurposeCode, val = [13]
    2008.01.28 at 15:54:12:156: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.ISelectorImpl:doLookup param = [null]
    2008.01.28 at 15:54:12:156: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.ISelectorImpl:doLookup Value doesn't match, doc parameter is null
    2008.01.28 at 15:54:12:156: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.ISelectorImpl:doLookup key = TransactionID, val = [270]
    2008.01.28 at 15:54:12:156: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.ISelectorImpl:doLookup param = [270]
    2008.01.28 at 15:54:12:156: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.ISelectorImpl:doLookup key = ec_DataNodeName, val = [Transaction]
    Would you know which config in Oracle B2B contain the TransactionPurposeCode ?
    Thanks for help

    Hello,
    Please let us know the Business protocol and also send the b2b.log in DEBUG mode to [email protected]
    Rgds,Ramesh

Maybe you are looking for