OSB invoking RESTful webservices:issue with relative-URI instead of

Hi,
We have a requirement where we need to pass the request content as string in the URL.
we need to send the request in the URL like:
http://abc.com/rest/xvf/nas<Employee><name>abc</name><empid>1234</empid>...<Employee>
we have used a servicecallout action which is invoking a business service which has the base uri value like:
http://abc.com/rest
and in the insert action we are trying to appened the remaining uri in the rest command i.e
<http:relative-URI>/xvf/nas{fn-bea:serialize($xmldata)}</http:relative-URI>
here $xmldata is <Employee><name>abc</name><empid>1234</empid>...<Employee>
while trying to invoke the service we are getting the error like:
BEA-380000: General runtime error: Illegal character in path at index 36: http://abc.com/rest/xvf/nas& lt ; Employee>& lt ; name>abc& lt ; /name>& lt ; empid>1234>...& lt ; Employee>
before to that we used fn-bea:inlinedXML and fn:bea:serialize functions on the retrieved xml and stored it into the xmldata variable and this variable is displaying the request in the proper xml file, but while appending it to the relative URI method the xml data is changing as like shown above i.e instead of < it is coming as & lt ; and at the end with out invoking the servie it is stoppeing at the OSB with the above error as illegal character, please advice..
how to append the proper xml to the URL/URI in the relative-URI method in the proxy transport??
as here it is coming & lt ; (combined with out space) as < i am changing it as like & lt ; for better understanding
Thanks..
Edited by: user12679330 on May 13, 2010 9:36 AM
Edited by: user12679330 on May 13, 2010 9:40 AM
Edited by: user12679330 on May 13, 2010 9:40 AM

Not sure what you are trying to do but if I am not wrong, you are trying to use HTTP get with REST. You may refer -
http://download.oracle.com/docs/cd/E13159_01/osb/docs10gr3/httppollertransport/transports.html#wp1083292
http://blogs.oracle.com/jeffdavies/2009/06/restful_services_with_oracle_s_1.html
http://blogs.oracle.com/jamesbayer/2008/07/using_rest_with_oracle_service.html
http://blogs.oracle.com/woa/2009/04/restify_your_world_and_put_it.html
Regards,
Anuj

