Issues invoking webservice hosted on Aqualogic Proxy service.

Hi,
This is my first "Hello world..." forum experience.
I'm facing problems while invoking webservice hosted on Aqualogic Proxy Service in my local machine;
I'm using Weblogic 10 (Oracle Service Bus 10gR3 ).
1) I've used weblogic's "weblogic.wsee.tools.anttasks.ClientGenTask" to generate java code from wsdl file
2) Created a stand-alone client
code fragment :
try{
ServiceActivationNoticationService notificationService = new ServiceActivationNoticationService_Impl("http://localhost:7001/ServiceActivationInterface/FroxyServices/ServiceNotification".concat("?WSDL"));
ServiceActivationNoticationPortType notificationServicePortType = notificationService.getServiceNotification();
Empty response = ((ServiceActivationNoticationPortType_Stub)notificationServicePortType).serviceNotification(notification);
catch(){
System.err.println(ex.toString());
logger.debug("Service Notification Exception...", ex);
throw new Exception("Service Notification Exception...", ex);
Comiling successfully but when I run I'm getting the follwing exceptions:
Caused by: java.lang.NullPointerException
     at com.bea.staxb.runtime.internal.ByNameRuntimeBindingType$ElementQNameProperty.access$000(ByNameRuntimeBindingType.java:314)
     at com.bea.staxb.runtime.internal.ByNameRuntimeBindingType.getMatchingElementProperty(ByNameRuntimeBindingType.java:253)
     at com.bea.staxb.runtime.internal.ByNameUnmarshaller.findMatchingElementProperty(ByNameUnmarshaller.java:71)
     at com.bea.staxb.runtime.internal.ByNameUnmarshaller.deserializeContents(ByNameUnmarshaller.java:43)
     at com.bea.staxb.runtime.internal.AttributeUnmarshaller.unmarshal(AttributeUnmarshaller.java:38)
     at com.bea.staxb.runtime.internal.UnmarshalResult.unmarshalBindingType(UnmarshalResult.java:174)
     at com.bea.staxb.runtime.internal.UnmarshalResult.unmarshalType(UnmarshalResult.java:212)
     at com.bea.staxb.runtime.internal.UnmarshalResult.unmarshalElement(UnmarshalResult.java:227)
     at com.bea.staxb.runtime.internal.UnmarshallerImpl.unmarshalElement(UnmarshallerImpl.java:166)
     at weblogic.wsee.bind.runtime.internal.LiteralDeserializerContext.unmarshalElement(LiteralDeserializerContext.java:87)
     at weblogic.wsee.bind.runtime.internal.BaseDeserializerContext.internalDeserializeElement(BaseDeserializerContext.java:180)
     at weblogic.wsee.bind.runtime.internal.BaseDeserializerContext.deserializeElement(BaseDeserializerContext.java:115)
     at weblogic.wsee.codec.soap11.SoapDecoder.decodePart(SoapDecoder.java:490)
     at weblogic.wsee.codec.soap11.SoapDecoder.decodeReturn(SoapDecoder.java:400)
     at weblogic.wsee.codec.soap11.SoapDecoder.decodeParts(SoapDecoder.java:170)
     at weblogic.wsee.codec.soap11.SoapDecoder.decode(SoapDecoder.java:121)
     at weblogic.wsee.codec.soap11.SoapCodec.decode(SoapCodec.java:175)
     at weblogic.wsee.ws.dispatch.client.CodecHandler.decodeOutput(CodecHandler.java:126)
     at weblogic.wsee.ws.dispatch.client.CodecHandler.decode(CodecHandler.java:103)
     at weblogic.wsee.ws.dispatch.client.CodecHandler.handleResponse(CodecHandler.java:80)
     at weblogic.wsee.handler.HandlerIterator.handleResponse(HandlerIterator.java:236)
     at weblogic.wsee.handler.HandlerIterator.handleResponse(HandlerIterator.java:220)
     at weblogic.wsee.ws.dispatch.client.ClientDispatcher.handleResponse(ClientDispatcher.java:159)
     at weblogic.wsee.ws.dispatch.client.ClientDispatcher.dispatch(ClientDispatcher.java:114)
     at weblogic.wsee.ws.WsStub.invoke(WsStub.java:89)
     at weblogic.wsee.jaxrpc.StubImpl._invoke(StubImpl.java:331)
     ... 3 more
But If I create a soap message manully and invoke the same webservice, it works fine.
Please reply soon....
Thanks in Advance.

Hi James,
Thanks for your reply, and directing me to appropriate threads.
The problem is with one of wsdl element.
My requirement is an empty element:
so I've created
<element name="empty">
<xsd:complexType>
<xsd:sequence/>
</xsd:complexType>
</element>
when I use this element for output type as below...
<wsdl:input message="service" type="xxx:service"/>
<wsdl:output message="emptyResponse" type="xxx:empty"/>
weblogic clientgen code is able invoke service successfully but the response is causing problem.
But when I changed empty element to
<element name="empty">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="abcd" type="xsd:string" minOccurs="0"/> I'll not use this at all.
</xsd:sequence>
</xsd:complexType>
</element>
Everything is working fine now in this case. ************************************************************************
But I'm not sure what's wrong with
<element name="empty">
<xsd:complexType>
<xsd:sequence/>
</xsd:complexType>
</element> because specifications says this is the way to define an empty element type.
What's wrong with this....
Thanks.... to Hello world! Response....

Similar Messages

  • OSB11gR1 - Invoking WebService with Authentication in Business Service

    Hi,
    I need to invoke a webservice from my OSB application. I have configured the webservice details in Business Service. I am calling the Business Service fom service callout where I pass the url via Routing Options. But the webservice which I invoke requires some authentication (username & password). Can you let me know how to pass this through service callout to business service
    Thanks,
    Bals

    The HTTP header field which contains the username & password for basic authentication is Authorisation . You may need to use a java callout for populating the value for this field as this has to be base 64 encoded.
    Example taken from wiki page for Basic authentication http://en.wikipedia.org/wiki/Basic_access_authentication
    For example, given the user name Aladdin and password open sesame, the string Aladdin:open sesame is >Base64 encoded, resulting in QWxhZGRpbjpvcGVuIHNlc2FtZQ==HTTP Header
    GET /private/index.html HTTP/1.0
    Host: localhost
    Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==

  • How to use a file transport proxy service as trigger for a webservice

    Hi,
    I've implemented a alsb file transport proxy service. This proxy is watching a common directory and detects new files. After detection, the proxy move them in an archive folder.
    After that I want call an external webservice with the filename as input parameter.
    How can I comfigure that with the alsb console.
    best regards
    Oliver
    with the to extract the filename after it was renamed by the proxy service.

    How do you invoke/ instantiate the file based proxy service. Does it just run on activation in sb console? Does it continue to detect files or does it stop after detecting one file?
    Also what is the format of the URL that points to the file folder.
    For Ex: I have a folder named "TestFiles" on the C:\drive of the server.
    Edited by premkumr at 10/31/2007 3:26 PM

  • Adding Jax-RPC Handlers to OSB Proxy Service

    Hi All,
    I am new to OSB and wanted to know if I can add a Client side (My proxy Service -> external business service) Handler chain to OSB Proxy Services. I know how to add handlers to general webservice. But is there any way to intercept the request by adding handlers to OSB proxy service before it goes to business service?
    Any help is highly appreciated.
    Thanks,
    Swetha

    Hi Eric,
    Thanks for your response. we are trying to access WSRR( manages end point urls for 7 different environments) and generate the end point dynamically at the design time. As we figured out WSRR is not compatible with OSB we are trying to implement these client side (OSB Proxy service) handlers which would get the dynamic endpoint depending on the environment used. I was able to create the handlers for this and set the jar in the classpath but the client service which should be using these handlers have to have these handlers defined in the deployment descriptor(web.xml) which am unable to see with a OSB project.
    Will there be a deployment descriptor(web.xml/webservices.xml) associated with Proxy services on OSB? Or Is there any other way to add custom JAX-RPC Handlers to a proxy service? Or is there any way to connect to WSRR directly?
    Thanks,
    Swetha

  • Issue in invoking a proxy service

    Hi,
    This is my problem.
    I have a proxy service which works fine ,giving the desired response when I test from OSB console.
    But if I try to call the same service from REST client/Java client I get the response as "500 Internal Server Error".
    What could be the issue?Please suggest a solution.
    Thanks.

    To call restful service from rest client try the below.
    Its working for me..
    http://www.soapui.org/REST-Testing/getting-started.html
    Let us know if you have any issue with the above.
    Thanks,
    Vijay

  • Error while invoking web services from Proxy services in OSB

    I have a Proxy Service of message type in Oracel Service Bus 10gR3 and it passes the incoming messages from a JMS Queue to Business Service of Web Services type. This Web Service is hosted in Glass Fish v3 and it's binding style is RPC. The JRE used in both the servers are 1.6.0_20. The JMS message is of Text type. The Web Services at the Glass Fish throws MessageCreationException for any content of the JMS message. However, it works fine if Business Service's test client is invoked from the OSB'S Admin Console. However, the same will not work if Proxy Service's test client is called.
    The detailed exception stack is given below :
    Thanks for the help.
    - Raj
    com.sun.xml.ws.protocol.soap.MessageCreationException: Couldn't create SOAP message due to exception: XML reader error: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
    at [row,col {unknown-source}]: [1,0]
         at com.sun.xml.ws.encoding.SOAPBindingCodec.decode(SOAPBindingCodec.java:359)
         at com.sun.xml.ws.transport.http.HttpAdapter.decodePacket(HttpAdapter.java:318)
         at com.sun.xml.ws.transport.http.HttpAdapter.access$500(HttpAdapter.java:92)
         at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:501)
         at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:285)
         at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:143)
         at org.glassfish.webservices.Ejb3MessageDispatcher.handlePost(Ejb3MessageDispatcher.java:116)
         at org.glassfish.webservices.Ejb3MessageDispatcher.invoke(Ejb3MessageDispatcher.java:87)
         at org.glassfish.webservices.EjbWebServiceServlet.dispatchToEjbEndpoint(EjbWebServiceServlet.java:196)
         at org.glassfish.webservices.EjbWebServiceServlet.service(EjbWebServiceServlet.java:127)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
         at com.sun.grizzly.http.servlet.FilterChainImpl.doFilter(FilterChainImpl.java:195)
         at com.sun.grizzly.http.servlet.FilterChainImpl.invokeFilterChain(FilterChainImpl.java:139)
         at com.sun.grizzly.http.servlet.ServletAdapter.doService(ServletAdapter.java:376)
         at com.sun.grizzly.http.servlet.ServletAdapter.service(ServletAdapter.java:329)
         at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:166)
         at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:100)
         at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:245)
         at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
         at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
         at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
         at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
         at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
         at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
         at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
         at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
         at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
         at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
         at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
         at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
         at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
         at java.lang.Thread.run(Thread.java:619)
    Caused by: com.sun.xml.ws.streaming.XMLStreamReaderException: XML reader error: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
    at [row,col {unknown-source}]: [1,0]
         at com.sun.xml.ws.streaming.XMLStreamReaderUtil.wrapException(XMLStreamReaderUtil.java:267)
         at com.sun.xml.ws.streaming.XMLStreamReaderUtil.next(XMLStreamReaderUtil.java:95)
         at com.sun.xml.ws.streaming.XMLStreamReaderUtil.nextContent(XMLStreamReaderUtil.java:110)
         at com.sun.xml.ws.streaming.XMLStreamReaderUtil.nextElementContent(XMLStreamReaderUtil.java:100)
         at com.sun.xml.ws.encoding.StreamSOAPCodec.decode(StreamSOAPCodec.java:175)
         at com.sun.xml.ws.encoding.StreamSOAPCodec.decode(StreamSOAPCodec.java:303)
         at com.sun.xml.ws.encoding.StreamSOAPCodec.decode(StreamSOAPCodec.java:129)
         at com.sun.xml.ws.encoding.SOAPBindingCodec.decode(SOAPBindingCodec.java:354)

    Let me explain what I am trying to achieve. Our application receives data from multiple sources - from mainframe using FTP, JMS Queue and BPM application using Web Services. The data from all these sources are sending to a Web Service running in GlassFish V3. To handle this I have created three Proxy Services and one Business Service on OSB. The Business Service is of type Web Service using the same WSDL from the target Web Service.
    The Proxy Services are configured as follows:
    Proxy 1 (type - Messaging service) listens to the JMS Queue and receives JMS Text Message -> Business Service(B1) (Web Service).
    Proxy 2 (type - Messaging service Polls files from the FTP Server -> Business Service(B1) (Web Service).
    Proxy 3 (type - Web service) is invoked by the BPM application and sends a String -> Business Service(B1) (Web Service).
    All the Proxies route to the same Business Service - B1 which calls the Web Service in GlassFish. The only Proxy that works fine is Proxy 3 which is created using the same WSDL of the Web Service. In the other two proxies it thows the same exception in GlassFish as I mentioned before.
    com.sun.xml.ws.protocol.soap.MessageCreationException: Couldn't create SOAP message due to exception: XML reader error: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog at [row,col {unknown-source}]: [1,0] at com.sun.xml.ws.encoding.SOAPBindingCodec.decode(SOAPBindingCodec.java:359)
    Is this configuration correct to achieve my requirements?
    Once again thanks for the help.
    - Raj

  • Rollback fault thrown while invoking a Proxy Service

    Hi,
    I am getting strange problem while invoking a proxy service.
    the operation on the service takes a list of customer numbers in the input.
    When the number of customer numbers is 10-20 it works fine but when I increase the customer numbers in the list to 200 it starts failing with the below error.
    *<<BaseCubeSessionBean::logError > Error while invoking bean "cube delivery": Rollback fault thrown.
    The current JTA transaction is aborting due to an user rollback fault being thrown from the BPEL code.
    This exception was caused by a bpelx:rollback fault being thrown. The user had directed the BPEL engine to roll back the current JTA transaction.
    There is no action recommended.
    ORABPEL-02180
    Rollback fault thrown.
    The current JTA transaction is aborting due to an user rollback fault being thrown from the BPEL code.
    This exception was caused by a bpelx:rollback fault being thrown. The user had directed the BPEL engine to roll back the current JTA transaction.
    There is no action recommended.*
    The cause for this error is as below
    javax.ejb.EJBException: Transaction Rolledback.: weblogic.transaction.internal.TimedOutException: Transaction timed out after 302 seconds
    I am clueless why the service is behaving different in both the cases.
    the endpoint of the webservice is the same in both the case and below is the sample request which I am sending.
    <v001:CustomerRequest>
    <v0011:CustomerNumberList>
    <v0011:CustomerNumber>12802582</v0011:CustomerNumber>
    <v0011:CustomerNumber>612391615</v0011:CustomerNumber>
    <v0011:CustomerNumber>189322879</v0011:CustomerNumber>
    <v0011:CustomerNumber>251524232</v0011:CustomerNumber>
    <v0011:CustomerNumber>208522415</v0011:CustomerNumber>
    <v0011:CustomerNumber>812603453</v0011:CustomerNumber>
    <v0011:CustomerNumber>12068921</v0011:CustomerNumber>
    <v0011:CustomerNumber>252053284</v0011:CustomerNumber>
    <v0011:CustomerNumber>191672097</v0011:CustomerNumber>
    <v0011:CustomerNumber>248131656</v0011:CustomerNumber>
    <v0011:CustomerNumber>8513869</v0011:CustomerNumber>
    </v0011:CustomerNumberList>
    <!--Optional:-->
    <v001:SynchToA>false</v001:SynchToA>
    <!--Optional:-->
    <v001:SynchToB>false</v001:SynchToB>
    <!--Optional:-->
    <v001:SynchToC>false</v001:SynchToC>
    <!--Optional:-->
    <v001:SynchToR>true</v001:SynchToR>
    </v001:CustomerRequest>
    Can anybody provide any pointers please... :|

    Hi-
    Can you try by increasing your JTA time out parameter, it seems to be a time out exception not sure if this could fix the issue. Anyways give a try and let us know the result.
    To increase the JTA parameter login to console --> Home --> Click on Domain under Domain Configuration -- > JTA and set the parameter Timeout Seconds to 1000 and then give a try.
    Let us know the result

  • OSB- Any Soap type Proxy service URL issue.

    Hi,
    There is an issue which i am facing and stuggling with it for sometime :(
    Requirement - Using OSB 11g i had created 12 different services based on WSDLs provided by the client and all of them are working fine.However the client wanted a OSB router service on top of these 12 services which wil search for a string in the input xml and then route it to the required Proxy service (amongst the 12 services developed).
    Problem- I was able to create the router Proxy service which was a Any Soap type of proxy service as i didnot have a WSDL for the router service.The router service is working fine when we test it from the OSB console.
    When We tried to test the flow from SOAPUI (we used the WSDL of one of the 12 webservices developed and modified the uri to the uri of the router service ie. http://hostname:port/router/routerProxy) and it does not work.
    The error returned is ERROR 404 nothing found by this name.
    As The router proxy is a Any Soap kind of service i do not have the option of providing the client with the WSDL.
    I would want to know how to i call this router service from an external source like SOAPUI so that the client is able to hit it.Also what would be the end point uri of this router service ?
    Kindly Help
    Thanks
    Pranav Shah

    Hi anuj,
    Here you have the configuration
    <?xml version="1.0" encoding="UTF-8"?>
    <xml-fragment xmlns:ser="http://www.bea.com/wli/sb/services" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tran="http://www.bea.com/wli/sb/transports" xmlns:env="http://www.bea.com/wli/config/env" xmlns:con="http://www.bea.com/wli/sb/pipeline/config" xmlns:con1="http://www.bea.com/wli/sb/stages/routing/config" xmlns:con2="http://www.bea.com/wli/sb/stages/config" xmlns:con3="http://www.bea.com/wli/sb/stages/transform/config">
    <ser:coreEntry isProxy="true" isEnabled="false" isAutoPublish="false" isTracingEnabled="false">
    <ser:description/>
    <ser:binding type="abstract SOAP" xsi:type="con:AnySoapBindingType" isSoap12="false" xmlns:con="http://www.bea.com/wli/sb/services/bindings/config"/>
    <ser:monitoring isEnabled="false">
    <ser:aggregationInterval>10</ser:aggregationInterval>
    <ser:pipelineMonitoringLevel>Pipeline</ser:pipelineMonitoringLevel>
    </ser:monitoring>
    <ser:reporting>true</ser:reporting>
    <ser:logging isEnabled="true">
    <ser:logLevel>debug</ser:logLevel>
    </ser:logging>
    <ser:sla-alerting isEnabled="true">
    <ser:alertLevel>normal</ser:alertLevel>
    </ser:sla-alerting>
    <ser:pipeline-alerting isEnabled="true">
    <ser:alertLevel>normal</ser:alertLevel>
    </ser:pipeline-alerting>
    <ser:ws-policy>
    <ser:binding-mode>service-policy-bindings</ser:binding-mode>
    <ser:policies/>
    </ser:ws-policy>
    <ser:throttling enabled="false">
    <ser:capacity>0</ser:capacity>
    <ser:maxQueueLength>0</ser:maxQueueLength>
    <ser:timeToLive>0</ser:timeToLive>
    </ser:throttling>
    <ser:messageTracing enabled="false">
    <ser:detailsLevel>Terse</ser:detailsLevel>
    <ser:maxSize>8192</ser:maxSize>
    </ser:messageTracing>
    <ser:pageAttachments isEnabled="false"/>
    <ser:transactions isRequired="false" sameTxForResponse="false"/>
    </ser:coreEntry>
    <ser:endpointConfig>
    <tran:provider-id>http</tran:provider-id>
    <tran:inbound>true</tran:inbound>
    <tran:URI>
    <env:value>/testRouter/test</env:value>
    </tran:URI>
    <tran:inbound-properties/>
    <tran:all-headers>true</tran:all-headers>
    <tran:provider-specific xsi:type="http:HttpEndPointConfiguration" xmlns:http="http://www.bea.com/wli/sb/transports/http">
    <http:inbound-properties/>
    </tran:provider-specific>
    </ser:endpointConfig>
    <ser:router>
    <con:flow>
    <con:route-node name="RouteNode1">
    <con:context/>
    <con:actions>
    <con3:ifThenElse>
    <con2:id>_ActionId-9110389481588294027-8fc6726.12c833ed7e1.-7c90</con2:id>
    <con3:case>
    <con3:condition>
    <con:xqueryText xmlns:con="http://www.bea.com/wli/sb/stages/config">fn:contains(fn-bea:serialize($body), 'ImsersoSiebelContactInsert')</con:xqueryText>
    </con3:condition>
    <con3:actions>
    <con1:route>
    <con2:id>_ActionId-9110389481588294027-8fc6726.12c833ed7e1.-7c8f</con2:id>
    <con1:service ref="ServiWebEntrada/AltaExpediente/ProxyService/AltaExpedienteProxyService" xsi:type="ref:ProxyRef" xmlns:ref="http://www.bea.com/wli/sb/reference"/>
    <con1:operation>ImsersoSiebelContactInsert</con1:operation>
    <con1:outboundTransform/>
    <con1:responseTransform/>
    </con1:route>
    </con3:actions>
    </con3:case>
    <con3:case>
    <con3:condition>
    <con:xqueryText xmlns:con="http://www.bea.com/wli/sb/stages/config">fn:contains(fn-bea:serialize($body), 'CreaContacto')</con:xqueryText>
    </con3:condition>
    <con3:actions>
    <con1:route>
    <con2:id>_ActionId-9110389481588294027-8fc6726.12c833ed7e1.-7c8b</con2:id>
    <con1:service ref="ServiWebEntrada/CuidContact/ProxyService/CuidContactProxyService" xsi:type="ref:ProxyRef" xmlns:ref="http://www.bea.com/wli/sb/reference"/>
    <con1:operation>CreaContacto</con1:operation>
    <con1:outboundTransform/>
    <con1:responseTransform/>
    </con1:route>
    </con3:actions>
    </con3:case>
    </con3:ifThenElse>
    </con:actions>
    </con:route-node>
    </con:flow>
    </ser:router>
    </xml-fragment>
    Regards
    Pranav

  • Exposing proxy service as a webservice using sb protocol

    Hi everybody.
    My team and I were working on an integration project between several applications. So we created all the OSB Projects needed to connect those applications and now I'm working on a web application that reads several logs that these integrations leave in the database in order to watch what happen when they are executed. Right now I need my web application to be able to reprocess or retry the messages that show some issue or are in an error state.
    For this purpose we developed a proxy with an sb protocol which let us communicate with all the other proxy services dynamically just passing to it the proxy name, his operation and the body message. And finally here's my question for you guys.
    How can I expose that last proxy (with the sb protocol) as a web service so I can consume it for the reprocess/retry action?
    Thanks.

    Dont think you need a Proxy service with SB protocol at all. From what I understand, your process will be like this:
    1. Web app reads DB logs to see which records need to be resubmitted
    2. Web App needs to invoke OSB to resubmit the message from log to correct proxy.
    What you can do is create a WSDL based HTTP proxy in OSB for resubmission, Web application should call this HTTP proxy and pass the body, target service name (full path), target service type (Proxy or Business) and target Operation name(optional as messaging or Any XML type services wont have an operation associated). You can add a dynamic routing node in the HTTP proxy which will invoke the target proxy based on the request information received from Web App.
    SB protocol only needs to be used in a Proxy service if you want to invoke a Proxy deployed on one OSB domain from another OSB domain or from Oracle SOA composites. Here the consumer will be the Web App, so it needs to be an HTTP proxy and not SB.
    P.S.: You should also consider sending transport/custom headers as well and not just the body for your resubmission to be more reusable.

  • Invoking multiple host web services from JCAPS web service (RemoteException

    I am trying to invoke 2 web services sequentially ( not JCAPS service , some host service exposed as web service ), from my jcd which is also exposed
    as a web service.Both the host service have incorporated basic http authentication scheme,and i am setting the security credentials in the enviornment.
    (ie SOAP/HTTP external systems - client).
    However when I deploy my web service and try to invoke the host services,the first host service being called is invoked successfully and i get the response back.But the second service throws a RemoteException and the SOAP response carries "Client not authorized" message in faultstring detail tag.
    I do have separate external SOAP/HTTP systems for both the services,also the external systems have been configured with
    the HTTP basic authentication credentials.
    Infact I tried creating 2 separate JCAPS service for calling the host services individually.I am able to get the expected output
    from the services.
    The issue only arises when the host services are invoked in a sequential manner from a single JCAPS service.
    Please do let me know if i can fill in some more gaps in the information i have provided.
    Could this possibly be an issue in JCAPS?

    I have couple of doubts in this context.
    a) Is this issue only restricted when web services not developed using JCAPS are invoked or it arises also when 2 JCAPS external services are invoked
    sequentially.(I tried a PoC where in i created 2 deployments for calling the host services and invoked the deployment using another JCAPS web service and it worked fine)
    b) Also if this issue only arises when the external web services being invoked have security credentials or just invoking any web services in sequence create
    this problem.
    PS : Any link to contact the sun support team?

  • How to invoke ALSB proxy service externaly

    Hello,
    I.m trying to understand the ALSB and stumble across an issue and hope one of you guys (from BEA) can help out?
    I've created the services from the Mortgage services tutorial successfully and now I'm trying to invoke the proxy services externally. By externally I mean as a partner link from within Oracle BPEL. So far this does not work. The error message states a missing protocol in the service URL. I checked this and it is true: the wsdl of the proxy service contains only a relative path (/loan/gateway1), so the protocol and server name and port are missing. Further, I tried to change the URI of the proxy service, but ALSB does only allow a relative URI.
    My question is: what am I missing so the proxy service can be invoked externally?
    I am on the right solution path to invoke a proxy service instead of a business service, right!?
    Thank in advance.
    Regards,
    Harm Verschuren

    I tracked down the problem. The proxy service and the business service it routes to use rpc encoded. The RPC encoded message comes to the proxy service from BPEL which transmits it without modification to the business service. The WLS web service that impements the business service is unable to decode the message persumably because it did not like the way BPEL encoded the message. Below is the message part that BPEL sent: All the xsitype attributes are part of RPC encoding.If you use the alsb test console to pass this message directly to the business service, you will see the decoding error thrown by wls.
    <loanRequest xmlns:pns0="java:normal.client"
    xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:ns0="http://example.org"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <pns0:Name xsi:type="xsd:string">Joe</pns0:Name>
    <pns0:SSN xsi:type="xsd:string">123456789</pns0:SSN>
    <pns0:Rate xsi:type="xsd:double">3</pns0:Rate>
    <pns0:Amount xsi:type="xsd:long">50000</pns0:Amount>
    <pns0:NumOfYear xsi:type="xsd:int">20</pns0:NumOfYear>
    <pns0:Notes xsi:type="xsd:string">test</pns0:Notes>
    </loanRequest>

  • How to invoke a OSB Proxy Service from a Servlet??

    Hi!!
    I'm a begginer in OSB, and right now I have a OSB configuration in production mode. So, using the console test it's very easy to test (doh) my configuration. But now, I have to make a stress test and after read a lot of documentation I did'nt found the way to do that. So I'm trying to do it by using a Servlet, a doPost method in especific, but after a lot of time I can't invoke the proxy service.
    What is the right way to use a proxy service in production mode??
    How can I call it from my servlet??
    How can I send an xml (or any other object, file, text...) as a Request??
    Help please, thank you...
    Edited by: user12116998 on 18-mar-2010 12:40

    If you have your proxy service published as http/soap, then I recommend you to use SoapUI to test it. It can help you with stress test too.

  • How to invoke a proxy service from a java client

    Hi all,
    how could I invoke a proxy service from a java client ?
    The proxy service type is 'any xml service' with http protocol.
    For a proxy with web service type I can export the related WSDL and generate the java client source.
    With 'any xml service' there is no associated wsdl and I'm wondering how to do that.
    Thanks
    ferp

    Hi Ferp,
    I used ClientGEN to generate client files from WSDL deployed in ALSB. You can also use Axis for client file generation.
    You need to know the WSDL URL. Generate Client files from WSDL URL.
    Sample ANT Script
    <project name="simple-web" default="mytask" basedir=".">
    <taskdef name="clientgen" classname="weblogic.wsee.tools.anttasks.ClientGenTask" classpath="C:\bea92\weblogic92\server\lib\weblogic.jar"/>
    <target name="mytask" description="Generate web service client">
              <clientgen wsdl="http://<hostname>:<port>/URL?WSDL"
         destDir="src"
         packageName="com.client.mytask"
         classpath="${java.class.path}" />
         </target>
    </project>
    Use the following JAVA Code,
    try {
         ActivationService service = new ActivationService_Impl("http://<hostname>:<port>/url?WSDL");
    client = service.getActivationServicePort();
    } catch (Exception ex) {
    // Handle Exception
    client.activateNumber();
    Let me know if you need any more information.
    Thanks,
    Suman.

  • OSB Proxy Service deployed in cluster environment FTP issue

    Hi,
    I have a OSB 11g proxy service based on a FTP JCA adapter. Here are the JCA settings:
    <connection-factory location="JNDI_FILE_TOKEN" UIincludeWildcard="FILENAME_TOKEN"/>
      <endpoint-activation portType="Get_ptt" operation="Get">
        <activation-spec className="oracle.tip.adapter.ftp.inbound.FTPActivationSpec">
          <property name="DeleteFile" value="true"/>
          <property name="MinimumAge" value="0"/>
          <property name="PhysicalDirectory" value="FOLDER_TOKEN"/>
          <property name="Recursive" value="false"/>
          <property name="PollingFrequency" value="30"/>
          <property name="FileType" value="ascii"/>
          <property name="IncludeFiles" value="FILENAME_TOKEN"/>  
        </activation-spec>
      </endpoint-activation>
    When I deploy this proxy in a cluster (having 2 osb nodes) and place the very first file on FTP server. Both nodes pick the file simultaneously. But after this when I place files on FTP server only one node is picking file. Could you kindly tell where is the issue ?
    Thanks and Regards

    Hi Mani,
    Do check the configuration of ProxyService-2 that it is enabled or not.
    Do check the input payload of it, that ProxyService-1 is passing the correct payload to ProxyService-2.
    Redeploy the ProxyService-2
    There is some issue in your proxyService-2.
    Regards,
    Richa

  • OSB: Issue while testing OSB proxy service using SOAPUI

    Hi,
    I am trying to test an OSB proxy service using SOAPUI.
    The below are the steps i have followed in SOAPUI:
    1. File->New SOAPUI project
    2. Opens the dialog to create REST service
    3. Given service endpoint as: http://<osb servername>:<port>
    4. Opens dialog to create a REST resource
    5. Resource Path/EndPoint is the OSB proxy service end point.
    6. HTTP method = POST
    The proxy service accepts 'text' input so i have given Media Type as 'text/plain'
    But, when i give the request message and run the request. The request is not running. I am not seeing the processing symbol at the bottom right of the SOAP UI request. Whereas i am able to run other services.
    Kindly help me resolve this issue.
    Thanks,
    Kalpana.

    your problem:
    Missing class: oracle.tip.adapter.jms.JmsManagedConnectionFactory
    Dependent class: oracle.tip.adapter.fw.wsdl.WSDLUtils
    Loader: oracle.bpel.common:10.1.3
    Code-Source: /oraclesoa/oraclesoa/product/10.1.3.1/OracleAS_1/bpel/lib/orabpel.jar
    Configuration: <code-source> in /oraclesoa/oraclesoa/product/10.1.3.1/OracleAS_1/j2ee/home/config/server.xml
    It happens when server is custom installed, try to reinstall it as full version and problem should disappear otherwise your need another full installation to retrieve and replace orabpel.jar file from (or maybe more)

Maybe you are looking for