WebService from XI

Hi Expert,
I have a RFC in R/3 system and I need to expose the RFC in XI as web service. Could anyone guide me how to create this scenario.
Note: my customer do not want to expose webservice from RFC in R/3 system. That can be done only from XI, if possible. So the communication from the client to XI will be through SOAP adapter and from XI to R/3 will be through RFC adapter.
Thanks,
Sri.

Hi,
In that case create a message interface using the RFC for the sender side because you can create a WSDL for your interface using this interface definition. To create the WSDL in the Integration directory go to <b>Tools->define webservice</b>, the URL to be is in this format:
http://host:port/XISOAPAdapter/MessageServlet?channel=:<service>:<channel> ,where service is the sender business service and channel is the sender communication channel.
Then you can use altova or any other soap client tool to test the scenario using the generated WSDL.
You can take a look at Stefan's <a href="/people/stefan.grube/blog/2006/09/21/using-the-soap-inbound-channel-of-the-integration-engine where you can send the soap request directly to the integration engine and hence would not require a SOAP sender channel. Just for some additional information.
Regards,
Chandra

Similar Messages

  • Error while running a eBS webservice from the SoapUI Tool

    Hello All,
    I am trying to run PurchaseOrder Service webservice from the soap ui tool, In this service there are 6 methods are available and i am currently running the QueryPurchaseOrder method:
    Following is the soap message I am running:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:pox="http://xmlns.oracle.com/java/oracle/apps/po/services/poxpoepo/POXPOEPOServices_DocStyle/" xmlns:orac="http://oracle.apps.fnd.soa.forms.services.rt.formsSchema/">
    <soapenv:Header>
    <pox:SOAHeader>
    <!--Optional:-->
    <pox:Responsibility></pox:Responsibility>
    <!--Optional:-->
    <pox:RespApplication></pox:RespApplication>
    <!--Optional:-->
    <pox:SecurityGroup></pox:SecurityGroup>
    <!--Optional:-->
    <pox:NLSLanguage></pox:NLSLanguage>
    <!--Optional:-->
    <pox:Org_Id>204</pox:Org_Id>
    </pox:SOAHeader>
    </soapenv:Header>
    <soapenv:Body>
    <pox:queryPurchaseOrder_Request>
    <orac:OutsideProcessing>
    <!--Optional:-->
    <orac:Job></orac:Job>
    <!--Optional:-->
    <orac:Line></orac:Line>
    <!--Optional:-->
    <orac:OSPUnitType></orac:OSPUnitType>
    <!--Optional:-->
    <orac:OperationSequence></orac:OperationSequence>
    <!--Optional:-->
    <orac:ResourceSequence></orac:ResourceSequence>
    <!--Optional:-->
    <orac:ResourceCode></orac:ResourceCode>
    </orac:OutsideProcessing>
    <orac:PoHeaders>
    <!--Zero or more repetitions:-->
    <orac:PoLines>
    <orac:LineNum>1</orac:LineNum>
    <orac:LineType>Goods</orac:LineType>
    <!--Optional:-->
    <orac:Item></orac:Item>
    <!--Optional:-->
    <orac:ItemRevision></orac:ItemRevision>
    <!--Optional:-->
    <orac:Job></orac:Job>
    <orac:ItemCategory>MISC.MISC</orac:ItemCategory>
    <orac:ItemDescription>test</orac:ItemDescription>
    <orac:UnitOfMeasure>EA</orac:UnitOfMeasure>
    <!--Optional:-->
    <orac:LineOrderQuantity></orac:LineOrderQuantity>
    <!--Optional:-->
    <orac:Quantity></orac:Quantity>
    <!--Optional:-->
    <orac:LineUnitPrice></orac:LineUnitPrice>
    <!--Optional:-->
    <orac:PromisedDate></orac:PromisedDate>
    <!--Optional:-->
    <orac:NeedByDate></orac:NeedByDate>
    <!--Optional:-->
    <orac:VendorProductNum></orac:VendorProductNum>
    <!--Optional:-->
    <orac:Amount></orac:Amount>
    <!--Optional:-->
    <orac:ChargeAccount></orac:ChargeAccount>
    <!--Optional:-->
    <orac:Reserved></orac:Reserved>
    <!--Optional:-->
    <orac:OPMLineSecondaryUOM></orac:OPMLineSecondaryUOM>
    <!--Optional:-->
    <orac:OPMLineSecondaryQuantity></orac:OPMLineSecondaryQuantity>
    <!--Optional:-->
    <orac:SecondaryQuantity></orac:SecondaryQuantity>
    <!--Optional:-->
    <orac:PreferredLineGrade></orac:PreferredLineGrade>
    <!--Optional:-->
    <orac:ItemListPrice></orac:ItemListPrice>
    <!--Optional:-->
    <orac:ItemMarketPrice></orac:ItemMarketPrice>
    <!--Optional:-->
    <orac:PriceType></orac:PriceType>
    <!--Optional:-->
    <orac:AllowPriceOverride></orac:AllowPriceOverride>
    <!--Optional:-->
    <orac:PriceLimit></orac:PriceLimit>
    <!--Optional:-->
    <orac:Negotiated></orac:Negotiated>
    <!--Optional:-->
    <orac:ContractNum></orac:ContractNum>
    <!--Optional:-->
    <orac:GlobalContract></orac:GlobalContract>
    <!--Optional:-->
    <orac:ContractOwningOrg></orac:ContractOwningOrg>
    <!--Optional:-->
    <orac:SourceDocumentType></orac:SourceDocumentType>
    <!--Optional:-->
    <orac:FromDocumentNum></orac:FromDocumentNum>
    <!--Optional:-->
    <orac:FromDocumentLineNum></orac:FromDocumentLineNum>
    <!--Optional:-->
    <orac:GlobalBlanket></orac:GlobalBlanket>
    <!--Optional:-->
    <orac:SourceDocumentOwningOrg></orac:SourceDocumentOwningOrg>
    <!--Optional:-->
    <orac:SupplierQuotation></orac:SupplierQuotation>
    <!--Optional:-->
    <orac:ProjectsContractNum></orac:ProjectsContractNum>
    <!--Optional:-->
    <orac:ProjectsContractRevNum></orac:ProjectsContractRevNum>
    <!--Optional:-->
    <orac:NoteToSupplier></orac:NoteToSupplier>
    <!--Optional:-->
    <orac:UNNum></orac:UNNum>
    <!--Optional:-->
    <orac:UNNumDescription></orac:UNNumDescription>
    <!--Optional:-->
    <orac:HazardClass></orac:HazardClass>
    <!--Optional:-->
    <orac:CapitalExpense></orac:CapitalExpense>
    <!--Optional:-->
    <orac:TransactionNature></orac:TransactionNature>
    <!--Optional:-->
    <orac:ContractorFirstName></orac:ContractorFirstName>
    <!--Optional:-->
    <orac:ContractorLastName></orac:ContractorLastName>
    <!--Optional:-->
    <orac:ContractorStartDate></orac:ContractorStartDate>
    <!--Optional:-->
    <orac:ContractorEndDate></orac:ContractorEndDate>
    <!--Optional:-->
    <orac:MinimumLineReleaseAmount></orac:MinimumLineReleaseAmount>
    <!--Optional:-->
    <orac:LineQuantityAgreed></orac:LineQuantityAgreed>
    <!--Optional:-->
    <orac:LineAmountAgreed></orac:LineAmountAgreed>
    <!--Optional:-->
    <orac:LlineQuantityReleased></orac:LlineQuantityReleased>
    <!--Optional:-->
    <orac:LineAmountReleased></orac:LineAmountReleased>
    <!--Optional:-->
    <orac:LineExpirationDate></orac:LineExpirationDate>
    <!--Optional:-->
    <orac:CumulativePricing></orac:CumulativePricing>
    <!--Zero or more repetitions:-->
    <orac:PoShipments>
    <orac:ShipmentNum>1</orac:ShipmentNum>
    <orac:ShiptoOrganization>M1</orac:ShiptoOrganization>
    <orac:ShipToLocation>M1- Seattle Mfg</orac:ShipToLocation>
    <!--Optional:-->
    <orac:UnitOfMeasure></orac:UnitOfMeasure>
    <orac:ShipmentQuantity>1</orac:ShipmentQuantity>
    <!--Optional:-->
    <orac:PromisedDate></orac:PromisedDate>
    <!--Optional:-->
    <orac:NeedByDate></orac:NeedByDate>
    <!--Optional:-->
    <orac:OriginalPromisedDate></orac:OriginalPromisedDate>
    <!--Optional:-->
    <orac:CountryofOrigin></orac:CountryofOrigin>
    <!--Optional:-->
    <orac:ChargeAccount></orac:ChargeAccount>
    <!--Optional:-->
    <orac:ShipmentAmount></orac:ShipmentAmount>
    <!--Optional:-->
    <orac:EncumberedFlag></orac:EncumberedFlag>
    <!--Optional:-->
    <orac:OPMShipmentSecondaryUOM></orac:OPMShipmentSecondaryUOM>
    <!--Optional:-->
    <orac:OPMShipmentSecondaryQuantity></orac:OPMShipmentSecondaryQuantity>
    <!--Optional:-->
    <orac:PreferredShipmentGrade></orac:PreferredShipmentGrade>
    <!--Optional:-->
    <orac:ReceiptCloseTolerance></orac:ReceiptCloseTolerance>
    <!--Optional:-->
    <orac:InvoiceCloseTolerance></orac:InvoiceCloseTolerance>
    <orac:MatchApprovalLevel>3WAY</orac:MatchApprovalLevel>
    <orac:InvoiceMatchOption>P</orac:InvoiceMatchOption>
    <!--Optional:-->
    <orac:AccrueatReceipt></orac:AccrueatReceipt>
    <!--Optional:-->
    <orac:Firm></orac:Firm>
    <!--Optional:-->
    <orac:Item></orac:Item>
    <!--Optional:-->
    <orac:Category></orac:Category>
    <!--Optional:-->
    <orac:Description></orac:Description>
    <!--Optional:-->
    <orac:VendorProductNum></orac:VendorProductNum>
    <!--Optional:-->
    <orac:ShipmentStatus></orac:ShipmentStatus>
    <!--Optional:-->
    <orac:QuantityReceived></orac:QuantityReceived>
    <!--Optional:-->
    <orac:QuantityCancelled></orac:QuantityCancelled>
    <!--Optional:-->
    <orac:QuanittyBilled></orac:QuanittyBilled>
    <!--Optional:-->
    <orac:AmountReceived></orac:AmountReceived>
    <!--Optional:-->
    <orac:AmountCancelled></orac:AmountCancelled>
    <!--Optional:-->
    <orac:AmountBilled></orac:AmountBilled>
    <!--Optional:-->
    <orac:OPMSecondaryQuantityReceived></orac:OPMSecondaryQuantityReceived>
    <!--Optional:-->
    <orac:OPMSecondaryCancelled></orac:OPMSecondaryCancelled>
    <orac:BreakPrice></orac:BreakPrice>
    <!--Optional:-->
    <orac:PriceDiscount></orac:PriceDiscount>
    <!--Optional:-->
    <orac:PriceBreakStartDate></orac:PriceBreakStartDate>
    <!--Optional:-->
    <orac:PriceBreakEndDate></orac:PriceBreakEndDate>
    <!--Optional:-->
    <orac:EarlyReceiptDays></orac:EarlyReceiptDays>
    <!--Optional:-->
    <orac:LateReceiptDays></orac:LateReceiptDays>
    <!--Optional:-->
    <orac:ReceiptDaysAction></orac:ReceiptDaysAction>
    <!--Optional:-->
    <orac:LastAcceptDate></orac:LastAcceptDate>
    <!--Optional:-->
    <orac:ReceiptTolerance></orac:ReceiptTolerance>
    <!--Optional:-->
    <orac:ReceiptToleranceAction></orac:ReceiptToleranceAction>
    <!--Optional:-->
    <orac:AllowSubstituteReceipts></orac:AllowSubstituteReceipts>
    <!--Optional:-->
    <orac:ReceiptRouting></orac:ReceiptRouting>
    <!--Optional:-->
    <orac:EnforceShipTo></orac:EnforceShipTo>
    <!--Optional:-->
    <orac:NoteforReceiver></orac:NoteforReceiver>
    <!--Optional:-->
    <orac:VMIEnabled></orac:VMIEnabled>
    <!--Optional:-->
    <orac:ConsignedShipment></orac:ConsignedShipment>
    <!--Zero or more repetitions:-->
    <orac:PoDistributions>
    <orac:DistributionNum>1</orac:DistributionNum>
    <orac:DestinationType>Expense</orac:DestinationType>
    <!--Optional:-->
    <orac:Requester></orac:Requester>
    <!--Optional:-->
    <orac:DeliverToLocation></orac:DeliverToLocation>
    <!--Optional:-->
    <orac:DestinationSubinventory></orac:DestinationSubinventory>
    <orac:DistributionQuantity>?</orac:DistributionQuantity>
    <!--Optional:-->
    <orac:DistributionAmount></orac:DistributionAmount>
    <!--Optional:-->
    <orac:POChargeAccount></orac:POChargeAccount>
    <!--Optional:-->
    <orac:DestinationChargeAccount></orac:DestinationChargeAccount>
    <!--Optional:-->
    <orac:RecoveryRate></orac:RecoveryRate>
    <!--Optional:-->
    <orac:GLDate></orac:GLDate>
    <!--Optional:-->
    <orac:EncumberedFlag></orac:EncumberedFlag>
    <!--Optional:-->
    <orac:RequestingOrganization></orac:RequestingOrganization>
    <!--Optional:-->
    <orac:RequisitionNum></orac:RequisitionNum>
    <!--Optional:-->
    <orac:RequisitionLineNum></orac:RequisitionLineNum>
    <!--Optional:-->
    <orac:OnlineRequisition></orac:OnlineRequisition>
    <!--Optional:-->
    <orac:RateDate></orac:RateDate>
    <!--Optional:-->
    <orac:Rate></orac:Rate>
    <!--Optional:-->
    <orac:POAccrualAccount></orac:POAccrualAccount>
    <!--Optional:-->
    <orac:POBudgetAccount></orac:POBudgetAccount>
    <!--Optional:-->
    <orac:POVarianceAccount></orac:POVarianceAccount>
    <!--Optional:-->
    <orac:ChargeAccountDescription></orac:ChargeAccountDescription>
    <!--Optional:-->
    <orac:BudgetAccountDescription></orac:BudgetAccountDescription>
    <!--Optional:-->
    <orac:AccrualAccountDescription></orac:AccrualAccountDescription>
    <!--Optional:-->
    <orac:VarianceAccountDescription></orac:VarianceAccountDescription>
    <!--Optional:-->
    <orac:Project></orac:Project>
    <!--Optional:-->
    <orac:Task></orac:Task>
    <!--Optional:-->
    <orac:Award></orac:Award>
    <!--Optional:-->
    <orac:ExpenditureType></orac:ExpenditureType>
    <!--Optional:-->
    <orac:ExpenditureOrganization></orac:ExpenditureOrganization>
    <!--Optional:-->
    <orac:ExpenditureDate></orac:ExpenditureDate>
    <!--Optional:-->
    <orac:ProjectsContractLineNum></orac:ProjectsContractLineNum>
    <!--Optional:-->
    <orac:ProjectsDeliverableNum></orac:ProjectsDeliverableNum>
    <!--Optional:-->
    <orac:EndItemUnitNum></orac:EndItemUnitNum>
    <!--Optional:-->
    <orac:DestinationChargeAccountDescription></orac:DestinationChargeAccountDescription>
    <!--Optional:-->
    <orac:DestinationVarianceAccountDescription></orac:DestinationVarianceAccountDescription>
    <!--Optional:-->
    <orac:DestinationVarianceAccount></orac:DestinationVarianceAccount>
    </orac:PoDistributions>
    </orac:PoShipments>
    </orac:PoLines>
    <!--Zero or more repetitions:-->
    <orac:PoBpaDistributions>
    <!--Optional:-->
    <orac:Encumber></orac:Encumber>
    <!--Optional:-->
    <orac:BudgetAccount></orac:BudgetAccount>
    <!--Optional:-->
    <orac:GLDate></orac:GLDate>
    <!--Optional:-->
    <orac:AmountToEncumber></orac:AmountToEncumber>
    </orac:PoBpaDistributions>
    <orac:OperatingUnit>Vision Operations</orac:OperatingUnit>
    <orac:PONum>6194</orac:PONum>
    <!--Optional:-->
    <orac:RevisionNum></orac:RevisionNum>
    <orac:DocumentType>Standard Purchase Order</orac:DocumentType>
    <!--Optional:-->
    <orac:CreationDate></orac:CreationDate>
    <!--Optional:-->
    <orac:Supplier></orac:Supplier>
    <!--Optional:-->
    <orac:SupplierSite></orac:SupplierSite>
    <!--Optional:-->
    <orac:SupplierContact></orac:SupplierContact>
    <!--Optional:-->
    <orac:ShipToLocation></orac:ShipToLocation>
    <!--Optional:-->
    <orac:BillToLocation></orac:BillToLocation>
    <!--Optional:-->
    <orac:Currency></orac:Currency>
    <orac:Buyer>31994</orac:Buyer>
    <!--Optional:-->
    <orac:Status></orac:Status>
    <!--Optional:-->
    <orac:POTotal></orac:POTotal>
    <!--Optional:-->
    <orac:AmounttAgreed></orac:AmounttAgreed>
    <!--Optional:-->
    <orac:HeaderDescription></orac:HeaderDescription>
    <!--Optional:-->
    <orac:PCard></orac:PCard>
    <!--Optional:-->
    <orac:AmountReleased></orac:AmountReleased>
    <!--Optional:-->
    <orac:GlobalAgreementFlag></orac:GlobalAgreementFlag>
    <!--Optional:-->
    <orac:PaymentTerms></orac:PaymentTerms>
    <!--Optional:-->
    <orac:FreightTerms></orac:FreightTerms>
    <!--Optional:-->
    <orac:Carrier></orac:Carrier>
    <!--Optional:-->
    <orac:FreeOnBoard></orac:FreeOnBoard>
    <!--Optional:-->
    <orac:PayOn></orac:PayOn>
    <!--Optional:-->
    <orac:TransportationArranged></orac:TransportationArranged>
    <!--Optional:-->
    <orac:ConfirmingOrder></orac:ConfirmingOrder>
    <!--Optional:-->
    <orac:Firm></orac:Firm>
    <!--Optional:-->
    <orac:AcceptanceRequired></orac:AcceptanceRequired>
    <!--Optional:-->
    <orac:AcceptanceDueDate></orac:AcceptanceDueDate>
    <!--Optional:-->
    <orac:SupplyAgreement></orac:SupplyAgreement>
    <!--Optional:-->
    <orac:SupplierNote></orac:SupplierNote>
    <!--Optional:-->
    <orac:ReceiverNote></orac:ReceiverNote>
    <!--Optional:-->
    <orac:EffectiveStartDate></orac:EffectiveStartDate>
    <!--Optional:-->
    <orac:EffectiveEndDate></orac:EffectiveEndDate>
    <!--Optional:-->
    <orac:AmountLimit></orac:AmountLimit>
    <!--Optional:-->
    <orac:MinimumHeaderReleaseAmount></orac:MinimumHeaderReleaseAmount>
    <!--Optional:-->
    <orac:PriceUpdateTolerance></orac:PriceUpdateTolerance>
    <orac:PoHeaderId>91781</orac:PoHeaderId>
    </orac:PoHeaders>
    </pox:queryPurchaseOrder_Request>
    </soapenv:Body>
    </soapenv:Envelope>
    Now when i run this, I get the below error in the SOAP UI Tool:
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
    <env:Header/>
    <env:Body>
    <Error>[Ljava.lang.StackTraceElement;@118da51</Error>
    </env:Body>
    </env:Envelope>
    Can u please suggest any solution to resolve this error.
    Thanks & Regards,
    Aboothahir M

    Hello All,
    I checked in the log.xml file in the apps server and got the below error:
    <MESSAGE>
    <HEADER>
    <TSTZ_ORIGINATING>2012-01-18T16:50:24.110+05:30</TSTZ_ORIGINATING>
    <COMPONENT_ID>j2ee</COMPONENT_ID>
    <MSG_TYPE TYPE="ERROR"></MSG_TYPE>
    <MSG_LEVEL>1</MSG_LEVEL>
    <HOST_ID>amsgurbluapp009.in.ibm.com</HOST_ID>
    <HOST_NWADDR>9.126.177.20</HOST_NWADDR>
    <MODULE_ID>security</MODULE_ID>
    <THREAD_ID>12</THREAD_ID>
    <USER_ID>orar12</USER_ID>
    </HEADER>
    <CORRELATION_DATA>
    <EXEC_CONTEXT_ID><UNIQUE_ID>1326885623:9.126.177.20:24571:0:38</UNIQUE_ID><SEQ>5</SEQ></EXEC_CONTEXT_ID>
    </CORRELATION_DATA>
    <PAYLOAD>
    <MSG_TEXT>Error when intializing assertion issuer context </MSG_TEXT>
    <SUPPL_DETAIL><![CDATA[java.lang.IllegalArgumentException: Invalid assertion
         at oracle.security.jazn.callback.SAMLTokenCallbackInternal.setAssertion(SAMLTokenCallbackInternal.java:70)
         at oracle.security.jazn.callback.WSSCallbackHandler.handle(WSSCallbackHandler.java:107)
         at javax.security.auth.login.LoginContext$SecureCallbackHandler$1.run(LoginContext.java:955)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.login.LoginContext$SecureCallbackHandler.handle(LoginContext.java:951)
         at oracle.security.jazn.login.module.saml.SAMLLoginModule.initializeAssertionIssuerContext(SAMLLoginModule.java:278)
         at oracle.security.jazn.login.module.saml.SAMLLoginModule.initializeProperties(SAMLLoginModule.java:233)
         at oracle.security.jazn.login.module.saml.SAMLLoginModule.initialize(SAMLLoginModule.java:91)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at javax.security.auth.login.LoginContext.invoke(LoginContext.java:756)
         at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
         at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
         at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
         at oracle.security.wss.jaas.JAASAuthManager.invokeLogin(JAASAuthManager.java:109)
         at oracle.security.wss.jaas.JAASAuthManager.authenticate(JAASAuthManager.java:174)
         at oracle.security.wss.UsernameTokenProcessor.getSubject(UsernameTokenProcessor.java:143)
         at oracle.security.wss.WSSecurity.process(WSSecurity.java:1107)
         at oracle.security.wss.interceptors.AbstractSecurityInterceptor.handleInbound(AbstractSecurityInterceptor.java:131)
         at oracle.security.wss.interceptors.ServiceInterceptor.handleRequest(ServiceInterceptor.java:60)
         at oracle.j2ee.ws.common.mgmt.runtime.InterceptorChainImpl.handleRequest(InterceptorChainImpl.java:124)
         at oracle.j2ee.ws.common.mgmt.runtime.AbstractInterceptorPipeline.handleRequest(AbstractInterceptorPipeline.java:87)
         at oracle.j2ee.ws.server.provider.management.AbstractProviderInterceptorPipeline.executeRequestInterceptorChain(AbstractProviderInterceptorPipeline.java:452)
         at oracle.j2ee.ws.server.provider.ProviderProcessor.executeInterceptorRequestChain(ProviderProcessor.java:750)
         at oracle.j2ee.ws.server.WebServiceProcessor.processRequest(WebServiceProcessor.java:112)
         at oracle.j2ee.ws.server.WebServiceProcessor.doService(WebServiceProcessor.java:96)
         at oracle.j2ee.ws.server.WebServiceServlet.doPost(WebServiceServlet.java:194)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:234)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:29)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:879)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:619)
    ]]></SUPPL_DETAIL>
    </PAYLOAD>
    </MESSAGE>
    <MESSAGE>
    <HEADER>
    <TSTZ_ORIGINATING>2012-01-18T16:50:25.524+05:30</TSTZ_ORIGINATING>
    <COMPONENT_ID>webservices</COMPONENT_ID>
    <MSG_ID>OWS-04005</MSG_ID>
    <MSG_TYPE TYPE="ERROR"></MSG_TYPE>
    <MSG_LEVEL>1</MSG_LEVEL>
    <HOST_ID>amsgurbluapp009.in.ibm.com</HOST_ID>
    <HOST_NWADDR>9.126.177.20</HOST_NWADDR>
    <MODULE_ID>service</MODULE_ID>
    <THREAD_ID>14</THREAD_ID>
    <USER_ID>orar12</USER_ID>
    </HEADER>
    <CORRELATION_DATA>
    <EXEC_CONTEXT_ID><UNIQUE_ID>1326885621:9.126.177.20:24505:0:46</UNIQUE_ID><SEQ>6</SEQ></EXEC_CONTEXT_ID>
    </CORRELATION_DATA>
    <PAYLOAD>
    <MSG_TEXT>An error occurred for port: SOAProvider: oracle.j2ee.ws.common.soap.fault.SOAP11FaultException: The security token could not be authenticated or authorized.</MSG_TEXT>
    </PAYLOAD>
    </MESSAGE>
    <MESSAGE>
    <HEADER>
    <TSTZ_ORIGINATING>2012-01-18T16:50:25.527+05:30</TSTZ_ORIGINATING>
    <COMPONENT_ID>webservices</COMPONENT_ID>
    <MSG_ID>OWS-04005</MSG_ID>
    <MSG_TYPE TYPE="ERROR"></MSG_TYPE>
    <MSG_LEVEL>1</MSG_LEVEL>
    <HOST_ID>amsgurbluapp009.in.ibm.com</HOST_ID>
    <HOST_NWADDR>9.126.177.20</HOST_NWADDR>
    <MODULE_ID>service</MODULE_ID>
    <THREAD_ID>12</THREAD_ID>
    <USER_ID>orar12</USER_ID>
    </HEADER>
    <CORRELATION_DATA>
    <EXEC_CONTEXT_ID><UNIQUE_ID>1326885623:9.126.177.20:24571:0:38</UNIQUE_ID><SEQ>6</SEQ></EXEC_CONTEXT_ID>
    </CORRELATION_DATA>
    <PAYLOAD>
    <MSG_TEXT>An error occurred for port: SOAProvider: oracle.j2ee.ws.common.soap.fault.SOAP11FaultException: The security token could not be authenticated or authorized.</MSG_TEXT>
    </PAYLOAD>
    </MESSAGE>
    <MESSAGE>
    <HEADER>
    <TSTZ_ORIGINATING>2012-01-18T16:56:08.311+05:30</TSTZ_ORIGINATING>
    <COMPONENT_ID>webservices</COMPONENT_ID>
    <MSG_ID>OWS-04052</MSG_ID>
    <MSG_TYPE TYPE="NOTIFICATION"></MSG_TYPE>
    <MSG_LEVEL>1</MSG_LEVEL>
    <HOST_ID>amsgurbluapp009.in.ibm.com</HOST_ID>
    <HOST_NWADDR>9.126.177.20</HOST_NWADDR>
    <MODULE_ID>service</MODULE_ID>
    <THREAD_ID>13</THREAD_ID>
    <USER_ID>orar12</USER_ID>
    </HEADER>
    <CORRELATION_DATA>
    <EXEC_CONTEXT_ID><UNIQUE_ID>1326885960:9.126.177.20:23538:0:57</UNIQUE_ID><SEQ>242</SEQ></EXEC_CONTEXT_ID>
    </CORRELATION_DATA>
    <PAYLOAD>
    <MSG_TEXT>Unable to determine operation id from SOAP Message.</MSG_TEXT>
    </PAYLOAD>
    </MESSAGE>
    By
    Aboo

  • How to create webservice from function module

    Hello,
    I'm trying to create webservice from function module from. I choose Utilities/More Utilities/Create Webservice/..From function Module. What data should I enter in section "Enter Package/Request" ?
    When I check "Local object" checkbox I get a message "Test objects cannot be created in foreign namespaces"
    Is there any doc about this procedure (web service creation) with description of all sections ?
    thanks for any reply,
    Lukasz Ferenc

    Hi,
    Which SAP product of wich release of which SP are you using ?
    The procedure is documented in help.sap.com and in blogs and SDN forum messages.
    It means that the use of the SEARCH button should give plenty of answers...
    >When I check "Local object" checkbox I get a message "Test objects cannot be created in foreign >namespaces"
    As usual, begin your choosen name with an "Z".
    Regards,
    Olivier

  • How can I call a stateful webservice from a user-defined XPath function?

    I'm calling a stateful webservice from a BPEL process using a PartnerLink which implements Custom Header Handler classes to handle the session state, storing the cookie as a property of the PartnerLink.
    I'd also like to call this same stateful webservice, in the same session, from a user-defined XPath function enabling me to call this from an XSL Transformation.
    Is this in any way possible? Can I access the cookie and attach it to the webservice call made by the user-defined XPath function?

    Actually, as long as the servlet returns valid javascript, you can indeed "call it" from the client. It will initiate a request and return the result to the browser.
    This example uses Perl, but it could be easily modified to go to a servlet instead.
    Note that it is only supported in DOM browsers (IE6+/NN6+/etc)
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
    <html>
    <head>
    <title> Test server-side JS </title>
    </head>
    <body>
    <script type="text/javascript">
    function checkIt(variable, value)
    var newScript = "cgi-bin/validateJS.cgi?"+variable+"="+value;
    var body = document.getElementsByTagName('body').item(0)
    var scriptTag = document.getElementById('loadScript');
    if(scriptTag) body.removeChild(scriptTag);
    script = document.createElement('script');
    script.src = newScript;
         script.type = 'text/javascript';
         script.id = 'loadScript';
         body.appendChild(script)
    </script>
    <p>Test.</p>
    <form id="f1" action="">
    <input type="text" name="t1" id="t1" onChange="checkIt(this.name, this.value)">
    </body>
    </html>
    validateJS.cgi
    #!/opt/x11r6/bin/perl
    use CGI qw(:all);
    my @valArray = split(/=/,$ENV{QUERY_STRING});
    print "Content-type: text/javascript\n\n";
    # myPass is the password
    $myPass = "foobar";
    if ("$valArray[1]" eq "$myPass")
    print "alert(\"Success!!\")";
    else
    print "alert(\"Failure!!\")";

  • Error while calling PI webservice from EJB

    Hi Experts,
    We are getting exception while calling PI webservice from EJB which is deployed in CE 7.2. Earlier we used to call the same webservice but from different PI system at that it worked fine. Now we have changed the consumer proxies required in CE and tried to call from CE and it is throwing error. We have checked usernames and passwords that we are using to call the service and that is working fine. PI team tested from their side and li is also fine. We have also restarted the CE system but invain. Can somebody help on this.  The below is the trace that we got.
    Location: com.sap.engine.services.webservices.espbase.client.bindings.impl.SOAPTransportBinding
    Text: Connection IO Exception. Check nested exception for details. (Connection reset).
    [EXCEPTION]
    com.sap.engine.services.webservices.espbase.client.bindings.exceptions.TransportBindingException: Connection IO Exception. Check nested exception for details. (Connection reset).
    at com.sap.engine.services.webservices.espbase.client.bindings.impl.SOAPTransportBinding.outputSOAPMessage(SOAPTransportBinding.java:419)
    at com.sap.engine.services.webservices.espbase.client.bindings.impl.SOAPTransportBinding.call_SOAP(SOAPTransportBinding.java:1364)
    at com.sap.engine.services.webservices.espbase.client.bindings.impl.SOAPTransportBinding.callWOLogging(SOAPTransportBinding.java:990)
    at com.sap.engine.services.webservices.espbase.client.bindings.impl.SOAPTransportBinding.call(SOAPTransportBinding.java:944)
    at com.sap.engine.services.webservices.espbase.client.jaxws.core.WSInvocationHandler.processTransportBindingCall(WSInvocationHandler.java:168)
    at com.sap.engine.services.webservices.espbase.client.jaxws.core.WSInvocationHandler.invokeSEISyncMethod(WSInvocationHandler.java:121)
    at com.sap.engine.services.webservices.espbase.client.jaxws.core.WSInvocationHandler.invokeSEIMethod(WSInvocationHandler.java:84)
    at com.sap.engine.services.webservices.espbase.client.jaxws.core.WSInvocationHandler.invoke(WSInvocationHandler.java:65)
    at $Proxy780.mioaRDMDataDistribution(Unknown Source)
    at com.MDMEventListener.callToPIWS(MDMEventListener.java:100)
    at com.MDMEventListener.ListenerMethod(MDMEventListener.java:173)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.sap.engine.services.ejb3.runtime.impl.RequestInvocationContext.proceedFinal(RequestInvocationContext.java:47)
    at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:166)
    at com.sap.engine.services.ejb3.runtime.impl.Interceptors_WS.invoke(Interceptors_WS.java:31)
    at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
    at com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatesTransition.invoke(Interceptors_StatesTransition.java:19)
    at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
    at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Resource.invoke(Interceptors_Resource.java:71)
    at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
    at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Transaction.doWorkWithAttribute(Interceptors_Transaction.java:39)
    at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Transaction.invoke(Interceptors_Transaction.java:23)
    at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
    at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:189)
    at com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatelessInstanceGetter.invoke(Interceptors_StatelessInstanceGetter.java:16)
    at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
    at com.sap.engine.services.ejb3.runtime.impl.Interceptors_SecurityCheck.invoke(Interceptors_SecurityCheck.java:25)
    at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
    at com.sap.engine.services.ejb3.runtime.impl.Interceptors_ExceptionTracer.invoke(Interceptors_ExceptionTracer.java:17)
    at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
    at com.sap.engine.services.ejb3.runtime.impl.DefaultInvocationChainsManager.startChain(DefaultInvocationChainsManager.java:138)
    at com.sap.engine.services.ejb3.webservice.impl.DefaultImplementationContainer.invokeMethod(DefaultImplementationContainer.java:203)
    at com.sap.engine.services.webservices.espbase.server.runtime.RuntimeProcessingEnvironment.process0(RuntimeProcessingEnvironment.java:730)
    at com.sap.engine.services.webservices.espbase.server.runtime.RuntimeProcessingEnvironment.preProcess(RuntimeProcessingEnvironment.java:682)
    at com.sap.engine.services.webservices.espbase.server.runtime.RuntimeProcessingEnvironment.process(RuntimeProcessingEnvironment.java:324)
    at com.sap.engine.services.webservices.runtime.servlet.ServletDispatcherImpl.doPostWOLogging(ServletDispatcherImpl.java:199)
    at com.sap.engine.services.webservices.runtime.servlet.ServletDispatcherImpl.doPost(ServletDispatcherImpl.java:65)
    at com.sap.engine.services.webservices.servlet.SoapServlet.doPost(SoapServlet.java:61)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
    at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:152)
    at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:38)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:404)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:204)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:440)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:429)
    at com.sap.engine.services.servlets_jsp.filters.DSRWebContainerFilter.process(DSRWebContainerFilter.java:38)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.servlets_jsp.filters.ServletSelector.process(ServletSelector.java:82)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.servlets_jsp.filters.ApplicationSelector.process(ApplicationSelector.java:268)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.httpserver.filters.WebContainerInvoker.process(WebContainerInvoker.java:81)
    at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.httpserver.filters.ResponseLogWriter.process(ResponseLogWriter.java:60)
    at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.httpserver.filters.DefineHostFilter.process(DefineHostFilter.java:27)
    at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.httpserver.filters.MonitoringFilter.process(MonitoringFilter.java:29)
    at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.httpserver.filters.MemoryStatisticFilter.process(MemoryStatisticFilter.java:54)
    at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.httpserver.filters.DSRHttpFilter.process(DSRHttpFilter.java:42)
    at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.httpserver.server.Processor.chainedRequest(Processor.java:447)
    at com.sap.engine.services.httpserver.server.Processor$FCAProcessorThread.process(Processor.java:264)
    at com.sap.engine.services.httpserver.server.rcm.RequestProcessorThread.run(RequestProcessorThread.java:56)
    at com.sap.engine.core.thread.execution.Executable.run(Executable.java:122)
    at com.sap.engine.core.thread.execution.Executable.run(Executable.java:101)
    at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:328)
    Caused by: java.net.SocketException: Connection reset
    at java.net.SocketInputStream.read(SocketInputStream.java:168)
    at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
    at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
    at com.sap.engine.services.webservices.jaxm.soap.HTTPSocket.readLine(HTTPSocket.java:950)
    at com.sap.engine.services.webservices.jaxm.soap.HTTPSocket.getInputStream(HTTPSocket.java:414)
    at com.sap.engine.services.webservices.jaxm.soap.HTTPSocket.getResponseCode(HTTPSocket.java:319)
    at com.sap.engine.services.webservices.espbase.client.bindings.ClientHTTPTransport.getResponseCode(ClientHTTPTransport.java:209)
    at com.sap.engine.services.webservices.espbase.client.bindings.impl.SOAPTransportBinding.outputSOAPMessage(SOAPTransportBinding.java:385)
    ... 78 more
    Regards,
    Pradeep

    Hi Pradeep,
    this looks like if the server is not reachable. Have you checked if both server are able to communicate? Maybe firewall rules block the request.
    Regards,
    Tobias

  • Error while calling webservice from oracle8i

    Hi,
    i am trying to call a webservice from a stored procedure in Oracle 8i.
    I am getting the following error.
    ORA-31011: XML Parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00225: end-element tag "body" does not match start element tag "br"
    Kinldy help me in knowing the cause of this issue. Also i wanted to know if
    webservices will work in oracle 8i enterprise edition release 8.1.7.4.0
    or do we need to add any patches for it.
    Thanks,
    Sathia

    This forum is for XML DB issues. XML DB is a feature of 9iR2 and later.You need t look in the XML Technology forum

  • Error getting while calling a webService from XI

    Hi
    We are getting the follwoing error while calling a webservice from XI. We Could call the same webservice from XML spy. Have checked the SOAP adapter it was running fine and the communication channel parameters too.
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?><!-- Inbound Message --> <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1"><SAP:Category>XIAdapterFramework</SAP:Category><SAP:Code area="MESSAGE">GENERAL</SAP:Code><SAP:P1/><SAP:P2/><SAP:P3/><SAP:P4/><SAP:AdditionalText>com.sap.aii.af.ra.ms.api.MessagingException: SOAP: response message contains an error Application/UNKNOWN/APPLICATION_ERROR - application fault: com.sap.aii.af.ra.ms.api.RecoverableException: SOAP: response message contains an error Application/UNKNOWN/APPLICATION_ERROR - application fault</SAP:AdditionalText><SAP:ApplicationFaultMessage namespace=""/><SAP:Stack/><SAP:Retry>M</SAP:Retry></SAP:Error>
    Please try to help.
    Thanks
    Ramesh

    Hi
    Thanks a lot for your kind support.
    Hi Moorthy
    We have created one Asyn MI and wrapped the external definition into that, Haven't done any mapping for responce. Please find the trace below.
    Hi Bhavesh
    It was great helpful link but the payload days is not visible for this message it was containing details about sending. For some other message i could see payload.
    I Could see one differnce in the XML Spy and "XI payload before entering SOAP Adapter"
    The following line doesn’t appear in the XI payload.
    <m:StatusUpdate xmlns:m="http://localhost/StatusUpdate" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
    </m:StatusUpdate>
    Is this line would be embeded in the SOAP Adapter??? Please find the trace below. Please help me if you have any additional info.
    The message was successfully received by the messaging system. Profile: XI URL: Using connection AFW. Trying to put the message into the receive queue.
    Message successfully put into the queue.
    The message was successfully retrieved from the receive queue.
    The message status set to DLNG.
    Delivering to channel: CC_SOAP_Rcvr_D_Pick_ZALEAUD
    SOAP: request message entering the adapter
    SOAP: completed the processing
    SOAP: response message received 4cb3fab0-7fc5-11db-8c5a-000f203c93e0
    SOAP: response message contains an error Application/UNKNOWN/APPLICATION_ERROR - application fault
    SOAP: sending a delivery error ack ...
    SOAP: sent a delivery error ack
    Exception caught by adapter framework: SOAP: response message contains an error Application/UNKNOWN/APPLICATION_ERROR - application fault
    Delivery of the message to the application using connection AFW failed, due to: SOAP: response message contains an error Application/UNKNOWN/APPLICATION_ERROR - application fault.
    The asynchronous message was successfully scheduled to be delivered at Wed Nov 29 16:23:51 GMT 2006.
    The message status set to WAIT.
    Retrying to deliver message to the application. Retry: 1
    Kind Regards
    Ramesh
    Message was edited by:
            Ramesh Reddy Pothireddy

  • Calling a webservices from Oracle 10G ( 10.2.0.2)

    Hi:
    I am in the process of putting a database Java stored procedure that can call an external webservices.
    PL/SQL Wrapper -> Java Stored Procedure-> External Web services
    I loaded the following jars in the dataase.
    dbwsa.jar
    dbwsclient.jar
    1. I am having issues consuming this external webservice from SQL*PLUS. Do you know whether I need to load any other JARS ?
    2. How can I debug this issue ? I enabled TCP Monitor in JDeveloper and don't see anything when I call the PL/SQL wrapper in SQL*PLUS.
    3. I can use a Java client and tested the Web services OK.
    error message:
    SQL> l
    1 declare
    2 x varchar2(100);
    3 begin
    4
    5 x := tester.test_db1();
    6* end;
    SQL> /
    calling
    http://XX.XX.YY.121:8988/Application9-ViewController-context-root/MyWebService1S
    oapHttpPort
    java.rmi.RemoteException: Error parsing envelope; nested exception is:
    javax.xml.soap.SOAPException: Error parsing envelope
    at
    view.proxy.runtime.MyWebService1SoapHttp_Stub.sayhello2(MyWebService1SoapHttp_St
    ub.java:99)
    at
    prpd.MyWebService1SoapHttpPortClient.sayhello2(MyWebService1SoapHttpPortClient.j
    ava:41)
    at prpd.TEST_DB.TEST_DB1(TEST_DB.java:21)
    Caused by: javax.xml.soap.SOAPException: Error parsing envelope
    at
    oracle.j2ee.ws.saaj.soap.soap11.SOAPImplementation11.createEnvelope(SOAPImplemen
    tation11.java:103)
    at oracle.j2ee.ws.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:75)
    at oracle.j2ee.ws.saaj.soap.MessageImpl.getSOAPBody(MessageImpl.java:934)
    at
    oracle.j2ee.ws.client.StreamingSender._preHandlingHook(StreamingSender.java:692)
    at oracle.j2ee.ws.client.StubBase._preHandlingHook(StubBase.java:688)
    at oracle.j2ee.ws.client.StreamingSender._sendImpl(StreamingSender.java:207)
    at oracle.j2ee.ws.client.StreamingSender._send(StreamingSender.java:112)
    at
    view.proxy.runtime.MyWebService1SoapHttp_Stub.sayhello2(MyWebService1SoapHttp_St
    ub.java:76)
    ... 2 more
    Caused by: java.lang.IllegalArgumentException
    at oracle.xml.parser.v2.XMLParser.setAttribute(XMLParser.java:794)
    at
    oracle.j2ee.ws.saaj.soap.soap11.SOAPImplementation11.createEnvelope(SOAPImplemen
    tation11.java:54)
    ... 9 more
    PL/SQL procedure successfully completed.
    SQL> /
    thx
    Raj

    thanks Tugduall for the comments. here are the instructions I followed to create a java stored procedure that can call a webservices. Unfortunately, this seems like a very complex task. Do you have any ideas how I could debug or troubleshoot this issue ?
    Please note that I used JDeveloper to generate the client code.
    ========================================================
    1. download the dbws-callout-utility-10R2.zip from OTN at:
    http://www.oracle.com/technology/sample_code/tech/java/jsp/dbwebservices.html
    2. create an application/project with 1.4 JDK.
    3. create a web service by ‘Business Tier’->Web Service->Web Service Proxy->UDDI
    4. next… to ‘Search for’, type ‘quote’.
    5. from the list select one. For me ‘Quote of day’ was picked.
    6. click Next all the way to Finish.
    7. from the ‘Application Sources’ select ‘QuotoProxy’ then find its main method.
    8. at the section
    // Add your own code here, add the line like:
    System.out.println("quote "+myPort.getQuote());
    9. run it to see its return.
    10. cteate a class that has a method to call client method to be invoked (static)
    like the following:
    package dbws;
    import dbws.QotdPortClient;
    public class MainClientStub {
    public MainClientStub() {
    public static String getMyQoute(){
    QotdPortClient myClient = null;
    try {
    myClient = new QotdPortClient();
    return myClient.getQuote();
    } catch (Exception e) {
    e.printStackTrace();
    return null;
    note that the package name in your project.
    11. create a deployment profile as ‘JAR File’. Uncheck the box ‘Project Dependencies’
    12. deploy it to the local box. ‘Deploy to JAR File’.
    13. unzip the dbws-callout-utility-10R2.zip to get dbwsa.jar.
    14. execute the following from command line:
    loadjava –user test/[email protected] -resolve –verbose –synonym –grant public to dbwsa.jar myarchive1.jar
    loadjava -user test/test@orcl1020 -resolve -verbose -synonym -genmissing -grant public myarchive1.j
    ar dbwsa.jar
    loadjava -user sys/<sys_pass> -resolve -verbose -synonym -genmissing -grant public myarchive1.jar dbwsa.jar
    15. create a function like the following:
    CREATE OR REPLACE FUNCTION teststub RETURN VARCHAR2 AS
    LANGUAGE JAVA NAME ‘dbws.MainClientStub.getMyQoute() return java.lang.String’;
    16. Run at sqlplus: Select teststub from dual;
    ======================================================

  • XML Error while calling webservice from oracle function.

    I am getting an error while I am trying to call webservice from oracle function. Any ideas? Thanks.
    select get_new_string ('proxy:80', 'http://xxx/PatternVariations/SourceTest/WebMethods','Scott') from dual
    ERROR at line 1:
    ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00225: end-element tag "H4" does not match start-element tag "P"
    Error at line 9
    ORA-06512: at "SYS.XMLTYPE", line 0
    ORA-06512: at "DORSBP00.DEMO_SOAP", line 82
    ORA-06512: at "DORSBP00.GET_NEW_STRING", line 11

    The error message implies that the web service is returning something that is not well formed xml. Can you verify what is being returned by the web service call

  • How To : Call External Webservice from BPEL and pass SOAP Message to the WS

    Hello All-
    Greetings to all BPEL gurus. I am currently facing difficulties in calling an External Webservice from my BPEL Process and passing SOAP Message to it. The details are below:
    <strong>1. The BPEL process, using database polling feature of DB Adapter, will get the records from the database.</strong>
    <strong>2. Transform the message</strong>
    <strong>3. Call the External Webservice and pass the transformed message as the input to it. However the Webservice expects the BPEL process to send SOAP headers in the input message.</strong>
    I am struggling on how to put the transformed message within a SOAP envelope in the BPEL process.
    If anyone had similar requirements and have successfully been able to send SOAP messages from BPEL process to an external webservice, kindly let me know.
    Also if there is some kind of documentation or any link in the forum that I can refer, please let me know that as well.
    I am new to Webservice integration using BPEL and would really appreciate your help.
    Thanks In Advance
    Regards,
    Dibya

    Hi Dharmendra,
    I am trying to send a SOAP message from my BPEL process to a web service. I have a complete SOAP message in a complex variable defined in the wsdl for the partnerlink (web service). My problem is that when I invoke the partnerlink it fails even though the content shown in the BPEL console looks valid.
    I have set up obtunnel to see what I am actually sending out from BPEL. You mention that BPEL creates the SOAP envelope automatically.
    I think that my problem is a result of this automatic SOAP envelope that BPEL is creating. Do you know if there is a way to turn it off?
    This is what I see in the TCP monitor, please note the double SOAP env:Body:
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <env:Body> <RCMR_IN000002NR01 xmlns="urn:hl7-org:v3" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
    <env:Header>
    <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://testhost/CCS/Service_Endpoint</wsa:To>
    <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
    <wsa:Address>http://localhost/CCS/Service_Endpoint</wsa:Address>
    <wsa:Metadata>
    <device xmlns:hl7="urn:hl7-org:v3">
    </device>
    </wsa:Metadata>
    </env:Header>
    <env:Body>
    <RCMR_IN000002NR01>
    </RCMR_IN000002NR01>
    </env:Body>
    </RCMR_IN000002NR01>
    </env:Body>
    </env:Envelope>
    Any help is appreciated.
    Regards,
    Aagaard
    Edited by: Aagaard on Oct 30, 2008 8:59 PM
    Should have mentioned. I am using BPEL 10.1.3.4
    Edited by: Aagaard on Oct 31, 2008 8:43 AM
    I have opened a new thread for this question so as to not confuse the issue more than necessary.
    How many SOAP envelopes do you really need?

  • Invoking a webservice from Oracle ODI 11.1

    Hello there, new to this forum but I am having trouble invoking a webservice from a package within ODI. The error message I am recieving is as follows.
    com.sunopsis.wsinvocation.SnpsWSInvocationException: javax.xml.ws.WebServiceException: java.lang.ExceptionInInitializerError
         at oracle.odi.wsinvocation.client.impl.jaxws.OdiJaxwsClientImpl.requestReply(OdiJaxwsClientImpl.java:73)
         at oracle.odi.wsinvocation.client.impl.jaxws.OdiJaxwsOracleClientImpl.requestReply(OdiJaxwsOracleClientImpl.java:44)
         at com.sunopsis.graphical.wsclient.RequestWsPane$11$1.doInBackground(RequestWsPane.java:1235)
         at com.sunopsis.graphical.tools.utils.swingworker.SwingWorker$1.call(SwingWorker.java:240)
         at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
         at java.util.concurrent.FutureTask.run(FutureTask.java:139)
         at com.sunopsis.graphical.tools.utils.swingworker.SwingWorker.run(SwingWorker.java:279)
         at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:656)
         at java.lang.Thread.run(Thread.java:662)
    Caused by: javax.xml.ws.WebServiceException: java.lang.ExceptionInInitializerError
         at com.sun.xml.internal.ws.client.dispatch.DispatchImpl.doInvoke(DispatchImpl.java:188)
         at com.sun.xml.internal.ws.client.dispatch.DispatchImpl.invoke(DispatchImpl.java:195)
         at oracle.odi.wsinvocation.client.impl.jaxws.OdiJaxwsClientImpl.requestReply(OdiJaxwsClientImpl.java:66)
         at oracle.odi.wsinvocation.client.impl.jaxws.OdiJaxwsOracleClientImpl.requestReply(OdiJaxwsOracleClientImpl.java:44)
         at com.sunopsis.graphical.wsclient.RequestWsPane$11$1.doInBackground(RequestWsPane.java:1237)
         ... 6 more
    Caused by: java.lang.ExceptionInInitializerError
         at com.sun.xml.internal.ws.client.dispatch.DispatchImpl.doInvoke(DispatchImpl.java:173)
         at com.sun.xml.internal.ws.client.dispatch.DispatchImpl.invoke(DispatchImpl.java:195)
         at oracle.odi.wsinvocation.client.impl.jaxws.OdiJaxwsClientImpl.requestReply(OdiJaxwsClientImpl.java:66)
         at oracle.odi.wsinvocation.client.impl.jaxws.OdiJaxwsOracleClientImpl.requestReply(OdiJaxwsOracleClientImpl.java:44)
         at com.sunopsis.graphical.wsclient.RequestWsPane$11$1.doInBackground(RequestWsPane.java:1235)
         at com.sunopsis.graphical.tools.utils.swingworker.SwingWorker$1.call(SwingWorker.java:240)
         at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
         at java.util.concurrent.FutureTask.run(FutureTask.java:138)
         at com.sunopsis.graphical.tools.utils.swingworker.SwingWorker.run(SwingWorker.java:278)
         at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:655)
         ... 1 more
    Caused by: java.lang.ClassCastException: com.sun.xml.bind.v2.runtime.JAXBContextImpl
         at com.sun.xml.internal.ws.fault.SOAPFaultBuilder.<clinit>(SOAPFaultBuilder.java:533)
         at com.sun.xml.internal.ws.client.dispatch.DispatchImpl.doInvoke(DispatchImpl.java:173)
         at com.sun.xml.internal.ws.client.dispatch.DispatchImpl.invoke(DispatchImpl.java:195)
         at oracle.odi.wsinvocation.client.impl.jaxws.OdiJaxwsClientImpl.requestReply(OdiJaxwsClientImpl.java:66)
         at oracle.odi.wsinvocation.client.impl.jaxws.OdiJaxwsOracleClientImpl.requestReply(OdiJaxwsOracleClientImpl.java:44)
         at com.sunopsis.graphical.wsclient.RequestWsPane$11$1.doInBackground(RequestWsPane.java:1237)
         at com.sunopsis.graphical.tools.utils.swingworker.SwingWorker$1.call(SwingWorker.java:240)
         at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
         at java.util.concurrent.FutureTask.run(FutureTask.java:139)
         at com.sunopsis.graphical.tools.utils.swingworker.SwingWorker.run(SwingWorker.java:279)
         at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:656)
         ... 1 more
    Eventually, I would like to query a documentum DB but I can't get a simple webservice call to work correctly. Any help will greatly be appreciated.

    This forum is about Oracle Database. not about Oracle Data Integrator.
    Kindly post in the correct forum https://forums.oracle.com/forumID=374
    Sybrand Bakker
    Senior Oracle DBA

  • Getting error in consuming google webservices from JspDynPage

    Hi All,
    Getting following error while consuming google webservices from JspDynPage
    An exception occurred while processing a request for :
    iView : GoogleSer.google
    Component Name : GoogleSer.google
    Could not find portal application com.company.global.enterprise.portal.wsdl.webservices.service.
    Code :
    MyGoogle googleService =
    (MyGoogle) PortalRuntime.getRuntimeResources().getService("com.company.global.enterprise.portal.wsdl.webservices.service.MyGoogle");
    GoogleSearchResult result = googleService.doGoogleSearch("google", "SAP", 0, 10, false, "", false, "", "", "");
    ResultElement[] results = result.getResultElements();          
    if(results != null) {
    response.write("<br> Search Result Size " +results.length );
    for (int i = 0; i < results.length; i++) {
    response.write((i + 1) + ": " + results);
    Thanks
    Rudra

    Hi,
    I am still having the same problem, however the scenario in which I am getting varies.
    I am getting this exception:
    "com.sap.engine.services.webservices.jaxm.soap.accessor.NestedSOAPException: IOError while working with the message."
    Some users when trying to login into the portal are getting blank screen and for some the portal launcher page is loading fine and could go to the Home Page.
    When I view the logs I am seeing the Nested Soap Exception.
    Any Ideas??? Starting the J2EE engine also did'nt help.
    Thanks in advance.
    Madhavi

  • Consuming PI Webservice from Webdynpro Java Not working

    Hello SAP,
    Environment: CE 7.2.
    Resolution expected immediately, Helpful answer is highly appreciated.
    Is the namespace should not exceed 60char for PI Webservice, for executing the webservice from Webdynpro Java.
    I tried with all the options in executing the PI Service from Webdynpro Java, None of the options worked. I am facing the below error while I was calling the PI Webservice.
    I don't see any problem from Webdynpro Java, what ever the procedure I have followed is the standard procedure.
    Fortunately when I execute the service from Webservice Navigator, it is working as expected. The same webservice when I consume it from Webdynpro Java it is not working
    Options tried so far:
    1) Published the Services to Service Registry and there by consuming the PI Service from Service Registry - Not worked
    2) Tweaked the URL with few options - Not worked (Tweaking the URL, ex: portType, Binding)
    3) Changing the Business Systems in PI and there after calling the service - Not worked
    4) Initializing the code, instead of creating Service Controller and calling the PI Service - Not worked.
    5) Created a Provider System and tried to call the PI Webservice from Provider System - Not Worked
    For all the Options, I am facing the same error which is provided in the screenshot.
    Below procedure which I have followed for calling the PI Webservice:
    1) Created Adaptive Webservice Model
    2) Provided PI Webservice URL (It prompts for PI System UserId and Password)
    3) Selected Option - No Service Group Configuration
    4) Provided Logical Destination
    6) Completed creation of Model
    7) Added the model as a UsedModel
    8) Right Click on Comp Contr. and selected Apply Template and Created a ServiceController for the model (Entire mapping to comp contr, Initializing the nodes is taken care by Service Contr.)
    9) Created an Template Action button and there by calling execute method which is auto rendered from CompContr..
    10) Build the project.
    11) Activated the code and Run the Application.
    12) Getting the below error which is showed in the message.
    ERROR MESSAGE:
    Exception on execution of web service on destination 'GetPIHRPeopleData' for operation 'SI_CreateHRPeopleData_OS' in interface 'SI_CreatePeopleCompany_OS'

    Hi Sankar,
    If the webservice is working fine in the Wsnavigator then there is some problem with importing the webservice in webdynpro for Java. Please check the required parameter for creating the Adaptive Webservice Model. After adding in the used model and compoent controller binding, you need to write code for to execute the webservice model.
    Please check the code for initialization and execution for the webservice and then test it.
    Best Regards,
    Arun Jaiswal

  • Problem while Consuming Java Webservice from WCF client

    Hi,
    I am trying to Consume Java Webservice from WCF client.The webservice main functionality is digital data management.The client can Query Digital data and upload digital data by calling webservice methods.Problem is when i am trying to call webmethod from WCF client its giving "Unrecognised message versions".I have no idea about how the message objects are processed at serverside.but at server side they have used JAXP for XML document parsing.
    The response content type is Multipart/related and applicatio/XOP+XML.
    Can u plz help me how to handle this situation.I have minimum knowledge in Java WS architecture.Basically i am .Net programmer.
    Can U please guide me in a proper way to resolve the problem.

    Hi Abinash,
    I have the same problem. Have you solve that problem?
    I am using a java program to call a webservice too. And I have generated the client proxy definition for Stand alone proxy using NWDS. When I call the method of the webservice I am getting the correct result but along with the result I am getting one error and one warning message in the output.
    The java code to call the webservice is as follows.
    MIDadosPessoaisSyncService service = new MIDadosPessoaisSyncServiceImpl();
    MIDadosPessoaisSync port = service.getLogicalPort("MIDadosPessoaisSyncPort");
    port._setProperty("javax.xml.rpc.security.auth.username","xpto");
    port._setProperty("javax.xml.rpc.security.auth.password","xpto");
    String out = port.MIDadosPessoaisSync("xpto", "xpto");
    System.out.println(out);
    The result I am getting is :
    Warning ! Protocol Implementation [com.sap.engine.services.webservices.jaxrpc.wsdl2java.features.builtin.MessageIdProtocol] could not be loaded (NoClassDefFoundError) !
    Error Message is :com/sap/guid/GUIDGeneratorFactory
    <b>The result of the WS is correct!!!</b>
    The Java project does not have any warning. But the stand alone proxy project has following warnings associated with it.
    This method has a constructor name     MIDadosPessoaisSync.java     
    The import javax.xml.rpc.holders is never used     MIDadosPessoaisSyncBindingStub.java     
    The import javax.xml.rpc.encoding is never used     MIDadosPessoaisSyncBindingStub.java     
    The constructor BaseRuntimeException(ResourceAccessor, String, Throwable) is deprecated     MIDadosPessoaisSyncBindingStub.java
    It is very similar with your problem, could you help me?
    Thanks
    Gustavo Freitas

  • Error Consuming a webservice from ABAP

    Hi all,
      I am consuming an external webservice from abap. I created teh proxy using WSDl file. While testing teh service its giving an exception like this-
    "JAXB unmarshalling exception: Unable to create an instance of de.*******v2.MeldungType; nested exception is javax.xml.bind.UnmarshalExcept
    ion: Unable to create an instance of de.****.MeldungType# - with linked exception:#[java.lang.InstantiationException]"
    With a soapfaultcode: 1..
    can any one help out in arriving at teh reason for this..
    Regards
    Sandeep

    I've seen lots of unmarshalling errors whilst trying to consume web services via Web Dynpro Java...  Usually, it was due to an inconsistency between the WSDL file being used and the underlying web service definition.  It might be worth checking the WSDL you are using is correct and up to date, in case the underlying service interface has changed.
    Also worth checking if you have any simple boolean type parameters defined as part of the service interface - they have to have a value assigned when you call the service and cannot be null.
    HTH.

  • Calling a webservice from webdynpro ABAP.

    Hi,
    Anybody have doc/material with screenshots on calling a webservice from webdynpro ABAP (In WAS 7.0 version using service calls )  with clear steps ?
    Thanks in advance. Ponts will not be a constraint for right answers
    Praveen
    Edited by: Praveen kumar Kadi on Feb 23, 2009 11:19 AM

    Hi Praveen,
    1st Step : configure Logical Port
    http://help.sap.com/saphelp_nw70/helpdata/EN/16/285d32996b25428dc2eedf2b0eadd8/frameset.htm
    2nd Step : Generate Proxy Object
    http://help.sap.com/saphelp_nw70/helpdata/EN/16/285d32996b25428dc2eedf2b0eadd8/frameset.htm
    3rd Step : Instantiating the proxy object & calling the methods exposed by webservice
    data: sys_exception type ref to cx_ai_system_fault,
          sys_exception2 type ref to cx_ai_application_fault,
          client_proxy type ref to zco_myesa, "MY PROXY CLASS
          lv_ret_code type int4,
          lv_input type zsend_email_input,
          lv_response type zsend_email_response.
    data: lv_from type string,
          lv_from_address type string,
          lv_to type string,
          lv_to_address type string,
          lv_subject type string,
          lv_msg type string.
    lv_input-from = 'MYSAPTEST'.
    lv_input-from_address = '<someAddress>'.
    lv_input-to = 'Prashant'.
    lv_input-to_address = '<someAddress>'.
    lv_input-subject = ' TEST'.
    lv_input-msg_body = ' Hi this is wonderfull to see it work'.
    try.
    create object client_proxy
    exporting
    logical_port_name = 'BASIC'. " Basic is a TYPE G RFC Destination
    call method client_proxy->send_email
       exporting
         input  = lv_input
       importing
         output = lv_response    .
      catch cx_ai_system_fault  into sys_exception .
        data lv_err type string.
         lv_err = sys_exception->if_message~get_text( ).
         write: / lv_err.
      catch cx_ai_application_fault into sys_exception2  .
         lv_err = sys_exception->if_message~get_text( ).
         write: / lv_err.
    endtry.
    if lv_response is initial.
       write: /'Not Executed'.
    else.
       write: /'Did Execute'.
    endif.
    Greetings
    Prashant

Maybe you are looking for

  • Is there a way to view only desktop versions of web pages on the iPad?

    Samsung galaxy a smaller actual mobile has the option to do this.. I've seen this question before and some people were wrong in saying that its up the programming discretion of the host website. It doesn't work for every site on my galaxy but it does

  • System freeze in mail

    My new IPad Air freezes randomly when I am deleting mail. Very frustrating!  What's the problem?

  • Permissions problem in Time Machine

    I need to restore my iPhoto Library which I've somehow messed up today. I renamed the damaged library to Old_iPhoto Library then went into TM and selected the last backup from yesterday but the iPhoto Library will not restore. It starts to copy but t

  • Batch exporting give double suffix: filename.jpg.jpg

    I can export a single file correctly, but when I export two or more files by command-clicking in iPhoto, the exported files are titled with a duplicate suffix: file.jpg.jpg. The original file(s) is(are) titled file1.jpg, file2.jpg, new.jpg and so on.

  • ITunes fails to download.

    iTunes fails to load with windows XP.  Getting error message "This application has failed to start because the application configuration is incorrect. Reinstalling my correct."  Reinstalling does not correct.  It appears associated with temporary fil