Deployable proxy lookup problem

Hello SAP Community, here is my issue:
I need to access a web service in my web dynpro application, so I generated a deployable proxy from the wsdl file and deployed it to the server. I added the proxy's ClientAPI.jar to my web dynpro build path and tried to get its interface via jndi lookup, but I get a ClassCastException.
The problem here is that when I look for my proxy in Visual Administrator's JNDI Registry, the class name is different from the one in Client API, as follows:
JNDI Registry: ConsultaPadronServiceImpl
Client API: ConsultaPadronService
Debugging the code I can see that I get ConsultaPadronServiceImpl in my lookup, but when I try to do the casting to ConsultaPadronService I get the exception.
Here is my code:
try{
          InitialContext ctx = new InitialContext();
          Object obj = ctx.lookup("wsclients/proxies/sap.com/FonhapoWS/mx.gob.conavi.sap.ws.fonhapo.FonhapoProxy");
          ConsultaPadronService ser = (ConsultaPadronService)PortableRemoteObject.narrow(obj, ConsultaPadronService.class);
          port = (WsConsultaPadron)ser.getLogicalPort("WsConsultaPadronSoapHttpPort");
     }catch (Exception ex){
          IWDMessageManager msgMgr = wdComponentAPI.getMessageManager();
          msgMgr.reportException(ex.getMessage(), true);
I really hope someone can help me out with this, I have already added the sharing reference to the proxy in my Web Dynpro project like <provider>/<EAR name> and still not working.
Regards.

Same issue here. did you resolve it?

Similar Messages

  • Problem in JNDI Lookup of Deployable Proxy inside logon.par

    Hi,
    I have customized the Logon par file and have a functionality to call a webservice when the Password Reset happens.
    <b>from the ResetPassword.jsp , SAPMLogonLogic.java is getting called ,and there is a method called performResetPassword().</b>
    I am calling a Deployable Proxy in that method by using the below code,
    <b>Gateway objGateway=(SMSGateway)ctx.lookup("java:comp/env/MailProxy");
    MailGatewayViDocument objSMSGatewayViDocument=(MailGatewayViDocument )objGateway.getLogicalPort("wsPort_Document",MailGatewayViDocument.class);</b>
    objMailGatewayViDocument.sendMail(...);
    I am getting the Exception,
    <b>com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Path to object does not exist at java:comp, the whole lookup name is java:comp/env/MailProxy.</b>
    I have deployed the Deployable Proxy in the J2EE Engine and add this API Jar as the External Library (Project >Properties>Java Build Path ---> Add External jars...Added the .jar file generated in the Proxy Project).
    Please let me know the possible solutions where i can call a deployable proxy inside the logon par file.
    Thanks and Regards,
    Sekar

    Hi Sekar!
      Try this:
    MailGateway objMailGateway=(MailGateway)ctx.lookup
    ("wsclients/proxies/sap.com/MailProxy/com.ms.sap.sms.MailProxy/wsPort_Document");
      I have understood you're deploying a par file... if you are doing this way, don't forget to put a reference to the webservice in portalApp.xml:
      <property name="PrivateSharingReference" value="SAPJ2EE::sap.com/com.ms.sap.sms.MailProxy"/>
      Hope this can work.
      Are you sure this destination is the one you are looking for?
    sap.com/CHEPSMSProxy/com.ms.sap.sms.SMSProxy/wsPort_Document
      It seems to be anther app. If this is the correct app then the JNDI should be:
       MailGateway objMailGateway=(MailGateway)ctx.lookup
    ("wsclients/proxies/sap.com/CHEPSMSProxy/com.ms.sap.sms.SMSProxy/wsPort_Document");
      If this fails and if you have have source code of the proxy app, check out the application.xml file, and look for Display name. Also look for the application-j2ee-engine.xml file, and look for the 'Vendor name', and post them please.
      Eneko
    Message was edited by:
            Eneko Rodriguez

  • Problem in JNDI Lookup of Deployable Proxy from the logon par file

    Hi,
    I have customized the Logon par file and have a functionality to call a webservice when the Password Reset happens.
    <b>from the ResetPassword.jsp , SAPMLogonLogic.java is getting called ,and  there is a method called performResetPassword().</b>
    I am calling a Deployable Proxy in that method by using the below code,
    <b>Gateway objGateway=(SMSGateway)ctx.lookup("java:comp/env/MailProxy");                    
    MailGatewayViDocument objSMSGatewayViDocument=(MailGatewayViDocument )objGateway.getLogicalPort("wsPort_Document",MailGatewayViDocument.class);
    objMailGatewayViDocument.sendMail(...);</b>
    I am getting the Exception,
    <b>com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Path to object does not exist at java:comp, the whole lookup name is java:comp/env/MailProxy.</b>
    I have deployed the Deployable Proxy in the J2EE Engine and add this API Jar as the External Library (Project >Properties>Java Build Path ---> Add External jars...Added the .jar file generated in the Proxy Project).
    <b>Please let me know the possible solutions where i can call a deployable proxy inside the logon par file</b>.
    Thanks and Regards,
    Sekar

    Hi,
    I have fixed this error by changing the lookup as follows.
    InitialContext ctx=new InitialContext();
    Gateway objGateway=(Gateway)ctx.lookup("wsclients/proxies/sap.com/GatewayProxy/com.ms.sap..GatewayProxy");
    Just open Visual Administrator and look for the path under wsclients for proper naming.
    Thanks and Regards,
    Sekar
    Edited by: Sekar M on Jan 16, 2008 6:10 PM

  • Jndi lookup of deployable proxy

    Hey All,
    i try to call webservice via a deployable proxy.
    when looking it up i get a naming exception.
    i set up a jndi mapping in the client bean's ejb-j2ee-engine.xml, which reads as follows:
    <server-component-ref>
         <description>
         </description>
         <name>WeatherServiceProxy</name>
         <type>interface</type>
         <jndi-name>/wsclients/proxies/de.sap.coe/WeatherServiceProject/WeatherServiceProxy</jndi-name>
    </server-component-ref>
    i look up the proxy like this:
    ctx.lookup("java:comp/WeatherServiceProxy");
    i guess the mapping is incorrect. the documentation says to do reference the proxy like this:
    /wsclients/proxies/<ProviderName>/<ApplicationName>/<ProxyName>
    i do not understand however, what provider and application name are. i used the proxy's .ear filename as application name. for lack of better ideas i used the package structure as providername... it just seemed semantically similar ;-).
    Any help is well appreciated.
    Cheers, Michael

    Hello!
    i solved the problem: the providerName in my case was "sap.com".
    In order to find out the jndi-location you can go to visual Admin. Services --> JNDI Registry --> wsclients --> proxies ....
    or whatever else you're looking for.
    Cheers, Michael

  • Deployable proxy -JNDI lookup

    Hi All,
    I've created a Deployable proxy for my webservice and deployed the EAR. I can see JNDI registry in the visual administrator.
    I am now writing a simple  java client to call the proxy.
    1.
    try {
       Hashtable env = new Hashtable();
       env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sap.engine.services.jndi.InitialContextFactoryImpl");
              env.put(Context.PROVIDER_URL, "localhost:50104");
            Context ctx = new InitialContext(env);
            Object  obj = ctx.lookup("/wsclients/proxies/sap.com/flight");
              FlightListService  ser=(FlightListService)obj;
    Lookup went fine…but I am getting classcastexception at the stsetment "FlightListService  ser=(FlightListService)obj;"
    2.
    try {
              Hashtable env = new Hashtable();
              env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sap.engine.services.jndi.InitialContextFactoryImpl");
              env.put(Context.PROVIDER_URL, "localhost:50104");
            Context ctx = new InitialContext(env);
            Object  obj = ctx.lookup("/wsclients/proxies/sap.com/flight/com.sap.flight");
              FlightListService  ser=(FlightListService)obj;
    In the above case Lookup itself failed.
    Please let me knowthe solution.
    Regards,Anilkumar

    AnilKumar,
    I have consumed similar Deployable WebService from an EJB and I remeber that I gave the Deployed Webservice EAR (Deployed WebService Proxy EAR) as a Application level reference in the application-j2ee-engine XML of the EAR surrounding the consuming EJB (Application EAR).
    How have you defined reference in your case.
    Also I had a lookup as below
    InitialContext ctx = new InitialContext();
    ZPointtoPointServiceService zpserv = (ZPointtoPointServiceService) ctx.lookup("wsclients/proxies/sap.com/DeployableWebServices/com.web.comp.RFCWebService");
    ZPointtoPointService zpp =(ZPointtoPointService) zpserv.getLogicalPort();
    Regards,
    Sudharshan N A

  • Using a Deployable Proxy in a Web Dynpro Application

    Hi,
    We have a Web Dynrpo application whose model is built from a set of Java business objects (POJOs.)  These Java business objects currently make calls to a back-end R/3 system using JCo.  We would like to provide the ability to allow the calls to be made over Web Services to the back-end system. 
    To call the RFMs as web services we have created a Deployable Proxy project, added the proxy as a public part, then referenced that public part in the web dynpro application.  At this point we can write code to call the web service that looks something like:
    InitialContext ctx = new InitialContext();
    Object serviceObject = ctx.lookup("wsclients/proxies/meridium.com/rcmo~proxies/com.meridium.rcmo.ws.proxies.plants.PlantProxy");                                        
    Z_MRDM_GET_PLANTSService service = (Z_MRDM_GET_PLANTSService)ctx.lookup("wsclients/proxies/meridium.com/rcmo~proxies/com.meridium.rcmo.ws.proxies.plants.PlantProxy");
    Z_MRDM_GET_PLANTSPortType port = service.getLogicalPort();
    Z_MRDM_GET_PLANTS plantParameter = new Z_MRDM_GET_PLANTS();
    plantParameter.setI_PLANTID(id);
    plantParameter.setI_PLANTNAME(name);
    Z_MRDM_GET_PLANTSResponse response = port.z_MRDM_GET_PLANTS(plantParameter);
    MT001W[] plantArray = response.getET_PLANTS();
    The problem is that when I call looup to retrieve the service implementation I get a ClassCastException. 
    The tutorials for using a proxy in web dynpro all assume that the web service is what the model is based upon but that's not possbile for our scenario we need to call the proxy from the business objects which are the basis for our model.
    According to the help documentation for consuming a deployable proxy in a JSP page:
    <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/2d/b9766df88f4a24967dae38cb672fe1/frameset.htm">http://help.sap.com/saphelp_nw2004s/helpdata/en/2d/b9766df88f4a24967dae38cb672fe1/frameset.htm</a>
    It discusses adding JNDI mappings.  Is this what's needed for the reference to work in a Web Dypro application too?  If so, how would one add the JNDI mappings references to a Web Dynpro application?
    Many thanks!

    Hi Dheeram,
    I'm not certain about JSPDynpage specifically, but in a general J2EE Enterprise Application project you can add a reference to the application-j2ee-engine.xml file.  For example here's the content of an application-j2ee-engine.xml file that references a proxy:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE application-j2ee-engine SYSTEM "application-j2ee-engine.dtd">
    <application-j2ee-engine>
         <reference
              reference-type="hard">
              <reference-target
                   provider-name="sap.com"
                   target-type="library">com.sap.mw.jco</reference-target>
         </reference>
         <reference
              reference-type="hard">
              <reference-target
                   provider-name="sap.com"
                   target-type="library">com.sap.aii.proxy.framework</reference-target>
         </reference>
         <reference
              reference-type="hard">
              <reference-target
                   provider-name="sap.com"
                   target-type="library">com.sap.aii.util.misc</reference-target>
         </reference>
         <reference
              reference-type="hard">
              <reference-target
                   provider-name="sap.com"
                   target-type="interface">tc/sec/destinations/interface</reference-target>
         </reference>
         <reference
              reference-type="hard">
              <reference-target
                   provider-name="sap.com"
                   target-type="library">security.class</reference-target>
         </reference>
         <reference
              reference-type="weak">
              <reference-target
                   provider-name="sap.com"
                   target-type="service">tc~sec~destinations~service</reference-target>
         </reference>
         <reference
              reference-type="weak">
              <reference-target
                   provider-name="sap.com"
                   target-type="interface">tc~sec~destinations~interface</reference-target>
         </reference>
         <reference
              reference-type="weak">
              <reference-target
                   provider-name="engine.sap.com"
                   target-type="service">webdynpro</reference-target>
         </reference>
         <reference
              reference-type="weak">
              <reference-target
                   provider-name="meridium.com"
                   target-type="application">rcmo~proxies</reference-target>
         </reference>
         <provider-name>sap.com</provider-name>
         <fail-over-enable
              mode="disable"/>
    </application-j2ee-engine>

  • Redeploying a Deployable Proxy

    Hi,
    I am using a deployable proxy web service client. When I redeploy it (after making a change to the target url) the application that uses it (via JNDI lookup) fails with a class cast exception when it tries to do the lookup. Restarting the server solves the problem, but does anyone have a less severe solution? For some reason after the redeploy the JNDI lookup seems to fail...
    Thanks in advance,
    Simon

    Hi Simon,
    I don`t think it is JNDI problem. It is more class loader issue. What kind of references do you have from your application to proxy? weak or hard? Try to restart not a server but application itself.
    Best regards, Maksim Rashchynski.

  • Deployable proxy does not provide needed types

    Hi everybody,
    i have created a deployable proxy with NWDS using this <a href="http://www.webservicex.net/WeatherForecast.asmx?WSDL">WSDL</a>. Now i would love to have a client bean that calls the service via the proxy. I tried to do it like <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/45/029840cf43495195da923f32262911/frameset.htm">this</a>.
    Now the problem i have is that when i do the lookup on the initial context i get an object of class WeatherForecast<i><b>Impl</b></i>. The deployable proxy, however, does not create this class in design time. Only after deploying it is available on the j2ee. I thus cannot cast to this type, because the NWDS does not recognize the type.... The standalone proxy on the other hand offers this class and allows me to cast to this type in design time. i still get a run time error though. plus it seems wrong to create a standalone proxy for this purpose, right?
    I am really new to this java world, so maybe i am missing something really simple. Any help will be much appreciated.
    Cheers, Michael.

    hey everyone.
    Well, it seems, the point is something else. From what i've read throughout the day, the class WeatherForecastImpl is not supposed to be included in the deployable proxy but it should be downcasted to the interface, in this case WeatherForecast. The is, though, that the cast throws an ClassCastEcxeption. Is it possible that the proxy or the implementation were created incorrectly?
    this is what the interface looks like:
    package de.sap;
    * Service Interface (generated by SAP WSDL to Java generator).
    public interface WeatherForecast extends javax.xml.rpc.Service {
      public java.rmi.Remote getLogicalPort(String portName, Class seiClass) throws javax.xml.rpc.ServiceException;
      public java.rmi.Remote getLogicalPort(Class seiClass) throws javax.xml.rpc.ServiceException;
      public String[] getLogicalPortNames();
      public com.sap.engine.services.webservices.jaxrpc.wsdl2java.lpapi.LogicalPortType getLogicalPortConfiguration(String lpName);
    thank for helping.
    cheers, michael

  • Deployable Proxy not reachable

    Hi everyone,
    I tried in previous post to solve this problem but without success.
    Here is the scenario :
    I deployed a "Deployable Proxy" that contains a web service.
    I create a Java Standalone class.
    I want to call this proxy and to use the web service.
    Here is the code :
    try {
         Properties props = new Properties();
         props.put(Context.INITIAL_CONTEXT_FACTORY,"com.sap.engine.services.jndi.InitialContextFactoryImpl" );
         props.put(Context.PROVIDER_URL,"server:50004");
         props.put(Context.SECURITY_PRINCIPAL, "username");
         props.put(Context.SECURITY_CREDENTIALS, "passowrd");
         InitialContext ic = new InitialContext(props);
         Object ob = ic.lookup("/wsclients/proxies/sap.com/SampleWSProxy_Project/com.merkava.proxy.SampleWSProxy");
         ic.close();
    } catch(Exception e) {
         e.printStackTrace();
    Here is the exception :
    com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Object not found in lookup of com.merkava.proxy.SampleWSProxy.
         at com.sap.engine.services.jndi.implserver.ServerContextImpl.lookup(ServerContextImpl.java:646)
         at com.sap.engine.services.jndi.implserver.ServerContextRedirectableImpl.lookup(ServerContextRedirectableImpl.java:80)
         at com.sap.engine.services.jndi.implserver.ServerContextImplp4_Skel.dispatch(ServerContextImplp4_Skel.java:555)
         at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:294)
         at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:183)
         at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:119)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
         at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
         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:95)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:159)
    predecessor system -
    com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Object not found in lookup of com.merkava.proxy.SampleWSProxy.
         at com.sap.engine.services.jndi.implserver.ServerContextImpl.lookup(ServerContextImpl.java:646)
         at com.sap.engine.services.jndi.implserver.ServerContextRedirectableImpl.lookup(ServerContextRedirectableImpl.java:80)
         at com.sap.engine.services.jndi.implserver.ServerContextImplp4_Skel.dispatch(ServerContextImplp4_Skel.java:555)
         at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:294)
         at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:183)
         at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:119)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
         at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
         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:95)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:159)
    To be sur that the proxy existe in the J2EE engine server, here is what I've done :
              NamingEnumeration enum = ic.list("/wsclients/proxies/sap.com/");
              while(enum.hasMore()) {
                   NameClassPair pair = (NameClassPair)enum.next();
                   System.out.println(">> " + pair.getName());
    I get the following output :
    >> SampleWSProxy_Project
    So the Proxy does exist.
    Here are the jars I use :
    bytecode.jar
    exception.jar
    logging.jar
    p4.jar
    Can someone help me with this stuff...getting crasy with it.
    Thanks a lot.

    Same problem:
    try
                   Properties env = new Properties();
                   env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sap.engine.services.jndi.InitialContextFactoryImpl");
                   env.put(Context.PROVIDER_URL, "localhost:50004");
                   Context ctx = new InitialContext(env);
                   Object obj = ctx.lookup("wsclients/proxies/valero.com/valero~corefnpxy/com.valero.webservices.filenet.pxFN");
    and i get this
    com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Object not found in lookup of com.valero.webservices.filenet.pxFN.
         at com.sap.engine.services.jndi.implserver.ServerContextImpl.lookup(ServerContextImpl.java:646)
         at com.sap.engine.services.jndi.implserver.ServerContextRedirectableImpl.lookup(ServerContextRedirectableImpl.java:80)
         at com.sap.engine.services.jndi.implserver.ServerContextImplp4_Skel.dispatch(ServerContextImplp4_Skel.java:555)
         at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:294)
         at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:183)
         at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:119)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
         at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
         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:94)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)
    predecessor system -
    com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Object not found in lookup of com.valero.webservices.filenet.pxFN.
         at com.sap.engine.services.jndi.implserver.ServerContextImpl.lookup(ServerContextImpl.java:646)
         at com.sap.engine.services.jndi.implserver.ServerContextRedirectableImpl.lookup(ServerContextRedirectableImpl.java:80)
         at com.sap.engine.services.jndi.implserver.ServerContextImplp4_Skel.dispatch(ServerContextImplp4_Skel.java:555)
         at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:294)
         at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:183)
         at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:119)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
         at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
         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:94)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)

  • Error while creating a deployable proxy for a URL in NWDS

    Hi ,
    There is a requirement for calling a webservice in the .NET platform from JAVA using NWDS. The webservice of the server is pinged using the URL of the webservice. when the URL is passed in the WS navigator of CRD ( that is Development Server) ,  the response is retreived successfully .  The version of NWDS is 7.0.23.
    we are facing problem when we are trying to create a Deployable proxy in NWDS by using the following steps :
    1) Create a Development Component
    2) Select the Deployable Proxy
    3) Create the Client Proxy Defintion of the created DC
    At step 3 , when we giving the url or WSDL link  like "http:// www3.authoring.syngenta/newswebservice.asmx?WSDL" (this is just for example) , it is showing as "Invalid wsdl or wsdl not found " . so  that we are not able to procees further.
    When we are trying to create proxy the for the WSDL link like " http:// www.authoring.syngenta/newswebservice.asmx?WSDL" , we are able to create successfully.
    can anyone suggest why we are able to create the proxy for the URL "http:// www.authoring.syngenta/newswebservice.asmx?WSDL" and not for the other URL.
    Any pointers or suggestions are very helpful.
    Thanks and Regards,
    Sreedevi

    Late response I know, but I have solved a similar problem recently and thought I would share.
    Firstly, the problem is not with the namespace. The "Namespace ..." part is just stating the namespace the "Incorrect Value" has. So this error is complaining about the value "Unknown" - which isn't very helpful.
    It appears the SAP SE80 importer does not like elements like the following because it can't understand <s:element ref="s:schema" />. It appears this is a common thing to be included in .NET generated WSDLs.
     <s:element minOccurs="0" maxOccurs="1" name="GetCursDynamicResult">      <s:complexType>          <s:sequence>               <s:element ref="s:schema" />               <s:any />          </s:sequence>     </s:complexType></s:element> 
    SAP will also not like this example as it does not support mixed content (see: http://www.w3schools.com/schema/schema_complex_mixed.asp)
    <s:element minOccurs="0" maxOccurs="1" name="SaldoXMLResult">
         <s:complexType mixed="true">
              <s:sequence>
                   <s:any />
              </s:sequence>
         </s:complexType>
    </s:element>
    You can "Fix" the problem in both cases by removing the offending text in a local copy of the WSDL file so remove line 4 in the first example and change line 2 in the second to <s:complexType> the proxy can then be generated. No idea if the resulting service will be fully operational though!

  • Failed creation of deployable proxy upon wsdl containing "soapenc" types

    Hello all,
    I've tried to create deployable proxy upon wsdl file
    Creation process has failed and following exception was logged:
    com.sap.engine.services.webservices.jaxrpc.exceptions.ProxyGeneratorException: Proxy Generator Error. Proxy generation problem. See nested exception.
    Caused by: java.lang.Exception:  WSDL part <in0> points to unavailable type with qname: <string>
    wsdl is created by Apache Axis version: 1.4. It contains "soapenc" types, e.g.:
       <wsdl:message name="getPageObjectListRequest">
          <wsdl:part name="in0" type="soapenc:string"/>
          <wsdl:part name="in1" type="soapenc:string"/>
          <wsdl:part name="in2" type="soapenc:string"/>
          <wsdl:part name="in3" type="soapenc:string"/>
       </wsdl:message>
    Could you give me any advice? What should I do to create deploable proxy upon such wsdl file?

    I am getting this error by generating a web service from pl/sql procedure. Just one package, just one procedure. Error stack:
    java.lang.NullPointerException
         at oracle.jdevimpl.webservices.generator.WrapperClassGenerator.generate(WrapperClassGenerator.java:262)
         at oracle.jdevimpl.webservices.generator.SPWebServiceGenerator$1.run(SPWebServiceGenerator.java:285)
         at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:551)
         at java.lang.Thread.run(Thread.java:595)
    The pl/sql package header looks like this:
    CREATE OR REPLACE package ADMIN.etis_autent as
    procedure autent(
         ps_kasutajatunnus in varchar2,
         ps_parool in varchar2,
         ps_isikukood out varchar2,
         ps_eesnimi out varchar2,
         ps_perekonnanimi out varchar2
    end etis_autent;
    /

  • Deployable Proxy with two wsdl files

    Hello,
    I have a problem with deployable proxies and two wsdl files.
    In wsdl A returns a method an object of type Foo.
    In wsdl B a method expects a parameter of type Foo.
    Foo is a class of the Web service provider.
    I created a new deployable proxy called p.
    For both wsdl files I chose Create -> new client proxy definiton and for both of them I had to create a new package (a and b).
    Now I have two Foo classes:
    p.a.types.Foo and p.b.types.Foo
    But I would like to have only one Foo class and use it for both proxy definitions.
    Is this possible?
    Thanks and regards
    Patrick

    Hi,
    no I haven't found a solution.
    > I was looking for options to create single proxy with multiple wsdl files
    I was thinking the same because the folder is called WSDL Files.
    Hope somebody could help.
    Regards
    Patrick

  • Creating deployable proxy in NWDS 7.1 EHP1

    Hello all,
    As mentioned in the link
    http://help.sap.com/saphelp_nw70/helpdata/EN/2d/b9766df88f4a24967dae38cb672fe1/frameset.htm but in the link its for older version of NWDS
    How to create deployable proxy in NWDS 7.1 EHP1
    Regards,
    Ronniee

    Hi Ronniee,
    I m trying to implement RFC lookup functionality in Adapter Module.
    Hence I have exposed RFC as a webservice. I have a WSDL now
    In older version of NWDS (7.0), we used to create deployable proxy project in web service perspective, refer below link
    http://help.sap.com/saphelp_nw04/helpdata/en/2d/b9766df88f4a24967dae38cb672fe1/content.htm
    But now I m supposed to implement similar functionality using NWDS 7.1. But unable to understand how to consume web service
    Any input?
    Thanks
    Mugdha Kulkarni

  • Using Deployable Proxy in J2ee Server library

    Hallo experts,
    i want to use a deployable proxy in a j2eelibrary.
    In the j2eelibrary i have a plain java class, that consumes the deployable proxy.
    with a webdynpro i tested it and got a classaCastException
    in the java class (in j2eelibrary) where "ctx.lookup" is performed.
    any idea?
    when i test the deployable proxy directly from a webdynpro everything works fine.
    Thank You for help
    Michel

    no ideas?

  • Error when deploy a deployable proxy

    Hi all
        I'm using SP15.
        I follow step by step the wizard to create a deployable proxy to implemente a client web services.
        I select Local File System or URL, and I can import the wsdl file, build the project, but when I try to deploy.....
    06/03/10 16:44:05 -  ERROR: Not deployed. Deploy Service returned ERROR:
                         java.rmi.RemoteException: Cannot deploy application ..
                         Reason: Webservices common deployment exception! The reason is: Error occured, trying to generate ws clients deploy files for applicaiton . . Additional info: ; nested exception is:
                              java.lang.Exception: com.sap.engine.interfaces.webservices.server.deploy.WSDeploymentException: Webservices common deployment exception! The reason is: Error occured, trying to generate ws clients deploy files for applicaiton  Additional info:
    Any idea ?
    Regards
    Martin

    Hi Martin,
    I have found the same problem that you... did you finally solve it?
    Could you please tell me what it was wrong?
    Muchísimas gracias.
    Isidro Lopez

Maybe you are looking for