Similar Messages

  • Can I update or fix the hardware issue with my iPad instead of a usb  for my 2007 MacBook Pro

    Can I update or fix the hardware issue with my iPad instead of a usb  for my 2007 MacBook Pro

    Have no idea what you are asking about. What hardware issue? What does a USB and a 2007 MacBook Pro have to do with it?
    GB

  • OSB inbound http webservice integration with OAM

    Hi,
    I have a requirment where I need to protect OSB inbound http webservice with OAM. So that OAM can fetch the user details from webservice SOAP header & authenticate the user against LDAP.
    Can someone tell me if this is a feasible approach. If yes, please share the details as to what configuration changes need to be done at OAM & OSB end.
    If not, is there any alternative approach to secure webservice with OAM.
    This webservice is not called from any web application. External sources dirctly make a call to this webservice through some java client.

    The solution to this issue is to put following line in mod_wl_ohs.conf file
    MatchExpression /imaging WebLogicHost=test-ipm.atfoods.com|WebLogicPort=16000
    The complete element will look like this.
    <IfModule weblogic_module>
    WebLogicHost test-ipm.atfoods.com
    WebLogicPort 7001
    Debug ALL
    WLLogFile e:/logs/weblogic_ohs.log
    MatchExpression /imaging WebLogicHost=test-ipm.domain.com|WebLogicPort=16000
    </IfModule>
    <Location /imaging>
    SetHandler weblogic-handler
    WebLogicHost 192.168.140.74
    WeblogicPort 16000
    Debug ALL
    WLLogFile f:/log/wlipm.log
    </Location>
    Make sure that you use IP for Weblogic host in 2nd element and not the host name.
    Thanks & Regards,
    Vikrant Korde

  • PA_CONTRACT_XSLFO: How to invoke a RTF-template with related data template

    Dear Reader,
    actually I want to extend the standard Document Type Layout for a Purchase Agreement Contract with additional data from approved supplier list (ASL).
    Therefor I have created a RTF-template and a data template with the needed sql-statement. For testing I put this in a standalone concurrent programm and it works fine (result was a blue table with all data rows).
    Next step for me was to invoke the RTF-template into the PA_CONTRACT_XSLFO template for extending the Document Type Layout for my Purchase Agreement Contract. So I put the neede invoke-statements
    <xsl:import href="xdo://XXOC.XX_RTF_TEMPLATE.de.00/"/>
    and
    <xsl:call-template name="XX_RTF_TEMPLATE"/>
    into the XSLFO-template. Also I extend the RTF-template with the define template statement
    <?template:XX_RTF_TEMPLATE?>
    So all seems to be fine.
    As result I get the standard document for Purchase Agreement Contract with the additional blue table from RTF-template BUT WITHOUT DATA !
    From my point of view there is no execution of the sql-statement in data template. But I dont know why.
    Do Oracle support a combination of XSLFO-template with data template?
    [XSLFO-template] with related [XSD-data definition]
    calls [RTF-template] with related [data template (with included sql-statement)]
    Thanks for your help.
    Best regards
    Mario.

    How to call a rtf template from another rtf template by passing a value try in main template create hyperlink of url with parameters for another template
    http://bipconsulting.blogspot.ru/2010/02/drill-down-to-detail-or-another-report.html
    When user pull a quote report from siebel this new rtf template should attach to the quote at the end.it'll be only another report
    IMHO you can not attach it to main. it'll be second independent report
    you can try subtemplate but it's not about rtf from rtf by click
    it's about call automatically rtf subtemplate from main rtf based on some conditions
    for example, main template contain some data and if some condition is true then call subtemplate and place it instead of its condition

  • BAPI to post a Goods issue with relation to Sales Order?

    Hi Everyone,
    After creating a delivery order, I need a BAPI to automatically post a goods issue for this DO.
    I tried using BAPI_GOODSMVT_CREATE but it returns the message 'Goods Movement not possible with mvmt type 601'.
    Any advice?
    Best Regards,
    Junwen

    Hi John,
    My data are as follows:
    GOODSMVT HEADER:
    PSTNG_DATE: 30.09.2004
    DOC_DATE: 30.09.2004
    REF_DOC_NO: had tried 1014000359 or empty
    GOODSMVT_CODE: 03
    GOODSMVT_ITEM:
    MATERIAL: HP0121002
    PLAN: 1010
    STGE: 10FG
    BATCH: BATCH1
    MOV: 601
    CUSTOMER: 180017
    ENTRY_QNT: 1
    ENT_UOM: PC
    ENT_UOM_ISO: PC
    DELIV_NUMB: 1014000359
    DELIV_ITEM: 000001
    From your feedback, it is possible to use the BAPI to create a goods issue for movement type 601?
    Best Regards,
    Junwen

  • Portal webservice issue with SP14 - NWDS

    Hi Experts,
    Is it possible to create Portal webservice from SP14 - NWDS?
    Issue: I have created a Portal service, trying to create a webservice from Portal service but I am not getting the Portal Webservice option (Select the Portal Service -> New -> Other -> Portal Application -> Create a new Portal Application Object -> Clicked on Next button -> Selected the Portal Service -> Next button ->Here I could able to see only three options ( (1)RF Component Wizard7.1.5 (2)Portal Component (3)Portal Service ). I am not getting the Portal webservice option. In my previous thread got the info that, in SP12 we could able to have the Portal webservice option. May I know the proper link to download the NWDS which supports Portal webservice from service market place?
    Regards
    Sara

    Hi,
        From service market place http://service.sap.com/sp-stacks , choose NW04 or 04S. Choose source and destination patch, check WAS and others. From next page, you can check the box for studio alone for download.
    Regards,
    Harini S

  • When accessed from Firewall, the OSB WSDL is inserting schemalocation with HTTP port instead of HTTPS

    We have OSB service and we are able to access over firewall. Also the WSDL, Schemas etc., But when we external users access the WSDL, they are not able to get complete content i.e schemas are not imported.
    Reason is WSDL has http (<import schemaLocation="http://test.com:80/xxxxxx/Proxy/schema") with port no 80 instead of https (<import schemaLocation="https://test.com/xxxxxx/Proxy/schema") .
    Since we don't specify the complete schema location in WSDL, how does WSDL include the complete schema path? And how to change it https path instead of http?

    Namaste,
    Sorry for the delayed response.
    Yet, my one query is not answered.
    Q:Are you ABLE to get the Desired path in Endpoint URL(https) as well?
    Explanation:
    What I mean is, When the external users access the WSDL (I am assuming External Users are able to access WSDL through Firewall),
    As you have mentioned that XSD imports have HTTP instead of HTTPS, but how about the soap:address location? Even this points to HTTP instead of HTTPS?
    (Ex:
    <wsdl:service name="CaduceusSiteService">
        <wsdl:port name="site_pt" binding="tns:site_pttBinding">
            <soap:address location="https://www.test.com/test123"/>    ---> is this HTTP or HTTPS?
        </wsdl:port>
    </wsdl:service>
    BTW, did you set, HTTP Transport Configuration --> HTTPS required parameter to "YES"? (This is a prerequisite).
    We had a similar issue, where we had HTTP instead of HTTPS when WSDL accessed from Firewall.
    However, after lot of struggle, we got it worked after changing Firewall (MS TMG) settings to support for "text/xml".
    I think, it could be the same settings needed to done in your case too. Please do check the firewall settings.
    Thanks,
    Nagaraj Ganapa

  • Error on invoking a webservice by giving ip address instead of local host

    Hi,
    I created a web service through jdeveloper and tried accessing the webservice generated WSDl file by giving ip address of my machine , but it throws me an error stating IE cannot display the web page . The same web service is running fine when giving local host on the Web service URL .
    Looking frwd fr sme help
    Thanks in advance
    Ragaven

    Hi,
    your WebLogic server is not setup to listen for the IP address. You can change this in the WLS console for the server configuration. Note that when you install WLS and don't define any hostname then it will listen to all addresses (which also is the default for the integrated WLS)
    Frank

  • Issues with using relative links in Captivate 8

    Is anyone else having issues with using relative links in Captivate 8?  These links all used to work in the previous version of Captivate. And I could have sworn this was fixed already once in Captivate 8 but it's popping up again for us. Here is the situation... We have courses that are made up of multiple lessons which as separate Captivate files. Within those lessons are buttons to link to external documents (which live in a shared document folder), demonstrations, etc.  We use relative links because we post these to our amazon servers and we also sell them to clients where they can post them on their own web servers or in their LMS.  SO we can't put in full paths for the links or we'd have to change them constantly.  So an example is that the link for a button might be "../Document/nameofdoc.pdf"  This would be going to a user guide or something that is posted in the "Document" folder that lives at the same level as the lesson's folder. But now, all of the sudden, none of our bazillion links is working. And I've tried buttons, hyperlinks, and even the old click box. Nothing works with relative links. And I did check the permissions on every file and folder on our Amazon server to verify nothing changed there as well.   Any suggestions?

    I have the same issue with relative links using Captivate 8.  I am trying to load Captivate modules into an LMS using relative links to document files within the LMS.  The links work fine during a site page test so not an issue in the LMS, but from the Captivate module they aren't working....
    Help?

  • RESTful Webservice

    How to invoke RESTful Webservice using ODI11g ?
    Mark T.

    Look this article at Suraj Bang blog
    http://odi-ee.blogspot.com/2010/11/invoking-restful-webservices-odi11g.html
    Regards,
    Oleg

  • Subcontracting stocks with related to Purchase Documents

    Dear Guru's
    Please let me know if there is any SAP standard report to get  stocks which are issued / to be issued with related to a purchase order. We are having subcontracting process and we would like to get details with related quantity issued/ to be issued for a sub contracting purchase order.
    Thanks in Advance
    Rupesh

    Hi Bijay,
    Thanks for the details.
    Can you please let me know if there is a report to put purchase order as a selection criteria because we want our operational people to identify the qty which has been already issued / to be issued against each purchase order.
    Thanks in Advance
    Rupesh

  • RESTful webservices invocation from OSB.

    Can some one please explain the best way to develop the OSB service to invoke the Restful services.
    1. Only proxy service is enough to handle the request, no need of business service?
    2. when moving the code from one env to other, we use a business service to update endpoint url which is the common approach we generally follow, to make the osb service loosely coupled. how to use the business service when invoking the restservice? does we have the base uri value in the transport url and will get appended with the relative-uri value which we frame as part of the request in the outbound variable in the proxy settings?
    3. when invoking the rest service do we need to append all the request message to the url itself or the request can be passed separately as request body and the main rest uri will have only the key fields as part of the relative-uri?
    4. If we receive huge request message does the URL support the entire request?
    5. how the response/error will be returned when calling the Restful webservice?
    I am assuming this appraoch. Can some one please confirm does this approach works with RESTful service invocation from OSB.
    Request processing:
    Source System request-> Proxy Service -> Transformation to end system specific -> Business service (with base-uri -> http://mainappl.com/web/cmr/{relative-uri from outbound transport}) -> endsystem
    Response processing:
    endsystem Response/Error -> Business Service -> Proxy Service -> transformation to source system specific -> source system.
    Please advice which is the best approach to follow while invoking the RESTful webservices from OSB.
    Thanks..
    Edited by: user12679330 on May 5, 2010 4:33 AM
    Edited by: user12679330 on May 5, 2010 5:00 AM

    Hi,
    Thanks for the update. Can you please explain the above mentioned approach works or how it should be?
    I have one requirement, can some one explain the implementation for this:
    I have one element which is of type unbound. I need to map this element to a single enelement value by separating each element value with a ;, before that I need to check wheteher this element(s) are present in the request then need to appened all these element values to a single element and the end of this element need to append default values.
    Scenario:
    <student>
    <name>asd</name>
    <address>
    <street>street1</street>
    <street>street2</street>
    <street>street3</street>
    ||
    ||
    </address>
    to be mapped it to:
    <student>
    <field name="NAME">asd</field>
    <field name="ADDRESS">street1;street2;street3;default1;default2;default3</field>
    </student>
    Here need to check if street names are present in the request xml, if yes ned to assign it to ADDRESS as mentioned above if street names present or not need to append the default values at the end to the ADDRESS field.
    Thanks in advance.

  • Using relative-URI  in creating the REST based proxy service

    Hi,
    I am facing an issue when i am trying to create REST based proxy. i am looking at the urls given in the forum post Using Business Service that supports XML over HTTP in OSB
    I have created a conditional branch with xpath expression like *./ctx:transport/ctx:request/http:relative-URI/text()*
    and i am copying this value to $inbound as showin in the blog http://blogs.oracle.com/jeffdavies/2009/06/restful_services_with_oracle_s_1.html. But when i typed the uri in browser its saying xml parser error unable to find <.
    Not sure of the reason. If i modify my proxy to use http-method as shown in the blog its working fine and that too only when i copied ./ctx:transport/ctx:request/http:http-metho/text() to $inbound. But when i copied the same to another variable like branchcond, i am getting same parsing error. And Is it that the variable has to be always $inbound?  So what should be the variable name for using relativeURI
    And my uri is going to be like the following, thats why i am planning to create the conditonal branch on relative-uri.
    http:/localhost:8001/proxy/RESTbasedPS/getGreeting?name=23
    http:/localhost:8001/proxy/RESTbasedPS/getFullName?firstName=Some&lastName=Thing
    Any leads in above error will help me.
    Thanks
    Siva

    When i created the Conditonal branch, its asking for two mandatory properties. One is 'selected path' and the other is 'variable'. My scenario i am trying to base my conditional branch based on relative uri, so i have given './ctx:transport/ctx:request/http:relative-URI/text()' for 'selected path' variable and giving the value 'inbound' for 'variable' property of conditional branch.
    i was trying to do this in similar fashion as given in the blog http://blogs.oracle.com/jeffdavies/2009/06/restful_services_with_oracle_s_1.html, only thing is that i am using http:relative-URI rather http:http-method as shown in the blog.
    I am geting the following error in exact:
    XML Parsing Error: no element found
    Location: http://localhost:7001/proxy/RESTBasedPS/getGreeting?name=siva
    Line Number 1, Column 1:
    Please let me know if i am missing something or doing wrong with inbound variable.
    Thanks
    Siva

  • Invoking RESTful service from OSB

    Hi
    I need to invoke Restful service from OSB11g in order to do that...
    1. I have created Business service with the end point of the RESTful service.
    2. Running the Business service and provided the XML as input in Transport Header--> query-string.. i got the response as bellow:
    <serviceResponse returnCode="-1">
    <statusMessage messageId="Exception" messageType="" severityCode="E">
    <text>
    Required input not supplied. Please revisit your input values and try again.
    </text>
    </statusMessage>
    </serviceResponse>
    Is this the correct way i am doing or am i missing something..???
    Thanks
    Vasu

    Hi Vasu,
    did you solve your issue ?
    I have a similar scenario where I need to call a RESTful service from OSB.
    The RESTful URL service is http://xxx.xxx.xxx.xxx/api/ordertracer and has been implemented in IIS.
    The service accepts a xml string message as input and returns an HttpStatusCode.
    So I started defining a business service (named OrderTracer):
    Service Type: Any XML Service
    Endpoint URI: http://xxx.xxx.xxx.xxx/api/ordertracer
    HTTP Request Method:POST
    I tested it from business service test console:
    - in Transport
    -> query-string I put my input xml
    -> http-method: POST
    -> Content-Type: text/xml
    but on execute I got an error:
    <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:Connection>close</http:Connection>
    <http:Content-Length>315</http:Content-Length>
    <http:Content-Type>text/html; charset=us-ascii</http:Content-Type>
    <http:Date>Wed, 03 Oct 2012 15:07:38 GMT</http:Date>
    <http:Server>Microsoft-HTTPAPI/2.0</http:Server>
    </tran:headers>
    <tran:response-code xmlns:tran="http://www.bea.com/wli/sb/transports">3</tran:response-code>
    <tran:response-message xmlns:tran="http://www.bea.com/wli/sb/transports">Not Found</tran:response-message>
    <tran:encoding xmlns:tran="http://www.bea.com/wli/sb/transports">us-ascii</tran:encoding>
    <http:http-response-code xmlns:http="http://www.bea.com/wli/sb/transports/http">404</http:http-response-code>
    </con:metadata>
    May I ask you to provide me any hints ?
    Thanks in advance for any help
    ferp

  • Restful webservice with basic authentication

    Hi, i am running the following:
    Oracle: 11.2....
    ApexListener: 2.....
    Glassfish: 3.0...
    Apex: 4.2.1
    I have successfully established some restful webservices. Now i want to add a basic authentication to them against an APEX Authentication Scheme which is used in one of my APEX Applications. I cannot find any documentation related to Glassfish or ApexListener or APEX to do that.
    Or are the RESTful Service Privileges which belong to APEX User Goups intent to do a basic authentication ?
    Thanks for your help !
    -- Klaus

    OK got it solved by my self.
    Solution:
    Define a RESTFUL (POST, PLSQL) Service with the following HEADER parameters:
    authorization          authorization     IN     STRING
    X-APEX-STATUS-CODE     status          OUT     INTEGER
    As per RFC 1945, the Authorization header value should contain the username:password
    as encoded (base64) string. That is what the RESTclient send (over https)
    In the PLSQL i decode :authorization and validate it against APEX Authentication Scheme.
    The result of the validation drives the response header (:status) in PLSQL with 200 (ok) or 401 (Not Authorized)
    -- Klaus

Maybe you are looking for