Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Route the request from one Service to Another Service in OSB

679296Jul 6 2009 — edited Jul 6 2009
Hi,
I am new to OSB.I am doing one sample.i.e route the request from one Service to another Service with different operation.I am getting problem.

1st service HelloService - sayHello(Operation req as string)
2nd service TestService - sayTest(Operation req as string)
Route to HelloService to Testservice getting problem like

Invocation trace is

(receiving request)

Initial Message Context
added $body

<soapenv:Body xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<ws:sayHello xmlns:ws="http://ws.tm.com/">
<!--Optional:-->
<arg0>string</arg0>
</ws:sayHello>
</soapenv:Body>

added $header

<soap:Header xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
</soap:Header>

added $inbound

<con:endpoint name="ProxyService$TemporaryBooking$Proxyservice$HelloServicePS" xmlns:con="http://www.bea.com/wli/sb/context">
<con:service>
<con:operation>sayHello</con:operation>
</con:service>
<con:transport>
<con:uri>
/TemporaryBooking/Proxyservice/HelloServicePS
</con:uri>
<con:mode>request-response</con:mode>
<con:qualityOfService>best-effort</con:qualityOfService>
<con:request xsi:type="http:HttpRequestMetaData" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<tran:headers xsi:type="http:HttpRequestHeaders" xmlns:tran="http://www.bea.com/wli/sb/transports">
<http:Content-Type>text/xml; charset=utf-8</http:Content-Type>
<http:SOAPAction>""</http:SOAPAction>
</tran:headers>
<tran:encoding xmlns:tran="http://www.bea.com/wli/sb/transports">utf-8</tran:encoding>
</con:request>
<con:response xsi:type="http:HttpResponseMetaData" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<tran:headers xsi:type="http:HttpResponseHeaders" xmlns:tran="http://www.bea.com/wli/sb/transports">
<http:Content-Type>text/xml</http:Content-Type>
</tran:headers>
<tran:response-code xmlns:tran="http://www.bea.com/wli/sb/transports">0</tran:response-code>
</con:response>
</con:transport>
<con:security>
<con:transportClient>
<con:username><anonymous></con:username>
</con:transportClient>
</con:security>
</con:endpoint>

added $messageID

7846276094487824772--74dc8d77.1224e552ae8.-7fb8


RouteNode1

Routed Service
Route to: "TestServiceBS"

$outbound:

<con:endpoint name="BusinessService$TemporaryBooking$BusinessService$TestServiceBS" xmlns:con="http://www.bea.com/wli/sb/context">
<con:service>
<con:operation>sayTest</con:operation>
</con:service>
<con:transport>
<con:mode>request-response</con:mode>
<con:qualityOfService>best-effort</con:qualityOfService>
<con:request xsi:type="http:HttpRequestMetaData" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<tran:headers xsi:type="http:HttpRequestHeaders" xmlns:tran="http://www.bea.com/wli/sb/transports">
<http:Content-Type>text/xml</http:Content-Type>
<http:SOAPAction>""</http:SOAPAction>
</tran:headers>
</con:request>
</con:transport>
<con:security>
<con:doOutboundWss>false</con:doOutboundWss>
</con:security>
</con:endpoint>


$body (request):

<soapenv:Body xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<ws:sayHello xmlns:ws="http://ws.tm.com/">
<!--Optional:-->
<arg0>string</arg0>
</ws:sayHello>
</soapenv:Body>

$header (request):

<soap:Header xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
</soap:Header>

$attachments (request):

<con:attachments xmlns:con="http://www.bea.com/wli/sb/context"/>

Message Context Changes
added $outbound

