11G - XDB Native Web Services - how to create a web service proxy

Hi,
I am working on XDB Native web Services (http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28369/xdb_web_services.htm#CHDDBCHB). I want to create a proxy web service for orawsv service (http://server:port/orawsv?wsdl), which is protected by an user/password
In Jdeveloper 10133:
+ copy orawsv wsdl (http://server:port/orawsv?wsdl) in local file
+ create a proxy web service form the local wsdl (from the wizard)
+ implement the client (http://www.oracle.com/technology/obe/11gr1_db/datamgmt/xmldb2_b/xmldb2_b.htm)
==> OK
In Jdeveloper 11g
+ copy orawsv wsdl (http://server:port/orawsv?wsdl) in local file
+ create a proxy web service form the local wsdl (from the wizard)
+ how to implement the client : there is no method to set a password
any ideas?
Thanks for your help,
Cyryl
Edited by: cbalmati on Oct 21, 2008 6:26 AM

I'm working on getting a proxy web service working in 11g and the contents of this thread is close to answering my question.
The web service proxy is accessing a service that requires a SOAP Security header.
In looking at the previous post, I thought that by using the BindingProvider API I could add the security settings. But when I invoke the proxy I consistently get the following error response from the (PeopleSoft) web service: "com.sun.xml.ws.client.ClientTransportException: request requires HTTP authentication: Unauthorized'
In contrast to that error, when I use JDeveloper's HTTP Analyzer, I get a successful response from the web service. Below is what the raw HTTP looks like:
POST https://isiswebdev.services.wisc.edu:7002/PSIGW/PeopleSoftServiceListeningConnector HTTP/1.1
Content-Type: text/xml; charset=UTF-8
Host: isiswebdev.services.wisc.edu:7002
SOAPAction: "CI_U_FA_CSA_STDTA_CI_G.V2"
Content-Length: 548
X-HTTPAnalyzer-Rules: 1
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:ns2="http://xmlns.oracle.com/Enterprise/Tools/schemas/M183895.V1">
<env:Header>
<ns1:Security>
<ns1:UsernameToken>
<ns1:Username>UserName</ns1:Username>
<ns1:Password>XXXXXXX</ns1:Password>
</ns1:UsernameToken>
</ns1:Security>
</env:Header>
<env:Body>
<ns2:Get__CompIntfc__U_FA_CSA_STDTA_CI>
<ns2:EMPLID>012345678912</ns2:EMPLID>
</ns2:Get__CompIntfc__U_FA_CSA_STDTA_CI>
</env:Body>
</env:Envelope>
Here's the Java code that I'm using to try to make the same call:
public void callIWebservice(String emplId){
cSA_STDNT_DATA = new CSA_STDNT_DATA();
CI_U_FA_CSA_STDTA_CI_PortType port = cSA_STDNT_DATA.getCI_U_FA_CSA_STDTA_CI_Port();
Map<String, Object> requestContext = ((BindingProvider)port).getRequestContext();
requestContext.put(BindingProvider.USERNAME_PROPERTY, "UserName");
requestContext.put(BindingProvider.PASSWORD_PROPERTY,"XXXXXXX");
GetCompIntfcUFACSASTDTACITypeShape CiType = new GetCompIntfcUFACSASTDTACITypeShape();
EMPLIDTypeShape emplIDType = new EMPLIDTypeShape();
emplIDType.setValue(emplId);
CiType.setEMPLID(emplIDType);
try {
GetCompIntfcUFACSASTDTACIResponseTypeShape response = port.getDATA(CiType);
System.out.println(response.getCUMGPA());
} catch (M464939V1 e) {
System.out.println(e.getFaultInfo());
But, alas, I just get the ClientTransportException.
Is the Bindingprovider interface the correct way to add the soap security headers? Or am I following the wrong path?
Any help will be greatly appreciated.

Similar Messages

  • How to create A web services step by step and their uses

    How to create A web services step by step and their uses with their T-Codes
    pls dont send any links
    thank you
    Regards,
    Jagrut Bharatkumar Shukla

    Hi
    Use the Tcode <b>WFWS</b> to create the Web service
    enter the Transaction to whih you wants create the web service and save
    Regards
    Anji

  • How to create a web instance in weblogic?

              Dear All,
              I want to know how to create a web instance in weblogic server?
              Furthermore , where can i get more info. about the weblogic
              server , including how to use those examples pages provided from
              weblogic server, sampling of procedure to config each service ,
              e.g EJB , JSDB , JTA , etc., .
              thanks,
              chris
              

    Read the new JSP1.1 and servlet 2.2 specific for more information on
              this. You can deploy several jsp files in a single war file on a server.
              -- Prasad
              chris lee wrote:
              > Dear Prasad Peddada
              > Thank you for your helpful information.
              > I've read the page you have mentioned, I want to know
              > if I've serval pages written in jsp, how should I do if I
              > want to access those pages under the weblogic server?
              > Furthermore, Does the 'applicantion' mention in the paragraph
              > is the web instance I mentioned before?
              >
              > Thanks,
              > chris
              >
              > Prasad Peddada <[email protected]> wrote:
              > >http://edocs.beasys.com/wls/docs60/index.html
              > >
              > >-- Prasad
              > >
              > >chris lee wrote:
              > >
              > >> Dear All,
              > >> I want to know how to create a web instance in weblogic
              > >server?
              > >> Furthermore , where can i get more info. about the weblogic
              > >> server , including how to use those examples pages provided
              > >from
              > >> weblogic server, sampling of procedure to config each
              > >service ,
              > >> e.g EJB , JSDB , JTA , etc., .
              > >>
              > >> thanks,
              > >> chris
              > >
              Cheers
              - Prasad
              

  • How to create the web template

    Hi BW Experts,
       how to create the web template.....!
       I just want to know what is the use of Web template. i want to display the report
    in WEB-UI screen ( sap-crm 7.0 portal ) can any one help me please how to proceed ...!
    Thanks
    shahina..!

    Hiu2026
    Steps to follow to create WAD in WEB Template in 3.5 or 7.0 u2026u2026..
    Go to All programs and select your web application designer
    Select the button to create a new page in WAD
    Select the chart and place in the layout
    Next goto Data provider Target and select your query
    Give your report name in the given data provider screen
    Select your query in History/find/Favourites/Infoareas button
    Select your query in this screen and click OPEN
    Now we can see the data provider is assigned to the chart.
    To edit the chart you have to right click on the chart
    After right click on it we will find another screen where we can edit all the settings
    In this screen we can find NEXT click button to change our settings
    In this screen we can state the tasks (Title, units, values, range)
    In this screen we can change our background /validity/color
    In this screen we can add values to the chart
    In this screen we can add validity/positions/order/axis types to the chart
    In this screen we can change the global settings/and overview of the chart.
    This screen shows that we have customized the chart successfully
    After successful creation of the chart we have to save the chart
    Save your chart in your favorites by giving the description and technical name in the given block.
    Now execute your WAD by selecting the execute button
    The BEx Web Application Designer is a desktop application for creating Web applications with BW-specific contents. Using the BEx Web Application Designer, you can create an HTML page that contains contents such as various tables, charts or maps. This HTML page (Web application) provides the basis for not only Web applications with complex interaction, but also for Web cockpits and iViews.
    http://help.sap.com/saphelp_nw04/helpdata/en/1a/456a3badc1b315e10000000a114084/content.htm
    Web Application Designer for Beginners
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/749a4622-0a01-0010-36bf-b6b30a2a3a22
    Web Application Solutions: A Designer's Guide
    http://www.lukew.com/resources/webapplicationsolutions.pdf
    http://sap.ittoolbox.com/groups/technical-functional/sap-solution-manager/bw-web-application-designer-1955944
    Feautures of WAD in 7.0
    http://help.sap.com/saphelp_nw70/helpdata/en/88/4d354277dcb26be10000000a155106/frameset.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5c46376d-0601-0010-83bf-c4f5f140e3d6

  • How to Create a Custom Service in ECC6

    Hi gurus,
    How to create a custom service for ESS or MSS in ECC6.
    I have created similar services for ITS version is that the same way?
    kindly provide me the steps....
    Thanks in Advance
    Sera

    from PFTC itself. Same.

  • How to create a web template with company logo

    how to create a web template with company logo . can any one help me with the steps. or any notes. thnaks in advance .
    2. i have 25000 articles and client want to have a selection feild to see top article ex:50,10,20, 100, 1000 etc . same for bottom articles . plz let me know how to do it . thanks for replay . i am new bw so plz .
    thanks to you all

    Hi
    1) Please read
    http://help.sap.com/saphelp_nw04/helpdata/en/4a/c8353c51aab32be10000000a114084/frameset.htm
    2) Create a condition in the Query Designer: Use a formula variable
    See http://help.sap.com/saphelp_nw04/helpdata/en/73/702e39074dc93de10000000a114084/frameset.htm
    Heike

  • How to create the Portal Service in Portal 7.3,

    Dear Experts,
    how to create the Portal Service in Portal 7.3, as we create in Portal 7.0 by creating the Portal Project in that we create Portal Service and we can start and stop in Portal Service configuration in System Administration
    Thanks,
    Sagar Pande

    Hi Sagar,
    Procedure
      1.  Open the SAP NetWeaver Administrator by either of the following methods:
           a. Use the URL to your AS Java (hostname:port) to access the AS Java home page and use the link to SAP NetWeaver Administrator.
           b. Alternatively, add nwa to the AS Java URL to access SAP NetWeaver Administrator directly. (hostname:port/nwa).
      2  Go to   Operations Management   Systems   and click the Start & Stop link.
        The Start & Stop: Java EE Instances window opens.
      3  Click the Java EE Application bar and select the relevant application in the Application List.
        The Portal Services pane displays the services associated with the selected application.
      4  Use the buttons Start Service or Stop Service.
    Refer to Portal 7.3 help
    http://help.sap.com/saphelp_nw73/helpdata/en/f6/ac978061ac4b24a87a1f821313c4fe/frameset.htm
    Br,
    Venky

  • How to create asynchronous web services in OSB 11g?

    Hi,
    Using the workbench, when I try to create a web service from an existing WSDL, the workbench automatically uses JAX-WS.
    JAX-WS does not offer support for asynchronous web services, since it supports only HTTP ports (@WLJmsTransport does not work).
    Request your help in resolving this issue. One way is to use JAX-RPC but I do not know how to configure the workbench to use JAX-RPC instead of JAX-WS.
    Thanking you in advance.
    Regards
    Shyam.V

    Hi,
    see <a href="http://help.sap.com/saphelp_nw70/helpdata/en/d7/951b42f828df2ce10000000a1550b0/frameset.htm">this</a> and also carry out a search in this forum, this has been asked before.
    Regards, Heidi

  • Web Services - How to create a websevice in XI/PI

    Hi,
    I have zero knowledge on webservices. Can someone help me understand what a webservice is and give me a step by step guide on how to create a sender and receiver webservice.
    Thanks in advance.
    Cheers,
    S

    Hi
    Search on SDN, you will get blogs and document.
    WebService is an application on the Web/Internet. Wheneever Service is requested by the user, it provides the service ( Request/Response)
    look some blog Create Web Service
    Using the SOAP inbound channel of the Integration Engine
    Web Service Senario
    RFC -> XI -> WebService - A Complete Walkthrough (Part 1)
    Invoke WebServices in XI
    Invoke Webservices using SAPXI
    WebService Scenario
    SYNCHRONOUS SOAP TO JDBC - END TO END WALKTHROUGH
    https://www.sdn.sap.com/irj/sdn/weblogsblog=/pub/wlg/7729
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d23cbe11-0d01-0010-5287-873a22024f79
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5474f19e-0701-0010-4eaa-97c4f78dbf9b

  • How to create a web services with Developer Studio?

    hi all,
    I would like to know how can I create a Web Services with Developer Studio 7.0, but a try because I could not publish it to consume.
    thanks!

    Thanks for your answers
    Web Services try when I get the following error:
    http://img386.imageshack.us/my.php?image=errorms9.jpg
    <--Localization failed: ResourceBundle='com.sap.caf.rt.resources.CAFExceptionResources',
    ID='MMR_BO_NOTFOUND', Arguments: ['Prueba2Service']-->
    I do not know what the cause of error
    thanks

  • How to create & use WEB services in WD4A?

    HI SDN,
    How can we create & use WEB services in WD4A?
    Can any one send me the link for it?
    Thanks in advance,
    Rahul

    Hi,
    see <a href="http://help.sap.com/saphelp_nw70/helpdata/en/d7/951b42f828df2ce10000000a1550b0/frameset.htm">this</a> and also carry out a search in this forum, this has been asked before.
    Regards, Heidi

  • How to create a winsow service for managed server 11g

    Hi
    We have just installed Fusion Middleare 11g weblogic 10.3.6 , our Admin server and managed server are on this very same server.
    we are trying to create a window service for start and stop both admin and managed server, we have created a window service for the admin server followed the instruction, but how can we create a window service for the managed server?
    any idea?
    thanks a lot

    Hi Andrew
    Thanks for the post. I have already followed that document link. My problem is the DTC does not failover to Second node when I try to move the SQL Server Engine to the other Node or I do a simulate failure option.
    But when I shutdown Node 1 all the services move to Node 2 without any issue.
    Thanks & Regards
    Ravinder

  • How to create default web service constructor with optional parameters in C#

    hi senior :)
    i tried to create a web services with a default constructor and another that takes few arguments, no matter
    what i do I couldn't call the non default constructor from the client! how can I pass my arguments in the constructor? worse yet, I tried to pass my arguments to another exposed WebMethod, guess what? the public or private variables i'm trying to update,
    do not get updated, what gives? any documentation on how to use web services? i'm pretty newbie at this. thanks

    http://forums.asp.net/
    You need to post to Web services section in the above forum.

  • Please guide me how to create a web service

    please tell  me the steps to create a web service.
    Moderator Message: Please search before posting
    Edited by: Suhas Saha on Sep 23, 2011 2:43 PM

    That's exacly why I suggested you to ask your question in the SQL/PL SQL forum, since this forum is mainly about SQL Developer and your question is instead related to PL/SQL.
    With SQL Developer you can easily create a trigger calling a stored procedure, by going to the triggers node and right clicking then selecting new trigger, and also the stored procedure in the same way, but you will then need to write the stored procedure itself and i do not know if there is a way to call a web service from there (i suspect there is but i'm not an expert in PL/SQL).
    A simple Google search may also help you there but the guys in the SQL and PL/SQL forum will surely be able to give you a better answer.
    http://www.google.it/search?client=firefox-a&rls=org.mozilla%3Ait%3Aofficial&channel=s&hl=it&source=hp&q=calling+a+web+service+from+oracle&meta=&btnG=Cerca+con+Google

  • Question: How to create a SOAP service?

    I am working on a POC for evaluation of Aqualogic Service Bus 2.5. I am facing a difficulty in the following aspects.
    1. I have a client on my system which reads a data service from DSP and gives a custom object in return.
    2. There is a client on another system which has to use the returned custom object through a remote procedure call to my function.
    3. I dont want to create a web service just for this purpose.
    4. So I want that the object will be communicated to the other client in the form of a SOAP message and generate a response SOAP message which my first client will receive
    I believe that Aqualogic Service Bus configuration of SOAP service will help me out in this case but i am not finding a way of doing this. I have been able to successfully communicate with web services configured in ALSB.
    I went throught the document
    http://e-docs.bea.com/alsb/docs20/consolehelp/businessServices.html
    But it doesnt have the information of how to go about creating a soap service and configuring it in ALSB and then consuming it in a step by step manner. Please give me some techniques to achieve this.

    First, try using the documentation here instead.
    http://e-docs.bea.com/alsb/docs25/consolehelp/index.html
    I did something similar with SOAP xml.
    1) I had to create a wsdl file based on the incoming xml and
    2) import it into ALSB (admin console). Creating the wsdl was the most difficult part for me.
    3) Then you can create a proxy service (admin console) that uses the wsdl, and it'll allow accessing the proxy service as a web service.

Maybe you are looking for

  • CS4 Suite (all Windows versions) - documentation of XML and pre-configuration of components?

    With a view to packaging and deploying CS4 in Microsoft enterprise environments (ie GPO restricted desktops, mandatory user profiles, non-administrative user base, at or near minimum spec hardware) I was wondering if anyone was aware of any documenta

  • Need to create form that user can fill out and SAVE in Reader

    Hi, My form, which of course works fine in Adobe Acrobat 4 CS4, is unsaveable when typed into with Acrobat Reader. It says at the top: "Please fill out the following form. You cannot save data typed into this form. Please print your completed form if

  • Why is apple maps syncing my favorites?

    Whenever I add a favorite in "maps" it gets synced to my other ios devices. So far I haven't found a way to turn that off. Every option in iCloud is turnef off.

  • Iphone 5 assistance

    I'm having multiple issues with my iPhone 5. Issue one-it will not sync playlists anymore. Issue two-when connected to Windows 8 computer, it deletes half of the apps. Issue three-when connected to the computer, it cannot find certain apps.  I've tri

  • Flash Album Exporter 1.5 Download?

    Hi, has anyone had any success downloading this plugin. I try downloading at this link http://flashalbumexporter.home.comcast.net/~flashalbumexporter/aperture/aperture Download/apertureDownload.html and it doesn't seem to work or exist. Does anyone k