How to invoke an OSB Proxy of type "Any XML  Service"

I built some proxy services as "Any XML Service" which route to some other business services.
I have tested these proxies using the debug console and they work fine. The question is, how do I invoke these services from outside de OSB? They recive an xml (duh) ...anyway, i have tried invoking them from a url passing the xml as the "body" parameter as follows:
http://host:port/myproject/anyXmlServices/aservice?body=<myxml>test</myxml>
not shure if this should work... how should I nvoke these services?
thanks in advance
Jhosue

Hi Jhosue,
before answer your queries can you please provide few info for the below mention queries.
1>While creating Proxy Service what protocol you have selected in "Transport Configuration" page?
2>If its HTTP, you need to specify some meaningful service name as "Endpoint URI".so that case the URL would like "http://host:port/serviceName"
3>if the protocol is not HTTP/HTTPS, then you cant invoke the proxy via URL from outside.
Note:
If your Proxy is HTTP based then to access the Proxy from outside,you need a Client Program(may be any GUI or standalone code).
There you need to specify what method you would like to follow GET/POST or others...i mean as per your service configuration.
If its GET..then u cant pass xml with the URL,instead of that you need to construct a URL string.
If its POST you can post bulk xml,that too using Client program.
Thanks
Deba

Similar Messages

  • Calling a OSB service(Service Type: Any XML Service) from BPEL

    Recently i had question in an Interview:
    How can a OSB service (of Service Type: Any XML Service) can be called from a BPEL service ?
    This OSB service is not exposed as a WSDL.
    Protocol: http
    Endpoint URI: /TestOSBProject1/ps/SyncReadPS
    host: localhost
    port: 7001
    URL: http://localhost:7001/TestOSBProject1/ps/SyncReadPS
    When i hit this URL i am getting the message --> "This XML file does not appear to have any style information associated with it. The document tree is shown below."
    WSDLURL: http://localhost:7001/TestOSBProject1/ps/SyncReadPS?WSDL
    When i hit this URL i am getting the message --> "Error 500 - Internal Service Error -- This service is not associated to a WSDL"
    Is there any way yo invoke this service from BPEL?

    Thanks for your instance response.
    I had used HTTP Binding adapter in BPEL (with GET).
    Getting below error:
    Unable to invoke endpoint URI "http://localhost:7001/TestOSBProject1/ps/SyncReadPS" successfully due to: javax.xml.ws.WebServiceException: java.lang.ClassCastException: oracle.j2ee.ws.mdds.ArrayPrototypeImpl cannot be cast to oracle.webservices.mdds.AtomicPrototype
    Copied the reference (Http binding) from Composite.xml
      <reference name="InvokeOSB" ui:wsdlLocation="InvokeOSB.wsdl">
        <interface.wsdl interface="http://xmlns.oracle.com/pcbpel/adapter/http/AdapterSOAProjectApplication/AdapterSOAProject/InvokeOSB#wsdl.interface(Request_Response_ptt)"/>
        <binding.ws port="http://xmlns.oracle.com/pcbpel/adapter/http/AdapterSOAProjectApplication/AdapterSOAProject/InvokeOSB#wsdl.endpoint(InvokeOSB/Request_Response_pt)"
                    location="InvokeOSB.wsdl" supports="http">
          <property name="http.verb" type="xs:string" many="false">GET</property>
          <property name="endpointURI" type="xs:string" many="false">http://localhost:7001/TestOSBProject1/ps/SyncReadPS</property>
          <property name="http.payload" type="xs:string" many="false">url-encoded</property>
        </binding.ws>
      </reference>
    Please help me to resolve this.

  • 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 an OSB service from a BPEL process

    I need help, to figure out how to invoke an OSB proxy service from a BPEL process.
    I found a blog which exactly does that; but I am unable to get it to work. I get the following error on my BPEL console. We are on OSB10gR3 and SOA 10134.
    "com.bea.wli.sb.transports.TransportException: Unknown error while processing message for service ProxyService DWIntegrations/ProxyService/PeopleServiceBus"
    Any help will be greatly appreciated.
    Regards,
    BP

    It really comes down to the proxy service on the OSB. Is it invoked by a WSDL? If so you should be able to take the endpoint defined in the proxy service messaging configuration and use that URL. You also need to use the sb transport type.
    Can you also post the blog you used, then we can put it into context.
    also have a look at this link.
    http://download.oracle.com/docs/cd/E13159_01/osb/docs10gr3/bpelpmtransport/transport.html#wp1116011
    cheers
    James

  • How to use a deployable proxy to consume a web service?

    HI Gurus,
    I am following this article below which helpfully explains how to create a proxy. So far so good. I have been able to create a proxy. However, the article only describes how to build a proxy.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70c7d0f7-153d-2a10-5d96-d334b67cd771
    In the concluding part of the document the author says "In my next article I will tell you how to use this deployable proxy to consume the web service in web application."
    I have looked around the SDN but have not been able to get the next part of this document.
    I have a JSPDynpage application which is required to consume a webservice. I want to use this proxt to consume the webservice.
    Any help or any other document that explains how to use a deployable proxy to consume a web service will be helpful.
    Thanks,
    SB

    Hi,
    Here is an example how to consume the deployable proxy in web application:
    http://help.sap.com/saphelp_nw70/helpdata/EN/ca/c8efe3e8a64163b01924ad4ccd706d/frameset.htm
    http://help.sap.com/saphelp_nw70/helpdata/EN/5c/971740198d8f5ce10000000a155106/frameset.htm
    Regards,
    Praveen Gudapati

  • How to make an OSB proxy to the server responding with application/json?

    Hi,
    My question is related to unfortunately unanswered question: Re: OSB and Oracle Maps
    Big picture: There is a Jetty server on local network with SpringMVC controllers which respond with JSON. The only way to communicate from frontend application to that server is through the OSB. So OSB should work as transparent proxy, passing headers and respond with original JSON message.
    I tried to build such proxy, following some blogs entries. Proxy worked for the REST services based on XML, but when I go to the JSON business service I get stuck.
    I think that business service to communicate with JSON server should be a Messaging Service, with Response Type: Text and Request Type: None.
    All headers should be passed (Outbound request) so the JSON server receives them in same state as frontend send.
    Business service should be invoked from 'Service Callout' because I don't need any asynchronous calls, or routing - just call the business service endpoint, which will call JSON server and pass the response.
    There are some problems in which I stepped into when tried this approach:
    1. When using Request Type: None the Service Callout give me an error of type:
    A callout cannot invoke a one-way operation
    When switching Request Type to Text I get it working, but some services on JSON server which operates only on GET method stop work (because switching to Text automatically require to use POST method, which is obvious but not necessary in my case).
    2. Even with above modification I cannot get the response from business service - I guess it's because the JSON response isn't wrapped into any XML elements. So in Service Callout any logger prints the message on Request side, but anything is written by Response logger inside the Service Callout. The browser which launch the Proxy Service also answers with:
    HTTP 500 (Internal Server Error)
    and I don't see any errors in logs, last message is from Request logger inside Service Callout.
    3. Business Service itself seems to work - here is an output from 'Run on Server':
    Business Service Testing - SampleJSON
    Request Document
    Response Document      
    {"models":[],"success":1}
    Response Metadata      
    <con:metadata xmlns:con="http://www.bea.com/wli/sb/test/config">
    <tran:headers xsi:type="http:HttpResponseHeaders" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:tran="http://www.bea.com/wli/sb/transports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <http:Content-Length>696</http:Content-Length>
    <http:Content-Type>application/json;charset=ISO-8859-1</http:Content-Type>
    <http:Server>Jetty(7.4.2.v20110526)</http:Server>
    </tran:headers>
    <tran:response-code xmlns:tran="http://www.bea.com/wli/sb/transports">0</tran:response-code>
    <tran:response-message xmlns:tran="http://www.bea.com/wli/sb/transports">OK</tran:response-message>
    <tran:encoding xmlns:tran="http://www.bea.com/wli/sb/transports">ISO-8859-1</tran:encoding>
    <http:http-response-code xmlns:http="http://www.bea.com/wli/sb/transports/http">200</http:http-response-code>
    </con:metadata>
    But when calling it from a service proxy I don't get any logger message on the JSON server, which appears normally when I runs business service tests. So it seems that the request doesn't even reach it.
    If anyone has a time to look at this problem I can share the configuration jar ready to import: http://dl.dropbox.com/u/21341604/sample-osb-json/sample-json.jar, to make it working you need change Endpoint URI in SampleJSON.biz.
    Thanks in advance for any kind of help or tips,
    Adrian

    If you are the admin, then use the following command in Terminal:
    sudo mkdir /.nameOfFolder
    Replace nameOfFolder with the name you want.  The sudo will prompt you for your admin password. 

  • How can i restrict the selecting file type to XML and TXT in file upload..

    Hi,
    I am using Struts Upload Bean. I am also using html:file tag in the JSP. Now when i click on the browse button, A file dialogue window appears. The problem id the i want to show only text and xml files in the dialog box. Now the files of type combo box in the dialogue box is showing *.*, *.html, *.pictures (jpg/gif) options. In place of this i need to show only txt and xml files. How can i restrict the file type to XML and TXT
    Regards,
    Sudheesh...

    Hi,
    the demo doesn't keep track of this. If you want then this feature isn't implemented. You will also see that the document is uploaded in a directory without changing the file name (e.g. adding the SR number). This however can be done and would be the way to do it
    Frank

  • Adobe Creative Suite 5.5 Design Standard for PC, Installed however does not lauch as folder is empty, why? How do I fix it?  Is there any customer service with Adobe or are we just Adobe orphans with an expensive product that we have to figure out on our

    Adobe Creative Suite 5.5 Design Standard for PC.  Installed but program does not launch as folder is empty.  An ideas?

    Alis63462271 did you receive any specific errors when you installed Creative Suite 5.5 Design Standard?  You can find details on how to locate and interpret the installation log files at Troubleshoot with install logs | CS5, CS5.5, CS6, CC.

  • 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 replying null.

    Hi,
    I am trying to invoke a OSB proxy service from a third party tool(SOAPUI). I am getting null as response. But I can see the response in OSB test page.Please help.
    Request Document
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Header xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    </soap:Header>
    <soapenv:Body>
    <sch:issueMaterialService xmlns:sch="http://www.morrisonsplc.co.uk/meatpoc/schema">
    <sch:UserName>string</sch:UserName>
    <sch:ResponsibilityName>string</sch:ResponsibilityName>
    <sch:BatchNumber>string</sch:BatchNumber>
    <sch:ItemNumber>string</sch:ItemNumber>
    <sch:Quantity>1.051732</sch:Quantity>
    <sch:UOMCode>string</sch:UOMCode>
    <sch:LotNumber>string</sch:LotNumber>
    </sch:issueMaterialService>
    </soapenv:Body>
    </soapenv:Envelope>
    Response Document
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Header/>
    <soapenv:Body>
    <sch:issueMaterialServiceResponse xmlns:sch="http://www.morrisonsplc.co.uk/meatpoc/schema">
    <sch:TransactionId/>
    <sch:SecondaryWIPIssueQty/>
    <sch:SecondaryWIPIssueUOM/>
    <sch:Messagecount>1.0</sch:Messagecount>
    <sch:MessageList>Error while setting the context</sch:MessageList>
    <sch:LotNumber>string</sch:LotNumber>
    <sch:Status>E</sch:Status>
    </sch:issueMaterialServiceResponse>
    </soapenv:Body>
    </soapenv:Envelope>

    It's strange!!! If you are getting response on test console then definitely SOAPUI will also get the response. Are you sure that it is OSB which is not sending response and it is not a problem with SOAPUI?
    Let us know your proxy configuration detail.
    Regards,
    Anuj

  • OSB Proxy calling another proxy - performance question

    My client wants to standardize their logging into a common proxy logging service (LoggingService).
    The idea is that all their services can call this service to perform standard logging.
    To implement this, we created a simple proxy based on any XML. It doesn't have a real business service behind it. Instead, it's simply a proxy configured with a Log action in the request pipeline to log $body.
    Their other services call this from their request and response pipelines using the "Service Callout" Action.
    Does anyone know what the performance impact of doing this would be? When I call the LoggingService proxy via the service callout, is another network connection created or is OSB optimized to do a local request?

    wasn't familiar with the publish action vs the service callout. I just looked it up in the developers doc. Looks like it would work too. I'm just not clear what the difference is between the publish action and the service callout and when you would use on vs the other.
    compare Routing action versus Service Callout action versus Publish action?
    How do I know publish is more efficient than service callout? Enable monitoring (under Operational Settings) at action level in your proxy service having both publish and service callout. You may refer section "26.6 Viewing Service Monitoring Information"-
    http://download.oracle.com/docs/cd/E17904_01/doc.1111/e15867/monitoring_console.htm#CACDCDAH
    Regards,
    Anuj

  • OSB Proxy design

    Hi All,
    I am developing a OSB proxy to read from JMS queue and write the message to another JMS Queue. while writing to JMS Queue if the JMS server is down, the proxy should retry for 3 times and then it should go to sleep mode for 20 minutes. After 20 minutes the proxy should wakeup , read from the queue and write to the queue.
    Can anyone tell me how to implement this OSB Proxy?
    Thanks,

    use the retry in business service configuration to retry the message 3 times.(http://docs.oracle.com/cd/E23943_01/admin.1111/e15867/endpointurimgmt.htm).
    In the queue from weblogic console under delivery failure settings set the parameter for Redelivery Delay Override to 20 mins. (http://docs.oracle.com/cd/E28280_01/apirefs.1111/e13952/pagehelp/JMSjmsdestinationsjmsqueueredeliverytitle.html)
    Make sure the connection factory is xa enabled and the proxy service participates in the xa transaction.

  • How to create a proxy to retrieve the xml file from web services

    Hi Every one,
    We have a requirment where we receive a xml file from Kenexa, a third party HR tool using a middleware tool. from SAP side We have to create a proxy to retrieve the xml  file from web services by initiating call through middleware tool i used earlier.
    these are the steps i intend to follow to accomlish the requirement.  
    1) middleware tool has to initiate the call to kenexa web services to  receive the xml file when it is available.
    2) On SAP we need to create a ABAP Proxy service provider to middleware where this file can be received.
    Can any one guide me how i can create a proxy to retrieve the xml  file from web services by initiating call through other middlewre (its not PI). 
    Any help would be really great, i am not a ABAP developer, so please help me with this. Thanks.

    Thank for reply.
    The computers are in different locations, but yes it's possible, the users in this enviroment are all local administrator of the machines, and we can distribute the script centrally from the DC automatically
    Acrobat use Java, right? I'm not so expert in java, but something about it could not be so difficult to manage.
    Do you know some place where i can get some info about JS and acrobat?

  • Retrieving xpath in any xml type service

    Hi,
    We have any xml service type proxy which receives 2 different types of XML messages.In one of the XML messages,we need to branch out based on value of certain element.
    But xpath doesn't seem to work.Xpath retrieved using messaging type service is:
    *$body/ref:ONIXMessage/ref:Product/ref:RecordSourceType/text()*
    This xpath works with messaging type service.
    But when the same was used in any xml type service ,ALSB unable to recognize the namespace and hence the xpath was modified to:
    *$body/ONIXMessage/Product/RecordSourceType/text()*
    But this does not return anything.
    Any idea as to how to get the data from xpath?
    Thanks.
    Arti

    Hi,
    You can add the namespace to use that in inline x-queries/x-path expressions. Please refer -
    http://download.oracle.com/docs/cd/E13159_01/osb/docs10gr3/consolehelp/proxyeditors.html#wp1277819
    Regards,
    Anuj
    Edited by: Anuj Dwivedi, Infosys on Aug 16, 2009 4:33 PM

  • OSB How access data "userException" from proxy

    Hi all,
    Although I have read on this forum some similar post, the proposed solution does not work for me.
    We have: Proxy created from the Business ---> from WSDL Business ---> Web-Service
    I have a test SOAP message passes a parameter wrong, If I make a test:
    1)     SoapUi -> Web-Service:
    Occurs the error:
    <faultcode> soapenv: Server.userException </ faultcode>
    <faultstring> java.rmi.RemoteException: Application XNFI is not authorized. </ faultstring>
    2)     SoapUi -> Proxy -> Business -> Web-Service: Error
    Occurs the error:
    <faultcode> soapenv: Server </ faultcode>
    <faultstring> BEA-380001: Internal Server Error </ faultstring>
    As I read in the forum, the solution maybe to capture $fault in Route Error handler, but in my case, this variable contains:
    <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>RouteTo_ServicioSMSMenTes</con:node>
    <con:path>response-pipeline</con:path>
    </con:location>
    </con:fault>>
    I made report of all variables (head, body, inbound, outbound, fault, attachment) but I can´t see “userException”.
    However, when trace OSB, in log file, I can see the information that I need: (see Payload)
    Service Ref = MENT_OSB / private / definicion_servicios / ServicioSMSMenTes_BS
    URI = http://icmaplides01:7778/mentes_ws/services/ServicioSMSMenTes
    Error code = BEA-380001
    Error Message = Internal Server Error
    Message-ID = 4703094898779781414 779b49a0.12ea6706e31.-7ee4
    Response metadata =
    <xml-fragment>
    <Tran: headers xsi: type = "http:HttpResponseHeaders" xmlns: http = "http://www.bea.com/wli/sb/transports/http" xmlns: trans = "http://www.bea.com / wli / sb / transports "xmlns: xsi =" http://www.w3.org /2001/XMLSchema-instance ">
    name="Set-cookie" <tran:user-header value="HTTPSession=algo.d017778"/>
    <http:Cache-Control> private </ http:Cache-Control>
    <http:Connection> close </ http:Connection>
    <http:Content-Type> text / xml; charset = utf-8 </ http:Content-Type>
    <http:Date> Wed, 16 Mar 2011 12:01:12 GMT </ http:Date>
    Oracle-Application-Server-10g/9.0.4.2.0 <http:Server> Oracle-HTTP-Server </ http:Server>
    <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>
    xmlns:tran="http://www.bea.com/wli/sb/transports"> <tran:response-message Internal Server Error </ tran: response-message>
    xmlns:tran="http://www.bea.com/wli/sb/transports"> <tran:encoding utf-8 </ tran: encoding>
    xmlns:http="http://www.bea.com/wli/sb/transports/http"> <http:http- response-code 500 </ http:http-response-code>
    </ Xml-fragment>
    Payload =
    <? Xml version = "1.0" encoding = "utf-8"?> <Soapenv: Envelope xmlns: soapenv = "http://schemas.xmlsoap.org/soap/envelope/" xmlns: xsd = "http:// www.w3.org/2001/XMLSchema "xmlns: xsi =" http://www.w3.org/2001/XMLSchema-instance "> <soapenv:Body> <soapenv:Fault> <faultcode> soapenv: Server.userException </ faultcode> <faultstring> java.rmi.RemoteException: Application XNFI is not authorized. </ faultstring> <detail> <ns1: hostname xmlns: ns1 = "http://xml.apache org / axis / "> icmaplides01.icm.es </ ns1: hostname> </ detail> </ soapenv: Fault> </ soapenv: Body> </ soapenv: Envelope>
    How I can access Payload to catch the user error?
    Thank you very much,
    Victor Muñoz

    Hi Anuj,
    The variable $body of errror handle hasn´t data, it´s empty.
    However i tested another web-service, and the message error is into $body. Therefore, it seems to be a problem of web-service. We will seek what is the cause, it will be util to detect the same problem with other web-service.
    Thanks,
    Regards,
    Victor.

