HOw to consume/configure a third party web service from webDynpro

Hi
I have create a Adaptive webservice model .
1. selected the UDDI or URL option after decalring the model name and package.
2. Default metadata destination = ImgGen
3. Definig execution destination = Exec.
4. Entered the WSDL url  AND GENERATED THE WEB SERVICES SUCCESSFULLY.( HTTP://(SERVERNAme):port/WSName/some.asmx?WSDL )
I HAVE DEFINED dYNAMIC PROXY USING vISUAL ADMIN.
Visual admin >> Web services security >> Runtime >> security configuration >> Webservice clients >> sap.com >> DynamicWSProxies >>
Gave destination Name same as default metadata and created one more for execution( step 2 aND 3) AND url =(HTTP://(SERVERNAme):port/WSName/some.asmx)
restarted thre server.
When I try to consume the webservices
I am getting the following error.
  java.io.IOException: com.sap.engine.lib.xml.util.NestedException: Parser exception occurred:Fatal Error: com.sap.engine.lib.xml.parser.ParserException: Document is not well-formed: Start-tag 'p' is different from end-tag 'ul'(:main:, row:61, col:19) -> com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: Document is not well-formed: Start-tag 'p' is different from end-tag 'ul'(:main:, row:61, col:19)(:main:, row=61, col=19) -> com.sap.engine.lib.xml.parser.ParserException: Document is not well-formed: Start-tag 'p' is different from end-tag 'ul'(:main:, row:61, col:19)
com.sap.tc.webdynpro.model.webservice.exception.WSModelRuntimeException: Exception on creation of service metadata for WS metadata destination 'ImgGen' and WS interface 'WSImgGenerationSoap'. One possible reason is that the metadata destination 'ImgGen' has not been properly configured; check configuration.
     at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.getOrCreateWsrService(WSModelInfo.java:440)
     at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.readOperationsFromWSDL(WSModelInfo.java:372)
     at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.importMetadataInternal(WSModelInfo.java:342)
     at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.importMetadata(WSModelInfo.java:326)
     at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo$Cache.getModelInfo(WSModelInfo.java:199)
     at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.getModelInfoFromCacheOrCreate(WSModelInfo.java:1035)
     at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.getModelInfoFromCacheOrCreate(WSModelInfo.java:248)
     at com.sap.tc.webdynpro.model.webservice.gci.WSTypedModel.<init>(WSTypedModel.java:41)
     at com.pk.ws.model.ImgGen.<init>(ImgGen.java:59)
     at com.pk.ws.WdImgGenWS.genImage(WdImgGenWS.java:208)
     at com.pk.ws.wdp.InternalWdImgGenWS.genImage(InternalWdImgGenWS.java:288)
     at com.pk.ws.WdImgGenWSView.onActionGenImage(WdImgGenWSView.java:143)
     at com.pk.ws.wdp.InternalWdImgGenWSView.wdInvokeEventHandler(InternalWdImgGenWSView.java:156)
     at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
     at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67)
     at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doHandleActionEvent(WindowPhaseModel.java:420)
     at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:132)
     at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
     at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
     at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:321)
     at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:713)
     at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:666)
     at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
     at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
     at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
     at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
     at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
     at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
     at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
     at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
     at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
     at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
     at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
     at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
     at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
     at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
     at java.security.AccessController.doPrivileged(Native Method)
     at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
     at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
Caused by: java.io.IOException: com.sap.engine.lib.xml.util.NestedException: Parser exception occurred:Fatal Error: com.sap.engine.lib.xml.parser.ParserException: Document is not well-formed: Start-tag 'p' is different from end-tag 'ul'(:main:, row:61, col:19) -> com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: Document is not well-formed: Start-tag 'p' is different from end-tag 'ul'(:main:, row:61, col:19)(:main:, row=61, col=19) -> com.sap.engine.lib.xml.parser.ParserException: Document is not well-formed: Start-tag 'p' is different from end-tag 'ul'(:main:, row:61, col:19)
     at com.sap.engine.services.webservices.espbase.query.WSDLReader.checkForException(WSDLReader.java:100)
     at com.sap.engine.services.webservices.espbase.query.WSQueryImpl.initialize(WSQueryImpl.java:312)
     at com.sap.engine.services.webservices.espbase.query.WSQueryImpl.findWSInterfaces(WSQueryImpl.java:151)
     at com.sap.engine.services.webservices.server.management.discovery.ServiceDiscoveryImpl.getWSDLUrl(ServiceDiscoveryImpl.java:71)
     at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.createService(GenericServiceFactory.java:128)
     at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.getOrCreateWsrService(WSModelInfo.java:429)
     ... 41 more