<con:endpoint name="BusinessService$TemporaryBooking$BusinessService$TestServiceBS" xmlns:con="http://www.bea.com/wli/sb/context">
<con:service>
<con:operation>sayTest</con:operation>
</con:service>
<con:transport>
<con:uri>
http://localhost:7001/SampleWS/TestServiceService
</con:uri>
<con:mode>request-response</con:mode>
<con:qualityOfService>best-effort</con:qualityOfService>
<con:request xsi:type="http:HttpRequestMetaData" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<tran:headers xsi:type="http:HttpRequestHeaders" xmlns:tran="http://www.bea.com/wli/sb/transports">
<http:Content-Type>text/xml; charset=utf-8</http:Content-Type>
<http:SOAPAction>""</http:SOAPAction>
</tran:headers>
<tran:encoding xmlns:tran="http://www.bea.com/wli/sb/transports">utf-8</tran:encoding>
</con:request>
<con:response xsi:type="http:HttpResponseMetaData" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<tran:headers xsi:type="http:HttpResponseHeaders" xmlns:tran="http://www.bea.com/wli/sb/transports">
<tran:user-header name="X-Powered-By" value="Servlet/2.5 JSP/2.1"/>
<http:Content-Type>text/xml;charset="utf-8"</http:Content-Type>
<http:Date>Mon, 06 Jul 2009 07:45:15 GMT</http:Date>
<http:Transfer-Encoding>chunked</http:Transfer-Encoding>
</tran:headers>
<tran:response-code xmlns:tran="http://www.bea.com/wli/sb/transports">2</tran:response-code>
<tran:response-message xmlns:tran="http://www.bea.com/wli/sb/transports">Internal Server Error</tran:response-message>
<tran:encoding xmlns:tran="http://www.bea.com/wli/sb/transports">utf-8</tran:encoding>
<http:http-response-code>500</http:http-response-code>
</con:response>
</con:transport>
<con:security>
<con:doOutboundWss>false</con:doOutboundWss>
</con:security>
</con:endpoint>

changed $body

<S:Body xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Fault xmlns:ns4="http://www.w3.org/2003/05/soap-envelope">
<faultcode>S:Client</faultcode>
<faultstring>
Cannot find dispatch method for {http://ws.tm.com/}sayHello
</faultstring>
</S:Fault>
</S:Body>

changed $attachments

<con:attachments xmlns:con="http://www.bea.com/wli/sb/context"/>

changed $inbound

<con:endpoint name="ProxyService$TemporaryBooking$Proxyservice$HelloServicePS" xmlns:con="http://www.bea.com/wli/sb/context">
<con:service>
<con:operation>sayHello</con:operation>
</con:service>
<con:transport>
<con:uri>
/TemporaryBooking/Proxyservice/HelloServicePS
</con:uri>
<con:mode>request-response</con:mode>
<con:qualityOfService>best-effort</con:qualityOfService>
<con:request xsi:type="http:HttpRequestMetaData" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<tran:headers xsi:type="http:HttpRequestHeaders" xmlns:tran="http://www.bea.com/wli/sb/transports">
<http:Content-Type>text/xml; charset=utf-8</http:Content-Type>
<http:SOAPAction>""</http:SOAPAction>
</tran:headers>
<tran:encoding xmlns:tran="http://www.bea.com/wli/sb/transports">utf-8</tran:encoding>
</con:request>
<con:response xsi:type="http:HttpResponseMetaData" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<tran:headers xsi:type="http:HttpResponseHeaders" xmlns:tran="http://www.bea.com/wli/sb/transports">
<http:Content-Type>text/xml</http:Content-Type>
</tran:headers>
<tran:response-code xmlns:tran="http://www.bea.com/wli/sb/transports">0</tran:response-code>
</con:response>
</con:transport>
<con:security>
<con:transportClient>
<con:username><anonymous></con:username>
</con:transportClient>
</con:security>
</con:endpoint>

changed $header

<soapenv:Header xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"/>



System Error Handler

$fault: <con:fault xmlns:con="http://www.bea.com/wli/sb/context">
<con:errorCode>BEA-380001</con:errorCode>
<con:reason>Internal Server Error</con:reason>
<con:location>
<con:node>RouteNode1</con:node>
<con:path>response-pipeline</con:path>
</con:location>
</con:fault>

Can u plz help me How to resolve this.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 3 2009
Added on Jul 6 2009
5 comments
1,283 views