Web Service Proxy with Dynamic IP and Port

hi,
I am currently looking at the Web Service Proxy generation in JDev 11g. I can generate proxies fine, but the proxies are generated with static host and port. I want to substitute the host and port during runtime if required, for instance read the values from a database. I need to do this to avoid compiling the application for every deployment we make dev, test and production. Is there an easy way to set the generated proxy host and port? Are there any examples?
Thanks in advance!
Stephen

Hi,
Maybe you should have a look on XML Catalogs feature, but I am not sure if JDeveloper support it and how to support it.
-LJ

Similar Messages

  • How to create Web Service Proxy with help of WSDL.

    Hi ,
    How to create Web Service Proxy with help of WSDL .
    Please help me .
    Thanks in advacne for reply .

    check out this article. It has all the details
    http://www.oracle.com/technology/products/jdev/howtos/1013/wsadf/adfcomplexwstypes.html

  • Change/Configure Host and Port for the Web Service Proxy with Server

    Hi,
    Is there a way to configure Host and Port in generated proxy for Web service depending upon server. (ADF 11g)
    Scenario:
    We are consuming Credit Card web service from a service provider and have different Host and Port details for development, QA and Prod.
    So we created proxy classes using wsdl for development and things work fine, but when deploying code to QA or Prod we need to change the Host
    and Port details.
    Is their a way we could user variable's for Host and Port which looks to some configuration file to evaluate their values
    based on server.
    I am a bit new to this web service .. will appreciate if someone could provide an example.
    Thanks.

    Are you using Web Service Proxy or Web Service Data Control?
    If you are using Web Service Proxy. Right click on your Proxy --> Properties --> Port Endpoints. Here you can change the IP & Port details for each port.
    Venkat

  • Web Service Proxy : nullpointer trying to get port

    Hi,
    I created a new web service proxy, by importing an existing WSDL file.
    In my code, I use the following :
    static {
    try {
    forecastService = new Forecaster();
    forecastPortType = forecastService.getFniForecastPort();
    catch (Throwable e){
    e.printStackTrace();
    The new Forecaster() service is working.
    But when I want to retrieve the port, I get a nullpointer.
    This is the WSDL :
    <?xml version='1.0' encoding='UTF-8'?>
    <wsdl:definitions name="forecaster"
    targetNamespace="http://www.nsn.com/fni/fni_coordinator"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:client="http://www.nsn.com/fni/fni_coordinator"
    xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
    <!-- Type Definitions -->
    <wsdl:types>
    <schema xmlns="http://www.w3.org/2001/XMLSchema">
    <import namespace="http://www.nsn.com/fni/fni_coordinator"
    schemaLocation="xsd/fni_forecaster.xsd"/>
    </schema>
    </wsdl:types>
    <!-- Message Type Definition - Definition of the message types used as part of the port type defintions -->
    <wsdl:message name="forecast">
    <wsdl:part name="request" element="client:forecast"/>
    </wsdl:message>
    <wsdl:message name="forecastResponse">
    <wsdl:part name="response" element="client:forecastResponse"/>
    </wsdl:message>
    <wsdl:message name="forecastFault">
    <wsdl:part name="error" element="client:forecastFault"/>
    </wsdl:message>
    <!-- Port Type Definition - A port type groups a set of operations into     a logical service unit -->
    <wsdl:portType name="forecastPort">
    <wsdl:operation name="forecast">
    <wsdl:input message="client:forecast"/>
    <wsdl:output message="client:forecastResponse"/>
    <wsdl:fault message="client:forecastFault" name="fault"/>
    </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="forecastPortBinding" type="client:forecastPort">
    <soap:binding style="document"
    transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="forecast">
    <soap:operation style="document"
    soapAction="http://www.nsn.com/fni/fni_coordinator/forecast"/>
    <wsdl:input>
    <soap:body use="literal" parts="request"/>
    </wsdl:input>
    <wsdl:output>
    <soap:body use="literal" parts="response"/>
    </wsdl:output>
    <wsdl:fault name="fniForecastServiceException">
    <soap:fault name="fault" use="literal"/>
    </wsdl:fault>
    </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="forecaster">
    <wsdl:port name="fniForecastPort" binding="client:forecastPortBinding">
    <soap:address location="http://d-w620-013.be.devoteam.com:8001/soa-infra/services/default/fni_composite/fniForecastService"/>
    </wsdl:port>
    </wsdl:service>
    </wsdl:definitions>
    And this is my error :
    java.lang.NullPointerException
         at weblogic.wsee.jaxws.framework.jaxrpc.EnvironmentFactory$SimulatedWsdlBindingOperation.<init>(EnvironmentFactory.java:424)
         at weblogic.wsee.jaxws.framework.jaxrpc.EnvironmentFactory$SimulatedWsdlBinding.<init>(EnvironmentFactory.java:364)
         at weblogic.wsee.jaxws.framework.jaxrpc.EnvironmentFactory$SimulatedWsdlDefinitions.<init>(EnvironmentFactory.java:271)
         at weblogic.wsee.jaxws.framework.jaxrpc.EnvironmentFactory.<init>(EnvironmentFactory.java:122)
         at weblogic.wsee.jaxws.framework.jaxrpc.client.ClientEnvironmentFactory.<init>(ClientEnvironmentFactory.java:37)
         at weblogic.wsee.jaxws.framework.jaxrpc.JAXRPCEnvironmentFeature.<init>(JAXRPCEnvironmentFeature.java:59)
         at weblogic.wsee.jaxws.framework.jaxrpc.JAXRPCEnvironmentFeature.<init>(JAXRPCEnvironmentFeature.java:55)
         at weblogic.wsee.jaxws.framework.jaxrpc.JAXRPCEnvironmentFeature.getFactory(JAXRPCEnvironmentFeature.java:35)
         at weblogic.wsee.jaxws.framework.jaxrpc.TubelineDeploymentListener.getEnvironmentFactory(TubelineDeploymentListener.java:90)
         at weblogic.wsee.jaxws.framework.jaxrpc.TubelineDeploymentListener.createClient(TubelineDeploymentListener.java:47)
         at weblogic.wsee.jaxws.WLSTubelineAssemblerFactory$TubelineAssemblerImpl.createClient(WLSTubelineAssemblerFactory.java:57)
         at com.sun.xml.ws.client.WSServiceDelegate.createPipeline(WSServiceDelegate.java:456)
         at com.sun.xml.ws.client.WSServiceDelegate.getStubHandler(WSServiceDelegate.java:671)
         at com.sun.xml.ws.client.WSServiceDelegate.createEndpointIFBaseProxy(WSServiceDelegate.java:650)
         at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:351)
         at weblogic.wsee.jaxws.spi.WLSProvider$ServiceDelegate.getPort(WLSProvider.java:235)
         at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:333)
         at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:315)
         at javax.xml.ws.Service.getPort(Service.java:92)
         at fni.model.FniforecastService.Forecaster.getFniForecastPort(Forecaster.java:79)
         at FNIbackingbean.<clinit>(FNIbackingbean.java:63)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
         at java.lang.Class.newInstance0(Class.java:355)
         at java.lang.Class.newInstance(Class.java:308)
         at com.sun.faces.mgbean.BeanBuilder.newBeanInstance(BeanBuilder.java:186)
         at com.sun.faces.mgbean.BeanBuilder.build(BeanBuilder.java:106)
         at com.sun.faces.mgbean.BeanManager.createAndPush(BeanManager.java:368)
         at com.sun.faces.mgbean.BeanManager.create(BeanManager.java:230)
         at com.sun.faces.el.ManagedBeanELResolver.getValue(ManagedBeanELResolver.java:88)
         at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:143)
         at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:72)
         at com.sun.faces.el.ChainAwareVariableResolver.resolveVariable(ChainAwareVariableResolver.java:108)
         at oracle.javatools.resourcebundle.BundleVariableResolver.resolveVariable(BundleVariableResolver.java:45)
         at oracle.javatools.resourcebundle.BundleVariableResolver.resolveVariable(BundleVariableResolver.java:45)
         at com.sun.faces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:80)
         at oracle.adfinternal.view.faces.model.VariableResolverUtils$JspResolver.resolveVariable(VariableResolverUtils.java:57)
         at com.sun.faces.el.VariableResolverChainWrapper.getValue(VariableResolverChainWrapper.java:107)
         at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:143)
         at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:72)
         at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:68)
         at com.sun.el.parser.AstValue.getValue(AstValue.java:107)
         at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:192)
         at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:251)
         at javax.faces.webapp.UIComponentELTag.createComponent(UIComponentELTag.java:222)
         at javax.faces.webapp.UIComponentClassicTagBase.createChild(UIComponentClassicTagBase.java:486)
         at javax.faces.webapp.UIComponentClassicTagBase.findComponent(UIComponentClassicTagBase.java:670)
         at javax.faces.webapp.UIComponentClassicTagBase.doStartTag(UIComponentClassicTagBase.java:1142)
         at org.apache.myfaces.trinidad.webapp.UIXComponentELTag.doStartTag(UIXComponentELTag.java:70)
         at oracle.adfinternal.view.faces.taglib.UIXTableTag.doStartTag(UIXTableTag.java:41)
         at oracle.adfinternal.view.faces.unified.taglib.data.UnifiedTableTag.doStartTag(UnifiedTableTag.java:50)
         at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:50)
         at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:260)
         at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
         at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:58)
         at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:260)
         at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
         at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:58)
         at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:260)
         at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
         at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:58)
         at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:260)
         at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
         at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:58)
         at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:260)
         at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
         at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:58)
         at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:260)
         at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
         at oracle.jsp.runtime.tree.OracleJspIterationTagNode.executeHandler(OracleJspIterationTagNode.java:45)
         at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:260)
         at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
         at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:58)
         at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:260)
         at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
         at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:58)
         at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:260)
         at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
         at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:58)
         at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:260)
         at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
         at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:58)
         at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:260)
         at oracle.jsp.runtime.tree.OracleJspNode.execute(OracleJspNode.java:76)
         at oracle.jsp.runtimev2.ShortCutServlet._jspService(ShortCutServlet.java:88)
         at oracle.jsp.runtime.OracleJspBase.service(OracleJspBase.java:29)
         at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:670)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:386)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:729)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:653)
         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(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:159)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:500)
         at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:248)
         at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:410)
         at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44)
         at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44)
         at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44)
         at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44)
         at org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$OverrideDispatch.dispatch(FacesContextFactoryImpl.java:267)
         at com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:473)
         at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:141)
         at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:189)
         at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:193)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:710)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:273)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:205)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:94)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:138)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:70)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:159)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:326)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3592)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

    Problem solved :
    The WSDL contained a little to much :
    <wsdl:fault name="fniForecastServiceException">
    <soap:fault name="fault" use="literal"/>
    </wsdl:fault>
    When I removed this, it all worked fine.
    Thanks for the help guys !
    8-)

  • Calling Web Service Proxy with Custom java Object as parameter

    I created a web service proxy from WSDL URL using JDeveloper 11g(.5 version)
    I need to call a webservice method which takes custom Java Object( Ex: ABC.java) as Input parameter. It creates the XSD java (ABC.java) file for that.
    @XmlElementRef(name = "abc", namespace = "http://impl.service.ns.test", type = JAXBElement.class)
    protected JAXBElement<ABC> abc;
    ABC.java has a property of type java.util.Set of a custom Java Object (Set<XYZ.class>)
    It doesn't create xsd file for XYZ.java.
    @XmlElementRef(name = "XYZ", namespace = "http://model.ns.test/xsd", type = JAXBElement.class)
    protected JAXBElement<Set> xyz;
    Please help me.

    The passing of Java objects in and out of a web service is NOT supported. variables must be xml documents defined by a XML schema. In my opinion, missing Java object and WSDL is not a good idea. -Edwin

  • Help needed creating Web Service Proxy with SSL

    Hi All, I really need your help. I need to create a Web Service proxy for a web service which is SSL enabled and developed in Netbeans. I have been given keystore as well as certificates files and I have copied "keystore.jks" in my c:\Documents and Settings\<user> and the certifcates to <JAVA_HOME>\jre\lib\security\cacerts. Now when I run the Proxy creation wizard and give the location of the WSDL file, JDeveloper gives an error "Error importing schemas: Default SSL Context init failed: Invalid keystore format". Can anyone please guide me what I am doing wrong here. I will appreciate your help.
    Thanks in advance.
    John

    I am using JDeveloper 10.1.3.3.0. Thanks Heaps

  • Integrating Web Services Manager with Oracle Portal and SSO

    Hi,
    I wanted to throw this out there and make sure I was on the right track and also if somebody can point me to some resources online that might help. Basically, we have OWSM acting as a Gateway securing some web services. Oracle Portal is integrated w/ Oracle SSO (as well as using OID). What is the best way to pass the credentials to the OWSM from the Portal for authentication purposes? I believe using SAML voucher token is the way to go, but I'm not positive. Has anybody done this before and if so, what methodology did you use? I'm assuming since using SSO, we don't necessary want to also pass in the password.
    Thanks,
    Nathan

    I have noticed that nobody has same kind of situation and this is not intresting question. Still we have same problem and I have heard many oracle employee saing that this behaviour is wanted situation. In our kind of virtual host enviroment it would be nice to choose behaviour of Single-sign-on server and I request oracle support to find out ways to enable this option... I would be pleased if some oracle development would say opinion about this mater. Waiting for ideas.

  • Web service proxy and data control are not working properly

    Hi,
    I am working on jDeveloper 11.1.1.6
    I have a SOA web service which requires 3 inputs and return with a set of data.
    When I tried testing that web service in soapUI it is working perfect. But when I have created a web service proxy in my application and trying to test it from class (*******_ptClient) main method everytime it is replying with the output null
    Also When I am requesting from the main method SOA is getting proper input (which I am providing in the main method) and SOA is returning proper output I have checked the SOA instance in em. So there is no problem in SOA side.
    After that I have created web service data control and tested in that case also it is not showing any result.
    What could be the problem ?
    Please help.
    Thanks
    --NavinK                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi Shay Shmeltzer,
    Thanks for the reply.
    I tried in HTTP Analyzer in JDeveloper and there also it is not working. My concern is :-
    There are many other web services deployed on the same SOA server in same partition and they are working fine in HTTP analyzer and I am able to create and use the web service proxy as well. So as per my understanding there is nothing like network issues between SOA server and jDeveloper.
    1 more thing When I am creating the proxy for this web service and requesting from the proxy's main method SOA is getting proper input (which I am providing in the main method) and SOA is returning proper output I have checked the SOA instance in em. So there is no problem in SOA side. The problem is jDeveloper is not able to get back that response which SOA is returning.
    Please Help.
    -- NavinK

  • Web Service proxy deployment and reuse

    Jdev. 11.1.1.4
    Hi,
    In my ADF application I have created a web service proxy with Jdev wizard.
    I have created a method in order to test it and it works ok.
    Now, I need to reuse this proxy (the package) in other java applications also in Jdev but working with struts (I don't thnk this is important but....)
    I have created a deployment profile only for the ws proxy package and generated a jar file.
    This jar file has been declared in the second application and try to execute the same method that worked in the first application.
    Just in the first sentence:
    UtilGestionDocumental utilGestionGrupos = new UtilGestionDocumental();
    we are having an "unauthorized error". No time to declare any username nor password that are send in later instructions.
    The first part of the call to the WS that we are using is this:
    UtilGestionDocumental utilGestionGrupos = new UtilGestionDocumental(); <- Here it throws the error
    SecurityPoliciesFeature securityFeatures =
    new SecurityPoliciesFeature(new String[] {
    "oracle/wss_username_token_client_policy" });
    UtilGestionDocumentalPortType entidadDocPortType =
    utilGestionGrupos.getUtilGestionDocumentalSOAP12Port(/*securityFeatures*/);
    ((BindingProvider)entidadDocPortType).getRequestContext().put(BindingProvider.USERNAME_PROPERTY,"Username");
    ((BindingProvider)entidadDocPortType).getRequestContext().put(BindingProvider.PASSWORD_PROPERTY,"Password");
    ((BindingProvider)entidadDocPortType).getRequestContext().put(BindingProvider."EndPoint....." );
    I think I'm not using the correct system to create a jar for the WS, am I ?
    someone can help me with this ?

    Does any expert can help in deploying a web service proxy as a jar file ?

  • Error invoking esb from web service proxy

    I have created a web service proxy (with jdeveloper 10.1.3.2) to invoke my service on the ESB.
    When i try to invoke this service with the proxy, the following error message appears:
    HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message transmission failure, response code: 500
    at oracle.j2ee.ws.client.http.HttpClientTransport.invokeImpl(HttpClientTransport.java:142)
    at oracle.j2ee.ws.client.http.HttpClientTransport.invokeOneWay(HttpClientTransport.java:122)
    at oracle.j2ee.ws.client.StreamingSender._sendImpl(StreamingSender.java:173)
    at oracle.j2ee.ws.client.StreamingSender._sendOneWay(StreamingSender.java:131)
    at testproxy.proxy.runtime.__soap_TestIn_execute_ppt_Stub.execute(__soap_TestIn_execute_ppt_Stub.java:88)
    When i take a look in the esb console, there i can see, that the service was invoked, but it is signed with the error symbol (i'm writing data into a database and the lines to the database adapter a green, but the lines back are red. But it writes nothing into the database. If i klick on the test webservice button at the appserver, everything works fine).
    Does anybody know the reason why it don't work?
    thanks

    In the ESB Control you can view the exception that's being thrown, is the PrivilegActionException the only stack trace you have?
    Maybe you can have a look if the data that's returned from the db-adapter is interpreted correctly by the ESB? You're working with a Request/Reply ESB so you need to make sure that as well the input as the ouput that's returned by the Routing Service is properly defined.

  • Web service proxy on security issue

    Using jdeveloper 11g R1(11.1.1.2.0)+fusion middleware em :
    1.I protected a web service with wss policy of wss_user_name_token_service_policy then deployed to in independent WLS 10.3.2
    2.Created a web service proxy with wss policy of wss_user_name_token_client_policy with csf-key being 'demo' in a ADF web project,the proxy can be invoked by a JSF page.Then deployed this client web project in same WLS.
    3.Access the JSF page then get error:racle.wsm.common.sdk.WSMException: WSM-00015 : The user name is missing. I created the key of 'demo' with correct user name and password on EM under map of oralce.wsm.security, still throw such error.
    However, using the web service data control can works right:
    4.Created a web service data control with wss policy of wss_user_name_token_client_policy with csf-key 'being' demo2 and a wrong user name and password in the ADF web project. Then created another JSF page using the web service data control.
    5.Deployed the web project in WLS.
    6.Created the key of 'demo2' with correct user name and password in map of oracle.wsm.security on EM
    6.Access the JSF page that invokes the web service data control.
    It worked right. This is what I expected that user name and password of service client should not be specified in design time but after deployment. The client app will send correct SOAP request with auth head after creating its required key on EM.
    The question is why web service proxy can not work right even create its key on EM after deployment to WLS? Seems the policy in client does not take any effective when sending request.

    This depends on the webservice types:JAX-WS or RPC-WS.
    Also the jdeveoper need enhancement

  • Invoke BPEL by Web Services Proxy

    I use JDev 10.1.3.1 to generate a web services proxy to invoke BPEL, and i remove the BPEL version number in the java stub (invoke Default BPEL if no version stated) from
    _setProperty(ENDPOINT_ADDRESS_PROPERTY, "http://testmachine:7779/orabpel/TestingBPEL/1.0");to
    _setProperty(ENDPOINT_ADDRESS_PROPERTY, "http://testmachine:7779/orabpel/TestingBPEL");
    After removed it, the proxy is failed to invoke.
    However, it is works fine for those proxy generated by previous version of JDev such as 10.1.3 and 10.1.2
    Anyone knows how to fix it?

    I am facing exactly the same issue. Anyone have any pointers on how to make the proxy classes visible to the application server? I have tried including them under $JAVA_TOP and as a ZIP file added to the classpath

  • Problem with web service proxy and connections.xml

    JDev 11.1.14
    Hello
    I'm trying to create a web service proxy that takes advantage of the connections.xml so that the endpoints can be changed without recompiling the code (as described here http://download.oracle.com/docs/cd/E17904_01/web.1111/b31974/web_services.htm#ADFFD548 - 13.2.2 How to Create a New Web Service Connection)
    I created the web service proxy using the Jdev wizard and a test client. The access to the web service works as expected.
    The client test code is :
    package model;
    import ch.mit.trac.ws.proxy.*;
    import ch.mit.trac.ws.root.Currency;
    import javax.naming.NamingException;
    public class wsTest {
      public wsTest() {
        super();
      public void testIt() throws NamingException {
        CurrencyConvertor currencyConvertor = new CurrencyConvertor();
        CurrencyConvertorSoap currencyConvertorSoap = currencyConvertor.getCurrencyConvertorSoap();
        Double res = currencyConvertorSoap.conversionRate(Currency.CHF, Currency.USD);
        System.out.println("Hello");
        System.out.println(res);
      public static void main(String [] args) throws NamingException {
        wsTest tt = new wsTest();
        tt.testIt();
    }I then create a connection as described in the docs.
    I now have a connections.xml as follows:
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <References xmlns="http://xmlns.oracle.com/adf/jndi">
       <Reference name="CurrencyConvertor" className="oracle.adf.model.connection.webservice.impl.WebServiceConnectionImpl" xmlns="">
          <Factory className="oracle.adf.model.connection.webservice.api.WebServiceConnectionFactory"/>
          <RefAddresses>
             <XmlRefAddr addrType="WebServiceConnection">
                <Contents>
                   <wsconnection description="file:/C:/JDeveloper/mywork/WebServiceTest/Model/src/ch/mit/trac/ws/proxy/CurrencyConvertor.wsdl" service="{http://www.webserviceX.NET/}CurrencyConvertor">
                      <model name="{http://www.webserviceX.NET/}CurrencyConvertor" xmlns="http://oracle.com/ws/model">
                         <service name="{http://www.webserviceX.NET/}CurrencyConvertor">
                            <port name="CurrencyConvertorHttpPost" binding="{http://www.webserviceX.NET/}CurrencyConvertorHttpPost">
                               <operation name="ConversionRate">
                                  <output name=""/>
                                  <input name=""/>
                               </operation>
                            </port>
                            <port name="CurrencyConvertorHttpGet" binding="{http://www.webserviceX.NET/}CurrencyConvertorHttpGet">
                               <operation name="ConversionRate">
                                  <output name=""/>
                                  <input name=""/>
                               </operation>
                            </port>
                            <port name="CurrencyConvertorSoap12" binding="{http://www.webserviceX.NET/}CurrencyConvertorSoap12">
                               <soap addressUrl="http://www.webservicex.com/CurrencyConvertor.asmx" xmlns="http://schemas.xmlsoap.org/wsdl/soap/"/>
                               <operation name="ConversionRate">
                                  <soap soapAction="http://www.webserviceX.NET/ConversionRate" xmlns="http://schemas.xmlsoap.org/wsdl/soap/"/>
                                  <output name=""/>
                                  <input name=""/>
                               </operation>
                            </port>
                            <port name="CurrencyConvertorSoap" binding="{http://www.webserviceX.NET/}CurrencyConvertorSoap">
                               <soap addressUrl="http://www.webservicex.com/CurrencyConvertor.asmx" xmlns="http://schemas.xmlsoap.org/wsdl/soap/"/>
                               <operation name="ConversionRate">
                                  <soap soapAction="http://www.webserviceX.NET/ConversionRate" xmlns="http://schemas.xmlsoap.org/wsdl/soap/"/>
                                  <output name=""/>
                                  <input name=""/>
                               </operation>
                            </port>
                         </service>
                      </model>
                   </wsconnection>
                </Contents>
             </XmlRefAddr>
          </RefAddresses>So far so good.
    I then created a new jspx page with a button that calls a method in a request scoped bean.
    The method is supposed to use the connections.xml to get the web service proxy in order to call the web service.
    The bean code is as follows :
    package ch.mit.test;
    import javax.faces.event.ActionEvent;
    import ch.mit.trac.ws.proxy.*;
    import ch.mit.trac.ws.root.Currency;
    import javax.naming.Context;
    import javax.naming.NamingException;
    import oracle.adf.model.connection.webservice.api.WebServiceConnection;
    import oracle.adf.share.ADFContext;
    public class test {
      public test() {
      public void testIt() throws NamingException {
        Context ctx;
        ctx = ADFContext.getCurrent().getConnectionsContext();
        WebServiceConnection wsc;
        wsc = (WebServiceConnection) ctx.lookup("CurrencyConvertor");
        CurrencyConvertor currencyConvertor = wsc.getJaxWSPort(CurrencyConvertor.class);   -- NPE here
        CurrencyConvertorSoap currencyConvertorSoap = currencyConvertor.getCurrencyConvertorSoap();
        Double res = currencyConvertorSoap.conversionRate(Currency.CHF, Currency.USD);
        System.out.println("Hello");
        System.out.println(res);
      public void testws(ActionEvent actionEvent) {
        try {
          testIt();
        } catch (NamingException e) {
    }When running the application and clicking on the button I keep getting the following error at the line marked NPE Here above:
    <LifecycleImpl> <_handleException> ADF_FACES-60098:Le cycle de vie Faces reçoit des exceptions non traitées en phase INVOKE_APPLICATION 5
    javax.faces.el.EvaluationException: java.lang.NullPointerException
         at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:58)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1256)
         at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:765)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:305)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:185)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.share.http.ServletADFFilter.doFilter(ServletADFFilter.java:62)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
    Caused by: java.lang.NullPointerException
         at java.lang.Class.isAssignableFrom(Native Method)
         at oracle.j2ee.ws.common.jaxws.runtime.GenericJavaType.create(GenericJavaType.java:97)
         at oracle.j2ee.ws.common.jaxws.runtime.GenericJavaType.create(GenericJavaType.java:118)
         at oracle.j2ee.ws.common.jaxws.runtime.OperationMappingModeler.processParameters(OperationMappingModeler.java:268)
         at oracle.j2ee.ws.common.jaxws.runtime.OperationMappingModeler.processMethod(OperationMappingModeler.java:155)
         at oracle.j2ee.ws.common.jaxws.runtime.ServiceEndpointRuntimeModeler.buildRuntimeModel(ServiceEndpointRuntimeModeler.java:114)
         at oracle.j2ee.ws.client.jaxws.WsClientProxyFactory.getRuntimeMetadata(WsClientProxyFactory.java:69)
         at oracle.j2ee.ws.client.jaxws.WsClientProxyFactory.createProxy(WsClientProxyFactory.java:126)
         at oracle.j2ee.ws.client.jaxws.WsClientProxyFactory.createProxy(WsClientProxyFactory.java:106)
         at oracle.j2ee.ws.common.jaxws.ServiceDelegateImpl.getPort(ServiceDelegateImpl.java:219)
         at oracle.j2ee.ws.common.jaxws.ServiceDelegateImpl.getPort(ServiceDelegateImpl.java:249)
         at oracle.adf.model.connection.webservice.impl.WebServiceConnectionImpl.getJaxWSPort(WebServiceConnectionImpl.java:399)
         at ch.mit.test.test.testIt(test.java:27)
         at ch.mit.test.test.testws(test.java:41)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.el.parser.AstValue.invoke(Unknown Source)
         at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
         at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53)
         ... 44 moreCan anybody help as to what the problem is...
    (the WSDL is at http://www.webservicex.com/CurrencyConvertor.asmx?WSDL)
    Regards
    Paul

    Hi Frank
    The page is ADF bound, I've added the page source and the adfc-config source below :
    Page
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
      <jsp:directive.page contentType="text/html;charset=UTF-8"/>
      <f:view>
        <af:document id="d1">
          <af:form id="f1">
            <af:commandButton text="commandButton 1" id="cb1"
                              actionListener="#{test.testws}"/>
          </af:form>
        </af:document>
      </f:view>
    </jsp:root>adfc-config
    <?xml version="1.0" encoding="windows-1252" ?>
    <adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
      <view id="view1">
        <page>/view1.jspx</page>
      </view>
      <managed-bean id="__4">
        <managed-bean-name id="__3">test</managed-bean-name>
        <managed-bean-class id="__2">ch.mit.test.test</managed-bean-class>
        <managed-bean-scope id="__1">request</managed-bean-scope>
      </managed-bean>
    </adfc-config>It seems to be the same sort of problem as in Re: Error in ADF Web Service Connection
    Regards
    Paul

  • WEB SERVICE PROXY GENERATED USING 11.1.1.5.0 WSDL FAILS WITH 11.1.1.6.0

    I have created a Web Service Proxy project in Jdev using BI Publisher 11.1.1.5.0 WSDL (ReportService). Generated ReportService_Service method uses following QName to get the port:
    namespaceURI = "http://xmlns.oracle.com/oxp/service/v2"
    localPart = "*v2/ReportService*"
    Reports are generated successfully via Web Services when using BI Publisher 11.1.1.5.0 but when I use BI Publisher 11.1.1.6.x, it fails with this exception:
    +'javax.el.ELException: javax.xml.ws.WebServiceException: {http://xmlns.oracle.com/oxp/service/v2}v2/ReportService is not a valid port. Valid ports are: {http://xmlns.oracle.com/oxp/service/v2}ReportService'+
    I noticed that if the Web Service Proxy project is created using BI Publisher 1.1.1.1.6.0 WSDL (ReportService), the generated ReportService_Service method uses following QName to get the port:
    namespaceURI = "http://xmlns.oracle.com/oxp/service/v2"
    localPart = "*ReportService*"
    We are supporting both 11.1.1.5.0 and 11.1.1.6.x, so is there a way to make it work with both.
    FYI, I have tried removing v2 but then it only works with 11.1.1.6.0 and fails with 11.1.1.5.0.
    +Caused By: javax.xml.ws.WebServiceException: {http://xmlns.oracle.com/oxp/service/v2}ReportService is not a valid port. Valid ports are: {http://xmlns.oracle.com/oxp/service/*v2}v2/*ReportService+

    Dear,
    found the solution (after trying last 1-2 days ...).
    I was already using java 1.7 update 7.
    I had to start java settings and to deselect Java 1.7.0_07.
    Instead I selected latest Java version from Apple: 1.6.0_35-b10-428.
    With these settings the installer finishes without crash.
    Kind regards
    Lorenz
    Edited by: Lorenz on Oct 4, 2012 1:47 PM

  • Web service proxy client with client cert cause SSLSessionNotFoundErr

    Hi,
    I tried to run web service proxy client with certification from JDeveloper 10.1.3.0.4 to call PKI enabled web service got folllowing error:
    WARNING: Unable to connect to URL: due to java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: javax.net.ssl.SSLException: SSL handshake failed: SSLSessionNotFoundErr
    Web service deployed on OAS

    Hi,
    i am trying to invoke from JDeveloper (10.1.3) a CRM On Demand's Web Service and I hava the same problem:
    ADVERTENCIA: Unable to connect to URL: https://secure-ausomxgfa.crmondemand.com/Services/Integration due to java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: javax.net.ssl.SSLException: SSL handshake failed: SSLSessionNotFoundErr
    java.rmi.RemoteException: ; nested exception is:
         HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: javax.net.ssl.SSLException: SSL handshake failed: SSLSessionNotFoundErr
         at testerlast.runtime.Contact_Stub.contactInsert(Contact_Stub.java:96)
         at testerlast.ContactClient.contactInsert(ContactClient.java:88)
         at testerlast.ContactClient.main(ContactClient.java:69)
    Caused by: HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: javax.net.ssl.SSLException: SSL handshake failed: SSLSessionNotFoundErr
         at oracle.j2ee.ws.common.util.exception.JAXRPCExceptionBase.<init>(JAXRPCExceptionBase.java:93)
         at oracle.j2ee.ws.common.util.exception.JAXRPCExceptionBase.<init>(JAXRPCExceptionBase.java:89)
         at oracle.j2ee.ws.client.ClientTransportException.<init>(ClientTransportException.java:33)
         at oracle.j2ee.ws.client.http.HttpClientTransport.invokeImpl(HttpClientTransport.java:144)
         at oracle.j2ee.ws.client.http.HttpClientTransport.invoke(HttpClientTransport.java:121)
         at oracle.j2ee.ws.client.StreamingSender._sendImpl(StreamingSender.java:169)
         at oracle.j2ee.ws.client.StreamingSender._send(StreamingSender.java:111)
         at testerlast.runtime.Contact_Stub.contactInsert(Contact_Stub.java:80)
         ... 2 more
    To do the invocation I have done a proxy to consume this Web Service, with the follow main:
    public static void main(String[] args) {
    try {
    testerlast.ContactClient myPort = new testerlast.ContactClient();
    System.out.println("calling " + myPort.getEndpoint());
    myPort.setUsername(nameUser);
    myPort.setPassword(password);
    ListOfContactData llista = new ListOfContactData();
    ContactData[] contacts=new ContactData[2];
    ContactData contact=new ContactData();
    ContactInsert_Input input=new ContactInsert_Input();
    // Login WS HTTPS
    String idSesion=connexioWS_CRM.logon(URL,nameUser,password);
    // Add contact
    for (int i = 0; i < contacts.length; i++) {
    contact.setId("ProvaWSCRM"+i);
    contact.setContactFirstName("JDeveloper"+i);
    contact.setContactLastName("prove"+i);
    contact.setCellularPhone("77777777"+i);
    contact.setDescription("Add contact with Id:"+contact.getId());
    contacts=contact;
    System.out.println("Id:"+contacts[i].getId()+" firstName:"+contacts[i].getContactFirstName()+" lastName:"+contacts[i].getContactLastName());
    llista.setContact(contacts);
    input.setListOfContact(llista);
    input.setEcho("off");
    System.out.println("Pwd:"+myPort.getPassword()+" Port:"+myPort._port+" endpoint:"+myPort.getEndpoint()+" user:"+myPort.getUsername());
    myPort.contactInsert(llista,"LIC","Broadset","OFF");
    // Logout en WS (HTTPS)
    connexioWS_CRM.logoff(URL, idSesion);
    } catch (Exception ex) {
    ex.printStackTrace();
    What's wrong? Any idea?
    Thank you
    Edited by: user12085357 on 31-oct-2009 10:39

Maybe you are looking for

  • Alias in where clause

    Hi, This is a OCA certification question. 1. SQL> SELECT prod_name,prod_list_price,prod_list_price-(prod_list_price*.25) "DISCOUNTED_PRICE" FROM products WHERE discounted_price<10; The query generates an error. What is the reason of generating error?

  • Can anyone help? I got this error: "TOSBTMNG.ee ha...

    HI, Win XP Pro 2002 SP3 Nokia Suite 7.0.7.0 Connecting to a E65 via bluetooth All was working fine up until a little while ago, then "tosbtmng.exe has encountered a problem". And the phone will no longer connect via bluetooth. Hmmph! I get two errors

  • Re: fill-in boxes

    Does anyone know if their is a way to leave out or delete the fill-in boxes when creating a form in the FREE version of Adobe Acrobat?

  • Problem: Lightroom to Elements and back

    I can get an image from Lightroom 3 to Photoshop Elements 8 (Mac) but I can't seem to get back. Even after saving and closing the image in Elements it is not visible in Lightroom. Also, since I just changed printers I have new icc files. I have those

  • IPhone simulator Vs device   Help please

    I coded up an application and it works fine under the simulator. Now I go to run it on the iPhone and I get this: error:cannot find interface declaration for 'NSHost' Why would the app work in the simulator but not for the device? I have several apps