6 Replies Latest reply: Feb 1, 2013 5:23 AM by Anuj Dwivedi--Oracle RSS

    Rosettanet - self service

    Srisree
      Hi,

      I am trying to implement self-service functionality of Oracle b2b I am getting below errors . please help

      self service xml file followed http://anuj-dwivedi.blogspot.nl/2012_07_01_archive.html

      <?xml version="1.0" encoding="UTF-8" ?>
      <SelfService xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://xmlns.oracle.com/integration/b2b/selfservice/profile selfservice.xsd"
      xmlns="http://xmlns.oracle.com/integration/b2b/selfservice/profile">
      <DocumentProtocols>
      <DocumentProtocol name="RosettaNet" >
      <DocumentProtocolVersion name="V02.00">
      <DocumentType name="Pip3A4PurchaseOrderRequest">
      <DocumentDefinition name="PurchaseOrderRequest_Def" customFileType="false" definitionFileName="PurchaseOrderRequest-V0200.xsd" useDefaultDefinition="true">
      <ParameterValue name="DocumentRoutingID" value="pip3a4_po_id1"/>
      <ParameterValue name="DTDXSDNamespaceConversion" value="Both"/>
      </DocumentDefinition>
      <ParameterValue name="FromRole" value="Buyer"/>
      <ParameterValue name="ToRole" value="Seller"/>
      <ParameterValue name="FromService" value="BuyerService"/>
      <ParameterValue name="ToService" value="SellerService"/>
      <ParameterValue name="BusinessTransaction" value="Purchase Order Request"/>
      <ParameterValue name="BusinessAction" value="Purchase Order Request Action"/>
      <ParameterValue name="CollaborationTimeToPerform" value="120"/>
      <ParameterValue name="CollaborationName" value="3A4"/>
      <ParameterValue name="CollaborationCode" value="Purchase Order Request"/>
      <ParameterValue name="GlobalUsageCode" value="Production"/>
      </DocumentType>
      <DocumentType name="Pip3A4PurchaseOrderConfirmation">
      <DocumentDefinition name="PurchaseOrderConfirmation_Def" customFileType="false" definitionFileName="PurchaseOrderConfirmation_v0200.xsd" useDefaultDefinition="true">
      <ParameterValue name="DocumentRoutingID" value="pip3a4_po_id1"/>
      <ParameterValue name="DTDXSDNamespaceConversion" value="Both"/>
      </DocumentDefinition>
      <ParameterValue name="FromRole" value="Seller"/>
      <ParameterValue name="ToRole" value="Buyer"/>
      <ParameterValue name="FromService" value="SellerService"/>
      <ParameterValue name="ToService" value="BuyerService"/>
      <ParameterValue name="BusinessTransaction" value="Purchase Order Confirmation"/>
      <ParameterValue name="BusinessAction" value="Purchase Order Confirmation Action"/>
      <ParameterValue name="CollaborationTimeToPerform" value="120"/>
      <ParameterValue name="CollaborationName" value="3A4"/>
      <ParameterValue name="CollaborationCode" value="Purchase Order Confirmation"/>
      <ParameterValue name="GlobalUsageCode" value="Production"/>
      </DocumentType>
      </DocumentProtocolVersion>
      </DocumentProtocol>
      </DocumentProtocols>
      <TradingPartners>
      <TradingPartner name="hostService" hosted="true">
      <Identification name="Name" value="hostService"/>
      <Identification name="DUNS" value="987654321"/>
      <SupportedDocumentDefinition initiator="false" docTypeName="Pip3A4PurchaseOrderRequest"
      docProtocolVersion="V02.00" docProtocolName="RosettaNet"
      docDefName="PurchaseOrderRequest_Def"/>
      <SupportedDocumentDefinition initiator="true" docTypeName="Pip3A4PurchaseOrderConfirmation"
      docProtocolVersion="V02.00" docProtocolName="RosettaNet"
      docDefName="PurchaseOrderConfirmation_Def"/>
      </TradingPartner>
      <TradingPartner name="tradingPT" hosted="false">
      <Identification name="Name" value="tradingPT"/>
      <Identification name="DUNS" value="123456789"/>
      <DeliveryChannel listening="true"
      name="tradingPT_RNIF_Channel"
      internal="false" ackMode="None">
      <ExchangeProtocolRef name="RNIF20"/>
      <TransportProtocolRef name="HTTP">
      <ParameterValue name="url" value="http://xxx.xxx.xxx.xxx:9010/b2b/httpReceiver"/>
      <ParameterValue name="use_proxy" value="false"/>
      </TransportProtocolRef>
      </DeliveryChannel>
      <SupportedDocumentDefinition initiator="false" docTypeName="PurchaseOrderConfirmation"
      docProtocolVersion="V02.00" docProtocolName="RosettaNet"
      docDefName="PurchaseOrderConfirmation_Def"/>
      <SupportedDocumentDefinition initiator="true" docTypeName="PurchaseOrderRequest"
      docProtocolVersion="V02.00" docProtocolName="RosettaNet"
      docDefName="PurchaseOrderRequest_Def"/>
      </TradingPartner>
      </TradingPartners>
      <Agreements>
      <Agreement name="RNIF_tradingPT_hostService_3A4_0200_PO_Agr" agreementId="RNIF_tradingPT_hostService_3A4_0200_PO">
      <SupportedDocumentType docTypeName="Pip3A4PurchaseOrderRequest" docProtocolVersion="V02.00" docDefName="PurchaseOrderRequest_Def"
      docProtocolName="RosettaNet">
      <InitiatingParticipant name="tradingPT">
      <Identifications>
      <IdentificationRef name="Name" value="tradingPT"/>
      <IdentificationRef name="DUNS" value="123456789"/>
      </Identifications>
      <DeliveryChannels>
      <DeliveryChannelRef name="tradingPT_RNIF_Channel"/>
      </DeliveryChannels>
      </InitiatingParticipant>
      <RespondingParticipant name="hostService">
      <Identifications>
      <IdentificationRef name="Name" value="hostService"/>
      <IdentificationRef name="DUNS" value="987654321"/>
      </Identifications>
      <DeliveryChannels/>
      </RespondingParticipant>
      <AgrDocTypeParameterValues>
      <ParameterValue name="validate" value="false"/>
      </AgrDocTypeParameterValues>
      </SupportedDocumentType>
      </Agreement>

      <Agreement name="RNIF_hostService_tradingPT_3A4_0200_POC_Agr" agreementId="RNIF_hostService_tradingPT_3A4_0200_POC">
      <SupportedDocumentType docTypeName="Pip3A4PurchaseOrderConfirmation" docProtocolVersion="V02.00" docDefName="PurchaseOrderConfirmation_Def"
      docProtocolName="RosettaNet">
      <InitiatingParticipant name="hostService">
      <Identifications>
      <IdentificationRef name="Name" value="hostService"/>
      <IdentificationRef name="DUNS" value="987654321"/>
      </Identifications>
      </InitiatingParticipant>
      <RespondingParticipant name="tradingPT">
      <Identifications>
      <IdentificationRef name="Name" value="tradingPT"/>
      <IdentificationRef name="DUNS" value="123456789"/>
      </Identifications>
      <DeliveryChannels>
      <DeliveryChannelRef name="tradingPT_RNIF_Channel"/>
      </DeliveryChannels>
      </RespondingParticipant>
      <AgrDocTypeParameterValues>
      <ParameterValue name="validate" value="false"/>
      </AgrDocTypeParameterValues>
      </SupportedDocumentType>
      </Agreement>
      </Agreements>
      </SelfService>

      error message
      C:\Oracle\Middleware\Oracle_SOA1\bin>ant -f ant-b2b-util.xml b2bselfservice -Dinput="C:\DEV\B2B\self
      service.xml" -Doutput="C:\DEV\B2B\B2B_Export.zip"
      Buildfile: ant-b2b-util.xml

      b2bselfservice:

      weblogic_dependencies:
      [echo]
      [echo] Weblogic server location: C:\Oracle\Middleware\Oracle_SOA1\bin/../../wlserve
      r_10.3
      [echo] JNDI properties folder location: C:\Oracle\Middleware\Oracle_SOA1\bin
      [echo]

      verifyargs:

      utility:
      [echo]
      [echo] exitonerror=true
      [echo]
      [echo]
      [echo] java.naming.provider.url=t3://localhost:18001
      [echo] java.naming.factory.initial=weblogic.jndi.WLInitialContextFactory
      [echo] java.naming.security.principal=weblogic
      [echo] java.naming.security.credentials=*****
      [echo]
      [echo]
      [echo] args=selfservice
      [echo]
      [java] Commandline arguments 1: [selfservice]
      [java] 2013.01.24 at 15:07:54:921: main: (INFO) Input file location(s) :[C:\DEV\B2B\selfservice
      .xml]
      [java] 2013.01.24 at 15:07:54:921: main: (INFO) Output file location :C:\DEV\B2B\B2B_Export.zip

      [java] 2013.01.24 at 15:07:54:954: main: (INFO) DocumentProtocol created :/soa/b2b/doc_RosettaN
      et.xml
      [java] 2013.01.24 at 15:07:54:968: main: (SEVERE) selfservice.xml: ID does not found for Param
      etervalue Name :GlobalUsageCode
      [java] 2013.01.24 at 15:07:54:976: main: (SEVERE) selfservice.xml: ID does not found for Param
      etervalue Name :GlobalUsageCode
      [java] 2013.01.24 at 15:07:55:053: main: (INFO) TradingPartner created :/soa/b2b/tp_MyCompany.x
      ml
      [java] 2013.01.24 at 15:07:55:070: main: (INFO) TradingPartner created :/soa/b2b/tp_id337F00017
      9919.xml
      [java] 2013.01.24 at 15:07:55:074: main: (SEVERE) selfservice.xml: Combination of Documentpro
      tocol=RosettaNet docVersion=V02.00 docType=PurchaseOrderConfirmation docDef=PurchaseOrderConfirmatio
      n_Def not found in doc_*.xml file
      [java] 2013.01.24 at 15:07:55:075: main: (SEVERE) selfservice.xml: Combination of Documentpro
      tocol=RosettaNet docVersion=V02.00 docType=PurchaseOrderRequest docDef=PurchaseOrderRequest_Def not
      found in doc_*.xml file
      [java] 2013.01.24 at 15:07:55:128: main: (SEVERE) selfservice.xml: Error in Validation:
      [java] [org.xml.sax.SAXParseException: XML-24536: (Error) Missing Attribute 'documentDefinition
      Ref', org.xml.sax.SAXParseException: XML-24536: (Error) Missing Attribute 'documentDefinitionRef']
      [java] Java Result: -1

      BUILD SUCCESSFUL


      not sure what is the error with GlobalUsageCode and doc_*.xml file

      all selfservice.xml, selfservice.xsd, PurchaseOrderRequest-V0200.xsd and PurchaseOrderConfirmation_v0200.xsd files are in same location.

      Thanks
        • 1. Re: Rosettanet - self service
          Nitesh Jain
          Please add below attribute in DocumentDefinition with value as a xsd filename:
          documentDefinitionRef

          means:
          <DocumentDefinition name="PurchaseOrderRequest_Def" customFileType="false" definitionFileName="PurchaseOrderRequest-V0200.xsd" "documentDefinitionRef=PurchaseOrderRequest-V0200.xsd" useDefaultDefinition="true">
          • 2. Re: Rosettanet - self service
            Anuj Dwivedi--Oracle
            And remove the parameter GlobalUsageCode from your self-service XML.

            Regards,
            Anuj
            • 3. Re: Rosettanet - self service
              Srisree
              Thanks Nitesh and Anuj.

              Still not working . I am getting error as follows

              C:\Oracle\Middleware\Oracle_SOA1\bin>ant -f ant-b2b-util.xml b2bselfservice -Dinput="C:\DEV\B2B\self
              service.xml" -Doutput="C:\DEV\B2B\B2B_Export1.zip"
              Buildfile: ant-b2b-util.xml

              b2bselfservice:

              weblogic_dependencies:
              [echo]
              [echo] Weblogic server location: C:\Oracle\Middleware\Oracle_SOA1\bin/../../wlserve
              r_10.3
              [echo] JNDI properties folder location: C:\Oracle\Middleware\Oracle_SOA1\bin
              [echo]

              verifyargs:

              utility:
              [echo]
              [echo] exitonerror=true
              [echo]
              [echo]
              [echo] java.naming.provider.url=t3://localhost:18001
              [echo] java.naming.factory.initial=weblogic.jndi.WLInitialContextFactory
              [echo] java.naming.security.principal=weblogic
              [echo] java.naming.security.credentials=*****
              [echo]
              [echo]
              [echo] args=selfservice
              [echo]
              [java] Commandline arguments 1: [selfservice]
              [java] 2013.01.28 at 14:03:48:829: main: (SEVERE) selfservice.xml: XSD Validation error:
              [java] [org.xml.sax.SAXParseException: XML-24535: (Error) Attribute 'documentDefinitionRef' not
              expected., org.xml.sax.SAXParseException: XML-24535: (Error) Attribute 'documentDefinitionRef' not
              expected.]
              [java] Java Result: -1

              BUILD SUCCESSFUL
              • 4. Re: Rosettanet - self service
                Anuj Dwivedi--Oracle
                Use below XML and it should work -
                <?xml version="1.0" encoding="UTF-8"?>
                <SelfService xmlns="http://xmlns.oracle.com/integration/b2b/selfservice/profile">
                     <DocumentProtocols>
                          <DocumentProtocol name="RosettaNet" custom="false">
                              <DocumentProtocolVersion name="V02.00">
                              <DocumentType name="Pip3A4PurchaseOrderRequest">
                               <DocumentDefinition customFileType="false" definitionFileName="PurchaseOrderRequest-V0200.xsd" name="PurchaseOrderRequest_Def" useDefaultDefinition="false">
                                    <ParameterValue name="DocumentRoutingID" value="pip3a4_po_id1"/>
                                    <ParameterValue name="DTDXSDNamespaceConversion" value="Both"/>
                               </DocumentDefinition>
                               <ParameterValue name="FromRole" value="Buyer"/>
                               <ParameterValue name="ToRole" value="Seller"/>
                               <ParameterValue name="FromService" value="BuyerService"/>
                               <ParameterValue name="ToService" value="SellerService"/>
                               <ParameterValue name="BusinessTransaction" value="Purchase Order Request"/>
                               <ParameterValue name="BusinessAction" value="Purchase Order Request Action"/>
                               <ParameterValue name="CollaborationTimeToPerform" value="120"/>
                               <ParameterValue name="CollaborationName" value="3A4"/>
                               <ParameterValue name="CollaborationCode" value="Purchase Order Request"/>
                              </DocumentType>
                              <DocumentType name="Pip3A4PurchaseOrderConfirmation">
                                   <DocumentDefinition name="PurchaseOrderConfirmation_Def" customFileType="false" definitionFileName="PurchaseOrderConfirmation_v0200.xsd" useDefaultDefinition="true">
                                        <ParameterValue name="DocumentRoutingID" value="pip3a4_po_id1"/>
                                        <ParameterValue name="DTDXSDNamespaceConversion" value="Both"/>
                                   </DocumentDefinition>
                                   <ParameterValue name="FromRole" value="Seller"/>
                                   <ParameterValue name="ToRole" value="Buyer"/>
                                   <ParameterValue name="FromService" value="SellerService"/>
                                   <ParameterValue name="ToService" value="BuyerService"/>
                                   <ParameterValue name="BusinessTransaction" value="Purchase Order Confirmation"/>
                                   <ParameterValue name="BusinessAction" value="Purchase Order Confirmation Action"/>
                                   <ParameterValue name="CollaborationTimeToPerform" value="120"/>
                                   <ParameterValue name="CollaborationName" value="3A4"/>
                                   <ParameterValue name="CollaborationCode" value="Purchase Order Confirmation"/>
                             </DocumentType>
                          </DocumentProtocolVersion>
                           </DocumentProtocol>
                     </DocumentProtocols>
                     <TradingPartners>
                       <TradingPartner hosted="true" name="hostService">
                           <Identification name="DUNS" value="987654321"/>
                                    <SupportedDocumentDefinition docDefName="PurchaseOrderRequest_Def"
                                    docProtocolName="RosettaNet" docProtocolVersion="V02.00"
                                    docTypeName="Pip3A4PurchaseOrderRequest" initiator="false" />
                          <SupportedDocumentDefinition docDefName="PurchaseOrderConfirmation_Def" docProtocolName="RosettaNet" docProtocolVersion="V02.00" docTypeName="Pip3A4PurchaseOrderConfirmation" initiator="true"/>
                               
                       </TradingPartner>
                      <TradingPartner hosted="false" name="tradingPT">
                           <Identification name="DUNS" value="123456789"/>
                           <Identification name="Name" value="tradingPT"/>
                          <DeliveryChannel name="tradingPT_RNIF_Channel" internal="false" listening="false">
                               <ExchangeProtocolRef name="RNIF20">
                               </ExchangeProtocolRef>
                               <TransportProtocolRef name="HTTP">
                                    <ParameterValue value="https://11.12.13.14/b2b/transportServlet" name="url"/>
                                    <ParameterValue value="false" name="use_proxy"/>
                               </TransportProtocolRef>
                          </DeliveryChannel>
                          
                        <SupportedDocumentDefinition docDefName="PurchaseOrderRequest_Def"
                                            docProtocolName="RosettaNet" docProtocolVersion="V02.00"
                                            docTypeName="Pip3A4PurchaseOrderRequest" initiator="true" />
                          <SupportedDocumentDefinition docDefName="PurchaseOrderConfirmation_Def" docProtocolName="RosettaNet" docProtocolVersion="V02.00" docTypeName="Pip3A4PurchaseOrderConfirmation" initiator="false"/>
                               
                     </TradingPartner>
                     </TradingPartners>
                     <Agreements>
                     
                                 <Agreement agreementId="RNIF_hostService_tradingPT_3A4_0200_POC" name="RNIF_hostService_tradingPT_3A4_0200_POC_Agr">
                                        <SupportedDocumentType docDefName="PurchaseOrderConfirmation_Def" docProtocolName="RosettaNet" docProtocolVersion="V02.00" docTypeName="Pip3A4PurchaseOrderConfirmation">
                                                <InitiatingParticipant name="hostService">
                                                       <Identifications>
                                                                <IdentificationRef name="DUNS" value="987654321"/>
                                                                <IdentificationRef name="Name" value="hostService"/>
                
                                                        </Identifications>
                                                </InitiatingParticipant>
                                                <RespondingParticipant name="tradingPT">
                                                        <Identifications>
                
                                                                <IdentificationRef name="DUNS" value="123456789"/>
                                                    <IdentificationRef name="Name" value="tradingPT"/>
                                                        </Identifications>
                                                        <DeliveryChannels>
                                              <DeliveryChannelRef name="tradingPT_RNIF_Channel"/>
                                         </DeliveryChannels>
                 
                                                </RespondingParticipant>
                                                <AgrDocTypeParameterValues>
                                                        <ParameterValue name="validate" value="false"/>
                                                </AgrDocTypeParameterValues>
                                        </SupportedDocumentType>
                                </Agreement>
                          </Agreements>
                </SelfService>
                • 5. Re: Rosettanet - self service
                  Srisree
                  Anju, Thanks for you response.

                  Still I was getting same error
                  • 6. Re: Rosettanet - self service
                    Anuj Dwivedi--Oracle
                    Please provide the "opatch lsinventory" output from your Oracle SOA home. The XML which I provided, works perfectly with plain PS5 (11.1.1.6).

                    Regards,
                    Anuj