XI web service WDJ Application

Hello everyone,
I am trying out the tutorial -
How To Develop a Simple Web Service Application Using SAP
NetWeaver Developer Studio & SAP XI 3.0
I have done all the steps as mentioned to consume the XI Web service using WDJ. However I am unable to find a way of providing the XI server authentication (username/ pw) to execute the Web service.
If I try to execute the WebService using tools like Altova XML spy it asks for XI server authentication. I know I must try to provide the same using my WDJ application. Can you please tell me the way of doing this.
Thanks and Regards,
Ashwin Bhat

I found a possible solution:
Following is mentioned in Riyaz Sayyads Blog.
/people/riyaz.sayyad/blog/2006/05/08/consuming-xi-web-services-using-web-dynpro-150-part-ii
XI does not accept unauthenticated requests. Hence, you have to pass the logon credentials along with the request. For this add following lines of code in the executeRequest_CDWS_MI_CDWS_MI( ) method implementation of the Component Controller:
<!code>  wdContext.currentRequest_CDWS_MI_CDWS_MIElement().modelObject()._setUser(“username");
<!code>  wdContext.currentRequest_CDWS_MI_CDWS_MIElement().modelObject()._setPassword(“password");
I will try this out tomorrow at work (at home now). Will keep everyone updated of the results. Thanks.

Similar Messages

  • How To Access HTTPS Web Service  in Application Module

    I need to know how to access HTTPS web service in application module.
    If you can provide the tutorial or guidance to achieve this really appreciate.
    Thanks
    Sameera

    Use the Web Service Proxy wizard in JDeveloper to create a class that calls your Web service, and then call this class from code in your AM.
    http://docs.oracle.com/cd/E16340_01/web.1111/b31974/web_services.htm#CJAHGIEF

  • Selection of tools for web-service based applications

    Hi,
    I have 3 options now to develop web-service based applications,
    1)Visual Composer
    2)CAF
    3)Web Dynpro Java
    Which is best for security, future-proofness at the same time feasible cost ?

    hi arvind,
    i am giving some links pls see.
    www.crosschecknet.com/web_services_testing_tools_sap_netweaver.php - 20k -
    www.aivea.com/eshipinfo.htm - 107k
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/60046fb9-ac5b-2910-08a6-b7b04b463c62
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5f3ee9d7-0901-0010-1096-f5b548ac1555
    thanks
    karthik
    reward me points if usefull

  • JCAPS UDDI - Problem Using the Web Service Management Application

    Hi everyone, this is my problem:
    1.) I installed the JCAPS UDDI Server in a Solaris. <-- Ok
    2.) In the eManager I installed the Web Services Access Manager. <-- Ok
    3.) I started the UDDI server. <-- Ok
    4.) I check that the process is running (in Solaris). <-- Ok
    5.) I'm trying to load the Web Service Management Application Login Page, but it doesn't show the page so I can't login and in consequence I can't publish, remove, view, and search WSDLs by using the Web Service Management Application.
    I appreciate some help about this.
    Regards

    Yes, I am connecting to the same system where we have data..
    Anirban

  • HTTP error when trying to access RESTful web service from application

    Hi,
    We are getting the following error when trying to access a RESTful web service coming from Apex workspace 4.2.1 and Apex listener 2.1:
    ORA-29273: HTTP request failed ORA-06512: at "SYS.UTL_HTTP", line 1130 ORA-29024: Certificate validation failure
    In the Debug report, besides the above I also see:
    error_backtrace: ORA-06512: at "SYS.UTL_HTTP", line 1130 ORA-06512: at "APEX_040200.WWV_FLOW_WEB_SERVICES", line 543 ORA-06512: at "APEX_040200.WWV_FLOW_WEB_SERVICES", line 1164 ORA-06512: at "APEX_040200.WWV_FLOW_PROCESS", line 396
    We get that error whether we use https or http in the URI pointing to the web service. When I test the Web Service in Workspace RESTful service GUI, I get the data back. When I go build an application with a report calling the RESTful Web Service I get that error. Both the Application and the Workspace RESTful services are on the same Apex environment and even the same workspace.
    What is odd is that I can actually put the URL of the web service into a browser and I get the data: (using the demo hr data in sample RESTful services.)
    IN browser-- https://weblogic-dev.edu/apex/ace/hr/empinfo/
    yields:
    7839,KING,PRESIDENT,,1981-11-17T05:00:00Z,5000,,10 7698,BLAKE,MANAGER,7839,1981-05-01T04:00:00Z,2850,,30 7782,CLARK,MANAGER,7839,1981-06-09T04:00:00Z,2450,,10 7566,JONES,MANAGER,7839,1981-04-02T05:00:00Z,2975,,20 7788,SCOTT,ANALYST,7566,1982-12-09T05:00:00Z,3000,,20 7902,FORD,ANALYST,7566,1981-12-03T05:00:00Z,3000,,20 7369,SMITH,CLERK,7902,1980-12-17T05:00:00Z,800,,20 7499,ALLEN,SALESMAN,7698,1981-02-20T05:00:00Z,1600,300,30 7521,WARD,SALESMAN,7698,1981-02-22T05:00:00Z,1250,500,30 7654,MARTIN,SALESMAN,7698,1981-09-28T04:00:00Z,1250,1400,30 7844,TURNER,SALESMAN,7698,1981-09-08T04:00:00Z,1500,0,30 7876,ADAMS,CLERK,7788,1983-01-12T05:00:00Z,1100,,20 7900,JAMES,CLERK,7698,1981-12-03T05:00:00Z,950,,30 7934,MILLER,CLERK,7782,1982-01-23T05:00:00Z,1300,,10
    Any ideas on what would be causing the Error above in our application?
    Thanks,
    Pat
    Edited by: patfmnd on Mar 11, 2013 3:25 PM
    In reviewing the above error, I think we are realizing that we have to have the Weblogic layer SSL cert (actually the CERT from our BigIP load balancer which also does our SSL termination) imported into the Oracle server wallet where Apex is installed. Am I correct?
    PM

    We resolved our problem. The Apex Administrative Guide made us realize that we had to set up Wallet path in the Instance. This required working with DBAs to follow the Advanced networking guide to get the wallet set up on our server. We then added that path to the Instance configuration. (Manager Instance --> Instance settings). We ran into another other issue related to our implementation of CAS but were able to resolve that, and 'voila' were able to get the sample RESTful service consumed by our application!!
    Now to the task of figuring out how to get Basic Auth working between client application and RESTful web service. If anyone has that working, let us know!!
    It would be helpful if in the documentation of the Apex 2.x listener or Apex install/configuration there was clear reference to the above steps required for HTTPS access to RESTful web services.
    Pat

  • Problem in Web Service from Application Service

    Hi All,
    In Netweaver CE I have created a CAF project and within the project I have used one WebService as external service. Now to access the web service I have created an application over on the extrenal service( Just right clicking on webservice -> default mapping). Then the application service is exposed as web service. At that time I have also created Web Service Destination and mapped (External service mapping) the external service with that specific destination. Now my task is to test the web service from netweaver WebService Nevigator. At the testing phase I am providing one input value and executing the WS but it is not accepting any input value. I have also done the debugging in backend system but in backend the input value is acception as zero. That means the web service is not accepting anu input value.
    Did anybody face the same problem for NetWeaver CE or any sugestion?
    Thanks
    Chandan

    Hi Chandan,
    You need to create a custom wrapper operation in the application service where the operation by default mapping gets created. From this custom operation you need to call the operation created by the default mapping. In the web service you need to expose the custom operation only.
    Thanks,
    Dipankar

  • Web services and Application Integration in Netweaver

    I want to create Web services in Netweaver.
    Just something simple to begin with. But I need to be able to:
    Create the service
    Call the service
    Register the service [UDDI], and
    Expose the service the service using WSDL.
    And explain the whole thing in my research paper.
    Does the SAP Web AS 6.40 tutorial cover all this??
    Maybe the following book would be more useful.
    What do you think??
    "Web Programming with the SAP Web Application Server"
    by Frederic Heinemann, Christian Rau
    (Hardcover - August 2003)
    I would also like to Integrate 2 applications with different databases, does the SAP Web AS 6.40 tutorial cover this as well??
    When will it be possible for a company to buy mySAP (NetWeaver 04)and be able to use Netweaver to create
    e.g. a Portal system?
    Thanks for your time.
    Regards
    Sean

    Sean,
    Certainly you can do this in NetWeaver. Here's where to start: http://help.sap.com/saphelp_nw04/helpdata/en/d6/f9bc3d52f39d33e10000000a11405a/content.htm
    Try out the SDN downloads of Dev Studio with Web AS and EP6 with WebAS. The portal lets you show off the services yuou build quite easily. Dev studio lets you build them.
    Nick

  • Cosuming web Services in Application services

    Hi All,
    I have created an application service.I want invoke a operation of a web service in this application service.Application service is expecting a complex data type.
    How can i invoke that method?.
    can you plz give me some sol?.
    Thanks
    Sampath.G

    Hello Sampath,
      I am assuming you are trying to create a CAF application service. This should be possible by simply importing the webservice and choosing the default mapping if you are using CE.
      If you are using 04s there is a how to guide on consuming webservices in CAF
    Regards
    Abdul

  • HOW TO: Connect web service (remote application module) to existing model

    Hello.
    I have J2EE application which displays some data in an applet, which reads them by a web service. I'd like to use persistence and connect with a web service called by applet to my current model set within a session. I tried to pass a session id to web service (to a function of an application module implementation). I wanted to create a new SessionCookie instance with such a session id and application id which are used for web application session (by ApplicationPoolImpl.createSessionCookie() or with custom session cookie factory). But I don't know how to pass a session and application ids to a sessioncookie creation process (ApplicationPool environment). I tried to use custom EnvInfoProvider, which set my properties, but it passes the params after a SessionCookie instance is created.
    Samples ... AppModuleServer - file generated to provide ws functionality. I changed code to use EnvInfoProvider:
    public class AppModuleServer extends Object{
      public AppModuleServer(){}
      public SomeObject[] myCustomFunction(String sessionId){
        AppModuleImpl _am = null;
        String appId="someValue";
        CustomEnvInfoProvider envProvider=new CustomEnvInfoProvider(appId, sessionId);
        try{
          _am=(AppModuleImpl)Configuration.createRootApplicationModule("data.AppModule", "AppModuleLocal", envProvider);
          return _am.myCustomFunction(sSessionId);
        finally{
          if (_am != null)Configuration.releaseRootApplicationModule(_am, false);
    }CustomEnvInfoProvider:
    public class CustomEnvInfoProvider implements EnvInfoProvider{
      private String applicationId;
      private String sessionId;
      public CustomEnvInfoProvider(String applicationId, String sessionId){
        this.applicationId=applicationId;
        this.sessionId=aessionId;
      public Object getInfo(String info, Object environment){
        if(info==null)return null;
        return ((Hashtable)environment).get(info);
      public void modifyInitialContext(Object environment){
        if(applicationId!=null)((Hashtable)environment).put("CookieApplicationId", applicationId);
        if(sessionId!=null)((Hashtable)environment).put("SessionId", sessionId);
      public int getNumOfRetries(){
        return 2;
    }Does anybody knows how to pass information from custom EnvInfoProvider just before a SessionCookie is created (e.g. how to run modifyInitialContext() function). Or another way how to pass these information from a web service base function into ApplicationPoolImpl instance. E.g., there is parameter "properties" whithin a createSessionCookie method of ApplicationPoolImpl, which is null during calling. Is it possible to pass there some additional information?
    Thanks for any suggestions.

    Use the Web Service Proxy wizard in JDeveloper to create a class that calls your Web service, and then call this class from code in your AM.
    http://docs.oracle.com/cd/E16340_01/web.1111/b31974/web_services.htm#CJAHGIEF

  • Publishing as web service an application that connects with Oracle 8i

    Hi.
    I have to execute a stored procedure in a 8i database (database migration or upgrade is not a possibiity). I have to incorporate this into an ADF 11g App and I've tried it making another project and using the 10g jdbc driver which allows me to execute that SP.
    When I execute SP call, everything is OK, but when I try to call from the main app, there are conflicts with 11g driver and execution fails, because, I think, in the classpath is first 11g driver reference and it uses this river class instead 10g drivers.
    Now I'm trying with a separate app which just call the SP. I put the same code, and again when I run it as standalone app everything is OK, but when I deploy it as a web service and run it from WS test it doesn't work and again results in the same error above.
    java.lang.ArrayIndexOutOfBoundsException: 7
    at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:989)
    at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:292)
    at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:
    508)
    at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:203)
    at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtensio
    n.java:33)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:510)
    at java.sql.DriverManager.getConnection(DriverManager.java:582)
    at java.sql.DriverManager.getConnection(DriverManager.java:185)
    at credito.wsutil.stage.SCL.execSpCartera(SCL.java:80)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at weblogic.wsee.jaxws.WLSInstanceResolver$WLSInvoker.invoke(WLSInstance
    Resolver.java:101)
    at weblogic.wsee.jaxws.WLSInstanceResolver$WLSInvoker.invoke(WLSInstance
    Resolver.java:83)
    at com.sun.xml.ws.server.InvokerTube$2.invoke(InvokerTube.java:152)
    at com.sun.xml.ws.server.sei.EndpointMethodHandler.invoke(EndpointMethod
    Handler.java:264)
    at com.sun.xml.ws.server.sei.SEIInvokerTube.processRequest(SEIInvokerTub
    e.java:93)
    at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:604)
    at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:563)
    at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:548)
    at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:445)
    at com.sun.xml.ws.server.WSEndpointImpl$2.process(WSEndpointImpl.java:24
    9)
    at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdap
    ter.java:453)
    at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:250
    at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAd
    apter.java:140)
    at weblogic.wsee.jaxws.HttpServletAdapter$AuthorizedInvoke.run(HttpServl
    etAdapter.java:298)
    at weblogic.wsee.jaxws.HttpServletAdapter.post(HttpServletAdapter.java:2
    11)
    at weblogic.wsee.jaxws.JAXWSServlet.doPost(JAXWSServlet.java:297)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    at weblogic.wsee.jaxws.JAXWSServlet.service(JAXWSServlet.java:87)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run
    (StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecuri
    tyHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
    a:292)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
    a:175)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
    n.run(WebAppServletContext.java:3590)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
    dSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
    121)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppS
    ervletContext.java:2200)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletC
    ontext.java:2106)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.j
    ava:1428)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Any suggestions or another way to accomplish this functionality?
    Regards,
    DEMR

    Hi,
    This was what I did when I was trying to run Hibernate on Weblogic, it was conflicting with different versions of antlr.* packages in Weblogic. Then I added these lines for making Weblogic to use Hibernate's antlr libs instead of installed on Weblogic.
    So, I thought that it might help to solve your problem if Oracle drivers conflict with drivers pre-installed in Weblogic.
    Also can you please try to add in your weblogic-application.xml, if it still does not solve your problem unfortunately I don't know any other way to solve your problem.
    <prefer-application-packages>
      <package-name>oracle.jdbc.*</package-name>
    </prefer-application-packages> Edited by: Onur Aktaş on 30.Eyl.2009 08:31

  • EJBs and web services  in Application server  ??

    Hi all,
    I just wanted to ask for a help in a scenario that i am facing:
    I have a Application that relies on EJBs for Business Logic
    I basically use the Jboss A/s[4.2.2 GA] server for the same and now there is a need to Expose these bean methods through a web service
    so that our web team can make use of the same Business logic.
    Currently i have implemented a End point interface that my Bean class implements so that i can expose
    my bean methods to the web team
    Req:
    I want to create a separate Enterprise Bean which resides in the same JVM as my Application bean , and acts as a wrapper for my application bean
    Also,
    Further elaboration of the problem is as follows:
    THE existing Application beans Remote interface has all the business methods that i want to expose.
    The new bean should act as a delegate which intercepts the web clients call extracts the request from the call
    and passes it to the application bean methods.
    So this basically requires that new bean should be able to communicate with my application bean +(Which is BTW a stateless session bean)+
    and pass on clients requests to the same.
    Kindly provide suggestion for the same or any ideas as soon as possible
    thanks again
    veneet
    Edited by: RainaV on 14 May, 2009 6:49 PM
    Edited by: RainaV on 14 May, 2009 6:57 PM

    Let me make it more clear for everyone
    Let [A] be my application bean which has all the business Logic.
    is a new wrapper bean that needs to communicate to bean [A] for accessing the Business Logic
    The requirement for creating Bean[B] is two folds
    1) it will provide a wrapper class for breaking down the web client requests,
    which are in  XML format;
    into simpler data structure which can be passed as parameters to bean [A}.
    2)This bean [B] will send the response back to the web client who is in need of the service
    Now as pointed out by one of the guys why not create a Local interface that is not possible at this point as Most of the session bean methods have been declared to throw
    Remote Exceptions and i am faced with the issue that this Design mistake is irreversible due to the Size of the Code and other factors
    Now i have been looking and some Alternatives for the same .
    The problem is i have not been able to find any way to do the same and need suggestions and ideas if anyone has some on this issue
    i hope this clears the matter
    thanks again
    veneet

  • How to do web services between applications

    I have tried to get a complete example about how to do a web service between two applications
    but I saw all the put examples that describe only how to do a web service and test it in the same application.
    Please, I want to see a whole example that shows a web service between two applications.

    Hello,
    Are you looking for any specific JHeadstart webservice functionality? If not, can you please ask this question at the JDeveloper forum of OTN?
    Thanks!
    Evert-Jan de Bruin
    JHeadstart Team

  • OIM to provision a web services based application , how ?

    Hi All,
    I want to provision to a system which is web services based. There is an ESB above that application which accepts requests for creating accounts etc.
    I was thinking I could use OIM GTC SPML connector to provision to this system.
    I spoke to the team which maintains ESB , and they were asking me whats SPML.so I figured customer's ESB may not support SPML requests.
    They have sonic ESB , I dont know much here , as I am new to web services.
    Here are my questions
    1.What do we expect of Target system if we plan on using OIM GTC SPML connector ?
    2.What is the solution for this situation.
    3.Would it be a good idea to build a custom connector
    Any help is appreciated.
    Thanks,
    Pandu

    Hi,
    I have been working recently with the SPML GTC. Here are a few pointers:
    i. OIM will invoke the target web-service synchronously i.e. it will wait for a response. So make sure the response is relatively quick.
    ii. SPML is just a message format with some security headers included; In your scenario, you can ignore most of this.
    iii. The tough part will possibly be the response back to OIM. This has to be in SPML or it will fail validation in OIM, therefore reflecting that the user provisioning failed(even if it did succeed in the target system)
    iv. The target system, needs to send back to OIM an ID, psoID, which is what OIM will use to associate the user identity with the target resource. For eg., supposing you send a modifyRequest for an user existing on the target system, OIM will just send a message similar to
    <modifyRequest psoID=TargetSystemUserID>
    <firstname>NewFirstName</firstname>
    </modifyrequest>
    so, the point being: be careful what you send back in the response. (In our case we sent back the emailID as the psoID, as it was the key for our application)
    v. And Finally, there are some issues we faced with the GTC itself, and have recently filed a bug. This might not be a problem in your case. However, stay warned: the GTC may not be ready for Production yet.
    Will be glad to help you further, let me know.
    AJ

  • Web services (sample application)

    Hello,
    we're trying to get the sample applications (including web services) working (using HTML DB 1.6.0.00.87).
    First, we encountered "ORA-20001: The webservice was unreachable because either the URL you supplied was invalid, or your environment requires a valid proxy server address for HTTP requests.". After entering our proxy server's address, a new error occurs:
    "ORA-31011: XML parsing failed ORA-19202: Error occurred in XML processing LPX-00104: Warning: element "HTML" is not declared in the DTD Error at line 2"
    Same thing happens when trying to create a new web service reference based on the tutorial provided by Oracle: http://www.oracle.com/global/de/community/tipps/WebServices/index.html
    Any ideas where our mistake lies?
    Thanks in advance for your help!

    I've run into the same issue. I thought it was because I was using version 1.6, so I upgraded to HTML DB 2.0 today (I am running 10.2 locally). However, I am getting the same error:
    ORA-31011: XML parsing failed ORA-19202: Error occurred in XML processing LPX-00104: Warning: element "html" is not declared in the DTD Error at line 2
    This happens when I select the IBM UDDI from the list and search for %xMethods% as indicated in the 2-Day Developers Guide.
    I get the same error when selecting the Oracle UDDI.
    The XMethods UDDI goes out and searches for something, but 30 minute waits have not resulted in any return, although I have gotten "no matches found" in the past. The IBM UDDI has resulted in the same error.
    I've check my proxy settings (don't have any) and tried in both IE 6 and Firefox 1.5.
    When I pull the search string down to "%", then every UDDI registry search goes off and spins. In the past, I got a huge number of matches from XMethods, but couldn't start paging through for the "xMethod Delayed Stock Quotes" example in the tutorial.
    I would appreciate any enlightment anyone can shed on what's happening under the covers.
    Many thanks,
    Petie

  • OIM 11g to provision a web services based application , how ?

    Hi All,
    I'm trying to provision using GTC connector in OIM but the problem is i know how to write a webservice but i'm newbie to OIM 11g so i am not able to integrate my webservice to the OIM GTC connector.
    Highly appreciate if any one give me the background or steps to follow how to execute the provisioning using custom web service in OIM 11g.
    Thanks

    Hi,
    -Just trying to help-
    Based on OIM 11G requirements:
    If your target system is a Web service that can accept and parse SPML-based provisioning requests packaged in SOAP messages, you can use the SPML provisioning format provider and Web Services provisioning transport provider.
    You need not create custom provisioning providers.
    1-SPML provisioning format provider
    TargetOperation value object that is created by the SPML provisioning format provider and used as an input for the Web Services provisioning transport provider:
    com.thortech.xl.gc.impl.prov.WSTransportTargetOperation
    2-15.4 Web Services Provisioning Transport Provider
    http://download.oracle.com/docs/cd/E14571_01/doc.1111/e14309/prdfnd_prov.htm#CHDJBFAI
    I hope this helps,
    Thiago Leoncio Guimaraes

Maybe you are looking for