Any hint or solution is highly appreciated.
thanks
pk
Edited by: Prashanth Kiran on Jul 22, 2009 10:11 PM
Edited by: Prashanth Kiran on Jul 22, 2009 10:14 PM

Thanks Siva,
My version
Version: 7.0.09
Build id: 200608262203
I need to push my webdynpro application into QA system. so third party webservices also move to it's own QA system.
Now Once I need to move my code to QA the webservice should point to third party webservice's QA system.
This is the reason I am defining them in the Visual admin.
This works fine when I use without using default destiation metadata and  execution .
Since I need to move them to QA and at the same time webservice host is also moving to its QA server, I need to change the reference so that my webdynro model points to the QA server where the webservice is pointing.
Please note WebAS QA server where my webdynpro for java program is depoloyed and the WEbservice is hosted in a different server and is a non SAP webservice.
regards
PK

Similar Messages

  • Configuring PI SSL for communicating with third-party web services

    Hi,
    I'm trying to load a COMODO certificate into a J2EE environment running in NetWeaver 7 (no enhancement packs), in order to connect to an external web service using SSL
    I have been looking at this reference:
    http://help.sap.com/saphelp_nw70/helpdata/en/a0/a5d13f83a14d21e10000000a1550b0/frameset.htm
    and in this document (and many others i've read) it talks about requiring a server key pair to support SSL.
    http://help.sap.com/saphelp_nw70/helpdata/en/f1/2de3be0382df45a398d3f9fb86a36a/frameset.htm
    My question is - is there a way to use the self-signed root CA certificates instead of having to generate CSRs and sign certs?  I ask this because it seems completely impractical to have to generate key pairs for each SAP installation that is required to access a third-party web service.
    Furthermore, the SSL connection may only be for the web service and I'd rather not have to ask that the entire J2EE server is switched to SSL in order to make this secure connection. I've recently discovered the AXIS framework for the SOAP adaptor however I'm not familiar with it and can't identify whether you could use this for the SSL handshake and avoid having to a) generate certificate key pairs and b) switch your J2EE server to SSL
    Does anyone have experience connecting to a third-party service using VeriSign, COMODO or Thawte certificates and can clear this up for me?
    Regards,
    John

    Did you resolve your issue?
    I´m posting some comments that maybe can help newer administrators facing similar doubts.
    I´m using NW PI 7.1 EHP1 also and some interfaces were developed for using an external site providing web services through SSL (HTTPS) connection.
    As in browser navigation, secure sites protected with SSL has a certificate emited by a international CA. We didn´t perceive the "handshake" in the most of cases because normally the web browser has a group of trusted CAs loaded on its certificate store.
    With SAP PI and its WAS Java a similar procedure occurs with a small difference. The WAS Java didn´t have the trusted CAs loaded on KeyStorage. So, when the adapter tries to establishing a connection with an HTTPS site (it is a background process)  a "handshake" is required to accepting the certificate and produces a error.
    We completes the handshake importing the entire certificate chain (you can upload the site´s certificate to your browser and export it as file) on Keytore under the Trusted CAs view.
    Hope this can help someone. It´s an "easy" part of SSL communication.
    Now I´m trying to configure the inverse: Some third party consuming the PI web services using SSL. I have an additional component on inbound/ incoming connections that is the SAP Web Dispatcher.
    The Help.sap.com is the reference but as always its a little difficult to find the (sequential) path following the links (go ahead, go ahead, go ahead, go back, go back, go ahead)...
    Regards,
    Rodrigo Aoki

  • How can I configure a third party VME board with A24 address space using a VME-MXI-2?

    Hi!
    We are trying to establish communications to a Galil Motion controller with a VME interface. Galil states that they are using a A24 address scheme with A16 data space for their board.
    I am confused how to configure that board in the VME chassis properly.
    The base address provided by Galil is 91Fxxx, I am assuming that the lower three nibbles are the registers that I can talk to?!
    How do I set the address range under the resource setting for that board?
    Also, I noticed in MAX that one board shows up with a slot number unknown, one with slot #0 and this board I have set to slot #1. I assume that the unknown part is for the PCI card that makes up for the 1/2 of the PCI to VME bridge?
    The VISA VIs (Register based access) returns either a bus error, an invalid offset specified or data. However, we are completely in the dark when it does return data, since the expected offset we are typing in causes one of the two errors.
    Our assumption of the problem is that we do not understand how to properly configure that third party board as a resource. It has also happened that the resource manager is hanging up the PC completely. Not even CTRL-ALT-DEL works and the MXI activity LED on the NI-VME-MXI-2 board stays on during the hand up.
    We would appreciate, if somebody could walk us through the configuration process, step-by-step. Specifically, please explain how to setup the base address and how the offsets relate to this on a A24 address scheme. We are completely new to the VME bus interface, so even trivial things may be unkown to us.
    We have browsed NI's page and manuals for explanations, however, we could not find any answers to our questions.
    We noticed a formula for an A16 board that takes the base address and adds the logical address to it plus 40hex. Do we have to do the same or something similar to the A24 board????
    We also came accross an option that would allow the board (NI VME controller) to share its memory with A24 or A32 space? Do we need to enable that? What is the purpose for that?
    Best,
    Markus Tarin
    www.movimed.com - Custom Imaging Solutions
    www.movitherm.com - Advanced Thermography Solutions

    When I did not get a response here, I had to open a ticket with support.  The short answer is that you cannot customize the SAML response when using Azure AD as an IdP.
    Response from support:
    I discussed the issue with senior engineers to get action plan for this issue. After doing research Senior engineers updated me that we cannot add a custom attribute to the default
    SAML response of Azure AD.
    Below is the link to get the list of available attributes
    https://msdn.microsoft.com/en-us/library/azure/dn195587.aspx
    As default SAML response from Azure AD , we have email address of the user sent out as attribute value for the Attribute " NAME ".
    They suggested me to configure the application we are trying to integrate with Azure AD in such a way that it transforms the Attribute  " NAME " into " EMAIL
    This was not particularly helpful in my case as I did not have any control over the 3rd party which specifically documented that they would not extract the email address from the name attribute.
    Cheers,
    Jeff

  • SOA Suite 11g calling external third party web service

    Hi All,
    Our SOA 11g application needs to communicate with an external third party web service (outside SOA composite and our 11g environment). Basically our SOA application will make a request based on date and the external web service will return a collection of data for that date.
    Please suggest how do I achieve this. What inputs will I need from the external third party. I am using SOA 11.1.1.4
    Thanks
    Edited by: user5108636 on 10/05/2011 19:11

    You will need the WSDL of the third party web service to be able to consume it. Based on the wsdl you can generate the request structure then invoke the service.
    Also do check with them if there is security associated with the webservice like HTTPS, any soap header that need to be passed, etc ....
    Based on this you will need additional configuration on your side.
    Thanks,
    Patrick

  • Call 3rd party web service from OAS J2ee application.

    Hi everyone,
    I have the following problem. I am using Oracle Application Server 10g (version 10.1.2.0.2).
    I have deployed a J2EE web service to this App Server and from within this service I call a 3rd party Web Service (.NET) to a remote system. It works fine.
    However when the remote server for some reason restarts my web service noway can find the remote web service. I get a connection timeout exception to my logs.
    With a standalone client that I have to the same machine where the Oracle Application Server is installed I can call directly the 3rd party web service with no problems at any time so I am sure that there is no connection problem.
    If I restart the Oracle Application server then the J2EE web service finds the remote web service again.
    This means that whenever the remote server falls and recovers I will need to restart my Oracle Application Server as well, to let my web service find the remote web service. Crazy isn't it?
    Does anyone knows what happens??
    Thanks

    All depends on the service. You can not just access a service. You need things like if the data is JSONP or if they have instructions or keys etc. You need to just follow the instructions the service will offer on how to connect to it.

  • How to pass username/password to BPEL web service from java proxy?

    Hi all,
    Environment : SOA Suite 11g
    I am using basic http authentication in my SOA services using "oracle/wss_http_token_client_policy" policy. Now i need to invoke these SOA web services from a java proxy.
    Please let me know how this can be done.
    Thanks in advance

    Have you tried the below posts ?
    BPEL to invoke Webservice secured with HTTP Basic authentication
    Invoke a BPEL process using HTTP Basic Authentication
    http://docs.oracle.com/cd/E21764_01/web.1111/e13713/owsm_appendix.htm#CHDBAHBI
    Thanks,
    Vijay

  • How to compile and deploy JAX-WS web service from commandline (!) ?

    I have read a couple of tutorials about how to create and deploy web services with
    certain IDEs (e.g. Eclipse).
    But I found no guide on how to compile a java web service source from command line !!
    Lets say I have a java source class with annotations inside (like "@WebMethod").
    How do I generate with the built-in j2ee v5 tools from a web service from command line and deploy it e.g. to TomCat or JBoss ?
    Is there somewhere such a simple step-by-step intro?
    Thx
    Peter

    You can download JWSDP 2.0 from sun and install it. Under jaxws (the installed directory) you can find sample directory which has build.xml can be run from command prompt using ant. if you want in detail means go through the build.xml and use wsgen.bat or wsimport under the bin directory of jaxws
    Edited by: Muyallu_Bala on Apr 14, 2008 5:49 AM

  • Connection refused While Calling a Web Service from WebDynpro Application.

    Hi all,
    I've created a Webdynpro application by importing a WSDL file which is created from a
    Web Service from XI.
    While I run this Application, and while it tries to connect to XI, I am getting following
    error.
    <b>Service call exception; nested exception is: java.net.ConnectException: Connection refused</b>
    Can Someone please help me out on this issue?
    Thanks in advance,
    Tejas.

    Hi,
    In my WebDynpro Application which is created by Importing a WSDL file from XI Web
    Service is giving error : <b>Service call exception; nested exception is: java.net.ConnectException: Connection </b>
    In NWDS-> Windows Menu-> Preferances -> Wrokbench -> Proxy Settings
    Use Proxy Settings is <b>Checked</b>.
    My Settings in Model's Logical Port is
    <b>Use HTTP Port</b> is <b>Checked</b>.
    In Securities-> <b>Authentication</b> is set to '<b>None</b>'
    With this While I Execute the Application and when it tries to connect to XI..it throws
    an error :
    Service call exception; nested exception is: java.net.ConnectException: Connection
    refused
    Kindly help me on this issue.
    Thanks in advance,
    Tejas.

  • Re: Built-In Web Server Configuration vs Third-Party Web Server?

    Hi Guys,
    I am new to Coldfusion and I plan on setting it up within a Windows based environment for development purposes, I will eventually upload my files to a shared hosting service..
    Could I get a pros vs cons comparison of configuring Coldfusion using the Built-In Web Server vs a Third-Party Webserver such as Apache?
    My initial feeling is if I could keep the installation simple by using the self contained Built-In Web Server then why wouldn't I do that?  I'm guessing there must be more to it.  Please explain!
    Thanks in advance!

    The built-in web server is sufficient for local CF development. It's what I use nowadays.
    If you have web server-specific implementation details as part of your application, like URL rewriting, you'll want to use whatever web server will be used in production.
    Dave Watts, CTO, Fig Leaf Software
    http://www.figleaf.com/
    http://training.figleaf.com/

  • Consuming third party web service in CE7.1.

    Hi Experts,
    I want to consume a third party webservice in NWDS 7.1. I have wsdl URL. Please help me by stating steps what all i need to do. Is there any doc/blog in place? While searching I came across a blog Link: [https://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/50d70a19-45a3-2b10-bba0-807d819daf46&overridelayout=true] but when i followed the stes, using wsd,l I am getting error right on first step. Also I tried creating a model directly using URL but I am getting an error "Unable to import the model". Do I need to create proxy class for it?
    Thanks and Regards
    Pranav

    Hi Pranav,
    if you get trouble importing a WS model via WSDL-URL, it often has one of the following reasons:
    1. Eclipse does not have access to the URL. Easily happens within network environments. try ping <URL> from cmd to check if the wsdl is reachable. Workaround: download the wsdl and import from file
    2. At least with 7.0 importing the wsdl started a new process in the background. If your user rights are insufficent, this may fail. Try importing with local admin rights.
    Either way, you should have a log in c:temp.
    check it out
    hop that helps
    jan

  • How to call third party validation service from self service page

    Anyone can help me out on what needs to be done to call third party address validation service when button "Next" Personal Information page of Employee Self Service is clicked.
    1. Writing Custom XXXAddressUpdateCO by extending AddressUpdateCO. XXXAddressUpdateCO's processFormRequest will validate the address using the third part service. This third party address validation service is in the DB where Oracle Apps is there.
    To use this service from the controller, how can I set the new application module XXXAdressUpdateAMImpl where I will make call to this service and return the result yo Custom controller class.
    Any suggestions?

    If your page does not have LOVs, then you can extend and substitute the AM. Thereafter include the code to invoke the third party validation from the AM.
    Otherwise you may need to write the invoking code in the Controller itself.
    Hope you got some clues. Let me know if you need more information.
    Thanks
    Sumit

  • Can I use third party web services that communicate via http-post with webui builder?

    Hi, 
    I have 5 computers (services) that are controlled via http-post. 3 of these services are implemented as labview webservices, 1 is labview socket (with python http-wrapper) and the last one is implemented with c# (lighttpd + cgi). 
    Can I use webui builder to controll all of them? Or, what is the simplest change so I can use webui builder?
    What I would like to do, is to change the current javascript-UI to labview-webui. For the interfaces implemented with labview webservices, this is not a problem. For non-labview services, I don't know if it is even possible.
    br,
    Juha

    To add to Mike's answer, the only caveat is that the server needs an appropriate clientaccesspolicy.xml file at the root level (http://yourserver/clientaccesspolicy.xml), or a completely open crossdomain.xml file, for the editor and built apps to be able to communicate with it. There's a help topic which explains this in the context of LV web services, but it's true for Web UI Builder to be able to communicate with arbitrary web servers also.
    Since it sounds like you control all the web servers in question, it shouldn't be too difficult to get this file in place, though.

  • How to embed user credentials in Secured Web Service from OBIEE 11gFMW?

    I am trying to invoke a webservice that I successfully exposed as a WSDL Web Service using EBS Integrated SOA Gateway. I am using OBIEE 11g Action Framework which uses WebLogic.
    Here are the steps I completed:
    - I exposed a WSDL web service in EBS R12 via Integrated SOA Gateway
    - I granted the access to this service in EBS R12 to user SYSADMIN
    - I used OBIEE 11g to make a Action to call the Web service (using Action Framework) by searching for the WSDL
    - When I try to execute the action: I get the error:
    Action could not be invoked.
    ServiceExecutionFailure :
    Error invoking web service HR_PHONE_API_Service at endpoint http://ip-10-87-33-3.ec2.internal:8000/webservices/SOAProvider/plsql/hr_phone_api/ Missing <wsse:Security> in SOAP Header
    PROBLEM: I am unsure how to add the credentials for SYSADMIN user and password to add the SOAP username/pwd to the outgoing call. According to the documentation in the Integrators guide, FMW Security guide, and Web Logic guides..seems we have to configure the SOAP call to have the proper credentials. The documentation is not very clear on exactly how to do this. I tried to set up the credential store and an account in ActionFrameWorkConfig.xml but I am still missing something. I am logged into OBIEE as biadmin and I am trying to call a webservie in EBS that is granted to SYSADMIN/sysadmin user. Pls advise.

    I am trying to invoke a webservice that I successfully exposed as a WSDL Web Service using EBS Integrated SOA Gateway. I am using OBIEE 11g Action Framework which uses WebLogic.
    Here are the steps I completed:
    - I exposed a WSDL web service in EBS R12 via Integrated SOA Gateway
    - I granted the access to this service in EBS R12 to user SYSADMIN
    - I used OBIEE 11g to make a Action to call the Web service (using Action Framework) by searching for the WSDL
    - When I try to execute the action: I get the error:
    Action could not be invoked.
    ServiceExecutionFailure :
    Error invoking web service HR_PHONE_API_Service at endpoint http://ip-10-87-33-3.ec2.internal:8000/webservices/SOAProvider/plsql/hr_phone_api/ Missing <wsse:Security> in SOAP Header
    PROBLEM: I am unsure how to add the credentials for SYSADMIN user and password to add the SOAP username/pwd to the outgoing call. According to the documentation in the Integrators guide, FMW Security guide, and Web Logic guides..seems we have to configure the SOAP call to have the proper credentials. The documentation is not very clear on exactly how to do this. I tried to set up the credential store and an account in ActionFrameWorkConfig.xml but I am still missing something. I am logged into OBIEE as biadmin and I am trying to call a webservie in EBS that is granted to SYSADMIN/sysadmin user. Pls advise.

  • Calling abap web service from webdynpro

    hi,
    i have a problem in that i am trying to call an ABAP web service published from r/3 in webdynpro. when i browse to the url generated by the r/3 application server it asks for my r/3 user name and password (not to be confused with http proxy user name and password). now when i enter it, i can see the generated wsdl without a problem. pressing escape gives me the standard 401 error.
    please note this is the r/3 username and password which i am required to enter. when i try to get to the webservice in webdynpro. here is my code:
      public void wdDoInit()
        //@@begin wdDoInit()
        try
              Request_YYMJ_WS_TEST1_DEF1_yymjServiceWebTest1 reekvesta = new Request_YYMJ_WS_TEST1_DEF1_yymjServiceWebTest1();
              reekvesta._setPassword("userid");
              reekvesta._setUser("password");
              wdContext.nodeRequest_YYMJ_WS_TEST1_DEF1_yymjServiceWebTest1().bind(reekvesta);
              wdContext.currentRequest_YYMJ_WS_TEST1_DEF1_yymjServiceWebTest1Element().setWfKunnr("0000000011");
              wdContext.currentRequest_YYMJ_WS_TEST1_DEF1_yymjServiceWebTest1Element().modelObject().execute();
              wdContext.nodeResponse().invalidate();
        catch(Exception e)
              IWDMessageManager msgMrg = wdThis.wdGetAPI().getComponent().getMessageManager();
              String msg = e.getLocalizedMessage();
              if ((msg==null) || (msg.length()==0))
                   msg = e.getMessage();
              msgMrg.reportException(msg,true);         
        //@@end
    i have also tried it this way:
      public void wdDoInit()
        //@@begin wdDoInit()
        try
              Request_YYMJ_WS_TEST1_DEF1_yymjServiceWebTest1 reekvesta = new Request_YYMJ_WS_TEST1_DEF1_yymjServiceWebTest1();
    wdContext.nodeRequest_YYMJ_WS_TEST1_DEF1_yymjServiceWebTest1().bind(reekvesta);     wdContext.currentRequest_YYMJ_WS_TEST1_DEF1_yymjServiceWebTest1Element().modelObject()._setUser("userid");     wdContext.currentRequest_YYMJ_WS_TEST1_DEF1_yymjServiceWebTest1Element().modelObject()._setPassword("password");
    wdContext.currentRequest_YYMJ_WS_TEST1_DEF1_yymjServiceWebTest1Element().setWfKunnr("0000000011");
    wdContext.currentRequest_YYMJ_WS_TEST1_DEF1_yymjServiceWebTest1Element().modelObject().execute();
              wdContext.nodeResponse().invalidate();
        catch(Exception e)
              IWDMessageManager msgMrg = wdThis.wdGetAPI().getComponent().getMessageManager();
              String msg = e.getLocalizedMessage();
              if ((msg==null) || (msg.length()==0))
                   msg = e.getMessage();
              msgMrg.reportException(msg,true);         
        //@@end
    in both instances i get the error:
    Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (407) Proxy authorization required
    please note
    1. i am trying to test this on my local sap j2ee server, on my workstation. i am not deploying this as of yet to the portal.
    2. i do have access to r/3.
    3. the r/3 application server is in our corporate intranet, and therefore excluded from being looked up by our proxy.
    4. our proxy DOES require a username and password. i added my user name and password to the webservice container section of the visual administrator, and excluded the r/3 server from the proxy list.
    what am i missing?

    Zafar,
    Check the endpoint in generated WSDL. Probably there is a host name that is not in "exclude list" for proxy settings (like IP vs host name, or FQDN vs short host name).
    Valery Silaev
    SaM Solutions
    http://www.sam-solutions.net

  • How do you add a third party web text editor to Muse?

    I'm recreating a site and I need a way to store publications on one of the pages of the site. It's something that is updated weekly so I need it to have an archive feature but I really no idea how this can be done. Here's an example:
    I downloaded this thing called CKEditor but have no clue how to use it... Any help would be great.

    Hi Ethan,
    As you can see from my Word document, I am a little light on the proper terminology.  That's because LVLM comes with inadequate documentation.
    I have already followed your recommended protocol for installing a 3rd party sensor (in fact, its the protocol recommended by Mindsensors) with the application set in the Remote Mode (.lvrbt), and it does create a sub-palette with all the Mindsensors functions on it.  But when I drag the Mindsensors icon to the Block Diagram and select "Distance Sensor," the Distance Sensor (an IR sensor) doesn't work (even though the Mindsensor's Distance Sensor does work with NXT-G, RobotC and LVLM under other circumstances (see below)).
    If I repeat the above process with the application set in the Direct Mode (.vi), I also get the sub-palette with all the Mindsensors functions on it.  When I drag the Mindsensors icon to the Block Diagram and select "Distance Sensor," the Distance Sensor does work.
    What I need for my mapping application is for the Distance Sensor to work in the Remote Mode.  I called NI tech support and the first engineer told me to simple drag the Mindsensors Functions (.vi) onto the Block Diagram.  I did this, but when I selected the Distance Sensor, the icon appeared, but the sensor did not work.  Since I have no idea what's under the hood of the vi or a function, I assumed that simply dragging the vi/function onto the desktop didn't install the vi/function properly.  I went back to the Applications Engineer, and he confessed that he did not understand the LVLM product.
    My frustration is being punted to new people, none of whom so far (other than you, of course) understand LVLM.

Maybe you are looking for

  • ITunes won't download to my computer

    ITunes was working fine until I tried to update to the latest version. When I did, things went wrong. I tried to reinstall but it would not work. I then tried to delete ITunes and even did a System Restore. Still no luck. When I try to run ITunes, a

  • 3D Surface Plot Cursor Error

    I can't seem to get the cursor(s) to function on the 3D Surface Plot. I right-click on the front panel plot, go to properties, and select cursor - but then I get an error and LabVIEW crashes. Has anybody had any sucess with this? I've tried it in bot

  • Exporting Cross Tabs to Excel - Data Only

    I have a report with three cross tabs embedded in three report footers (RFa, RFb, RFc).  The third cross tab in RFc, is actually in a subreport.  When I preview the report and then export to excel in Excel Data Only there is no problem.  Howeever, wh

  • Flash CS4 Library Question

    Hello, Is there a way to know how many times a library item is being used in your Flash file? Thanks! Erin S.

  • What is the best way to resize a clip

    What is the best way to resize a clip? I have some clips in 1280x720p and a B camera shot of the same person that was shot at 1440x1080p and I want to multi-edit them so they need to be the same size. Is there a way inside FCP to re-interpret the 144