Maybe you are looking for

  • Error message when creating a Master File

    I have finished editing a multicam clip of a graduation ceremony which is an hour and 27 minutes long. Clients are anxiously awaiting the DVDs/BR discs. There are six "Rotation" and one "Ribbon" titles and 21 chapter markers in the timeline. None of

  • Move group of pages from one InDesign file to another InDesign File using VB.Script

    Dear team, I am trying to move group of InDesign pages from one indesign file to another indesign file using vb.script. I have written the code like Dim Pages=IndDoc.Pages Dim Mytype=TypeName(Pages) Pages.Move(InDesign.idLocationOptions.idBefore,IndD

  • Turning off the skip on ipod while running

    Hi all. I am a runner. I like to listen to music while I run. However, with the iphone whenever I run, the music skips. I realize this is a cool feature by shaking the iphone and moving to the next song. However, when I run. I would like to turn this

  • How to use Topcount in an OLAP universe

    Hi, I want to create an object who gives me the best 10 Values back. I try to use topcount with the following code: <EXPRESSION> TOPCOUNT([Measures].[OINV INVOICE NET VALUE], 10,) </EXPRESSION> But i get no data back. The help in the universe designe

  • PO not created after complete Approval of SC.

    Hi Experts, I am working with classic scenario with SRM 7.0. I have an issue related to creation of PO at backend. After complete approval of SC PO is not created in backend. The status of SC is showing as Approved. There is no error in RZ20 or Appli