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

Similar Messages

  • Web service proxy and security constraint

    I've placed a security constraint on my web service and set the login-config auth-method as BASIC. When I run the Workshop test and the (Test View) browser begins to appear I am prompted for my username and password since it is protected --- great, it's working.
    Here's my problem, when I create the Java Proxy and try to access the web service using the proxy in another application I am never prompted for my username and password and thus the request fails. Anyway to fix this so I can be promted using the proxy??
    thanks in advance,
    Steve Touw

    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 creation issue

    am facing an issue with the creation of web service proxy for an esb project that i have created based on oracle esb tutorial. In the web service proxy creation wizard, it is accepting the concrete URL for the wsdl in the first step however in the second step it is not showing any endpoint URL. Also the wizard does not allow to go beyond step 2 of the web service proxy creation. following is my wsdl to which the concrete wsdl url points to. What am i missing here. Please help
    following is my wsdl
    <?xml version= '1.0' encoding= 'UTF-8' ?>
    <definitions
    name="custinsoap_RS"
    targetNamespace="http://oracle.com/esb/namespaces/custdata"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:tns="http://oracle.com/esb/namespaces/custdata"
    xmlns:inp1="http://xmlns.oracle.com/Esb/CustomerData"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
    <types>
    <schema xmlns="http://www.w3.org/2001/XMLSchema" >
    <import namespace="http://xmlns.oracle.com/Esb/CustomerData" schemaLocation="public_html/LegacyCustomer.xsd" />
    </schema>
    </types>
    <message name="CustomerData_request">
    <part name="CustomerData" element="inp1:CustomerData"/>
    </message>
    <portType name="Readcustsoapdata_ppt">
    <operation name="Readcustsoapdata">
    <input message="tns:CustomerData_request"/>
    </operation>
    </portType>
    <binding name="readsoapbinding" type="tns:Readcustsoapdata_ppt">
    <soap:binding style="document"
    transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="Readcustsoapdata">
    <soap:operation soapAction="http://oracle.com/esb/namespaces/custdata/Readcustsoapdata"/>
    <input>
    <soap:body use="literal" parts="CustomerData"/>
    </input>
    <output>
    <soap:body use="literal" parts=""/>
    </output>
    </operation>
    </binding>
    <service name="readcustdatasoapservice">
    <port name="soapport" binding="tns:readsoapbinding">
    <soap:address location="http://myhost.mycompany.com/esb/wsil/custdata/custinsoap_RS"/>
    </port>
    </service>
    </definitions>

    Hi,
    Are you accessing teh WSDl from a deployed service ? If yes, when providing the Web Service URL, did you extend the URL with ?WSDL ?
    Frank

  • Issues in using Jdev web service proxy

    Guys,
    I'm using jdeveloper web service proxy to call web services.
    But when i got the response, the response objects are not getting populated for complex type. I mean if the schema refers to another element name instead of primitive type.
    Do anyone faced this issue earlier? How can we resolve this issue?
    <element name="QuoteListCollectionResponse">
    <complexType>
    <sequence>
    <element name="PriceLocation">
    <complexType>
    <sequence>
    <element name="locationId" type="decimal"/>
    <element name="status" type="decimal"/>
    <element name="FboCollection" type="tns:fbo" minOccurs="0" maxOccurs="unbounded"/> *// response object is not getting populated here*
    </sequence>
    </complexType>
    </element>
    </sequence>
    </complexType>
    </element>
    <complexType name="fbo">
    <sequence>
    <element name="locationId" type="decimal"/>
    <element name="fbo" type="string"/>
    <element name="fboId" type="decimal"/>
    <element name="supplier" type="string"/>
    <element name="supplierId" type="decimal"/>
    <element name="deliveryMethod" type="string"/>
    <element name="priceExpirationDate" type="dateTime"/>
    <element name="domesticOrIntlIndicator" type="string"/>
    <element name="inputQty" type="decimal"/>
    <element name="totalFBOPrice" type="decimal"/>
    <element name="fuelStructureCollection" type="tns:fuelStructure" maxOccurs="20"/>
    </sequence>
    </complexType>
    <complexType name="fuelStructure">
    <sequence>
    <element name="fuel" type="string"/>
    <element name="fromQty" type="decimal"/>
    <element name="toQty" type="decimal"/>
    <element name="totalUSPrice" type="decimal"/>
    </sequence>
    </complexType>
    Edited by: Dev on Apr 14, 2011 2:37 PM

    bumping again...

  • Issues in using web service proxy

    Guys,
    I have created a web service proxy using jdeveloper 11g. I'm tried to call the web service. But my output is not getting populated as expected. I mean the objects on the response object is not getting populated as expected.
    I guess there is a issue with attributes having nillable=true or minoccurs , maxoccurs..
    Is there any known issues and workaround solutions for this?
    Any help would be appreciated.
    Below is my schema file:
    <schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns="http://www.w3.org/2001/XMLSchema"
    xmlns:tns="http://www.baseops.com/QuotePrice" targetNamespace="http://www.baseops.com/QuotePrice">
    <element name="QuoteListCollection">
    <complexType>
    <sequence>
    <element name="Quote" maxOccurs="100">
    <complexType>
    <sequence>
    <element name="customerId" type="decimal"/>
    <element name="fuelingLocationId" type="decimal"/>
    <element name="inventoryItemId" type="decimal"/>
    <element name="flightType" type="string"/>
    <element name="customerSiteId" type="decimal" nillable="true" minOccurs="0"/>
    <element name="domesticOrIntlIndicator" type="string"/>
    <element name="quantity" type="decimal"/>
    <element name="action" type="string"/>
    </sequence>
    </complexType>
    </element>
    </sequence>
    </complexType>
    </element>
    <element name="QuoteListCollectionResponse">
    <complexType>
    <sequence>
    <element name="PriceLocation">
    <complexType>
    <sequence>
    <element name="locationId" type="decimal"/>
    <element name="status" type="decimal"/>
    <element name="FboCollection" type="tns:fbo" minOccurs="0" maxOccurs="unbounded"/>
    </sequence>
    </complexType>
    </element>
    </sequence>
    </complexType>
    </element>
    <complexType name="fbo">
    <sequence>
    <element name="locationId" type="decimal"/>
    <element name="fbo" type="string" />
    <element name="fboId" type="decimal" nillable="true"/>
    <element name="supplier" type="string" nillable="true"/>
    <element name="supplierId" type="decimal" nillable="true"/>
    <element name="deliveryMethod" type="string" nillable="true"/>
    <element name="priceExpirationDate" type="dateTime" nillable="true"/>
    <element name="domesticOrIntlIndicator" type="string" nillable="true"/>
    <element name="inputQty" type="decimal" nillable="true"/>
    <element name="totalFBOPrice" type="decimal" nillable="true"/>
    <element name="fuelStructureCollection" type="tns:fuelStructure" maxOccurs="20"/>
    </sequence>
    </complexType>
    <complexType name="fuelStructure">
    <sequence>
    <element name="fuel" type="string"/>
    <element name="fromQty" type="decimal"/>
    <element name="toQty" type="decimal"/>
    <element name="totalUSPrice" type="decimal"/>
    </sequence>
    </complexType>
    </schema>
    Below is my wsdl file:
    <?xml version="1.0" encoding="UTF-8"?>
    <wsdl:definitions
    name="getBaseOpsQuotePriceList"
    targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/db/Enterprise-SOA/entBaseOpsFuelQuote/getBaseOpsQuotePriceList"
    xmlns:client="http://www.baseops.com/QuotePrice"
    xmlns:tns="http://xmlns.oracle.com/pcbpel/adapter/db/Enterprise-SOA/entBaseOpsFuelQuote/getBaseOpsQuotePriceList"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:plt="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
    >
    <wsdl:documentation>
    <abstractWSDL>http://mia-lap-d03.wfs.com:8012/soa-infra/services/default/entBaseOpsFuelQuote!1.0/GetBaseOpsQuotePriceList.wsdl</abstractWSDL>
    </wsdl:documentation>
    <plt:partnerLinkType name="getBaseOpsQuotePriceList_plt">
    <plt:role name="getBaseOpsQuotePriceList_role">
    <plt:portType name="tns:QuoteProcess"/>
    </plt:role>
    </plt:partnerLinkType>
    <wsdl:types>
    <schema xmlns="http://www.w3.org/2001/XMLSchema">
    <import namespace="http://www.baseops.com/QuotePrice" schemaLocation="QuotePrice.xsd"/>
    </schema>
    </wsdl:types>
    <wsdl:message name="QuoteProcessRequestMessage">
    <wsdl:part name="payload" element="client:QuoteListCollection"/>
    </wsdl:message>
    <wsdl:message name="QuoteProcessResponseMessage">
    <wsdl:part name="payload" element="client:QuoteListCollectionResponse"/>
    </wsdl:message>
    <wsdl:portType name="QuoteProcess">
    <wsdl:operation name="process">
    <wsdl:input message="tns:QuoteProcessRequestMessage"/>
    <wsdl:output message="tns:QuoteProcessResponseMessage"/>
    </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="QuoteProcessBinding" type="tns:QuoteProcess">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="process">
    <soap:operation style="document" soapAction="process"/>
    <wsdl:input>
    <soap:body use="literal" namespace="http://xmlns.oracle.com/pcbpel/adapter/db/Enterprise-SOA/entBaseOpsFuelQuote/getBaseOpsQuotePriceList"/>
    </wsdl:input>
    <wsdl:output>
    <soap:body use="literal" namespace="http://xmlns.oracle.com/pcbpel/adapter/db/Enterprise-SOA/entBaseOpsFuelQuote/getBaseOpsQuotePriceList"/>
    </wsdl:output>
    </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="GetBaseOpsQuotePriceList">
    <wsdl:port name="QuoteProcess_pt" binding="tns:QuoteProcessBinding">
    <soap:address location="http://soad2.wfs.com:8012/soa-infra/services/default/entBaseOpsFuelQuote/GetBaseOpsQuotePriceList"/>
    </wsdl:port>
    </wsdl:service>
    </wsdl:definitions>

    bumping again...

  • Sample web service proxy for accessing secured webservice

    Hi,
    Am trying to write a web service proxy to access a secured web service.
    How do we call the web service and pass the authentication information. I generated a service proxy in jdevelopr. in the main class i set the user name and password but was still unsuccessful.
    How do we set the "UsernameToken".
    Please see the sample header that is expected.
    <soap:Header>
    <wsa:Action>http://myactaction</wsa:Action>
    <wsa:MessageID>uuid:asdfadrewrwqr</wsa:MessageID>
    <wsa:ReplyTo>
    <wsa:Address>http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</wsa:Address>
    </wsa:ReplyTo>
    <wsa:To>http://myact</wsa:To>
    <wsse:Security soap:mustUnderstand="1">
    <wsse:UsernameToken wsu:Id="SecurityToken-321321">
    <wsse:Username>mordfsafsdae</wsse:Username>
    <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">werwqrewrwe</wsse:Password>
    </wsse:UsernameToken>
    </wsse:Security>
    </soap:Header>
    Any Sample service proxy would be a great help.
    Thanks
    -Kiran
    Edited by: user10473085 on Oct 25, 2008 1:05 PM

    Hi Kiran,
    Here are all steps You need to do
    "Securing Web Services using JDeveloper and WS-Security" http://www.oracle.com/technology/products/jdev/101/howtos/securews/index.html
    Set username and password:
    (...)myPort= new ServicePortTypeClient(); //<- Your webservice port class
    // security
    myPort.setUsername("exampleuser");
    myPort.setPassword("examplepassword");
    You don't need to write more code in java.
    I hope it helps.
    Kind regards
    Hubert M.
    Other documents:
    "Oracle® Application Server Web Services Security Guide" http://download.oracle.com/docs/cd/B31017_01/web.1013/b28976/toc.htm

  • Web Service Proxy and SSL

    Hi everyone,
    I am quite new to Web services and Jdeveloper in particular, but here is what Im trying to accomplish.
    I have created a Web Service Proxy using Jdeveloper 11g. I am trying to consume an external Service that is using SSL.
    I can see the WSDL, Jdev creates the stubs for me and I have added the code required. However, I keep getting the following error.
    "26/05/2008 14:48:39 oracle.j2ee.ws.common.context.ContextInterceptor init
    INFO: Context provider properties file not found
    26/05/2008 14:48:39 oracle.wsm.audit.Auditor <init>
    INFO: Created J2SE auditor for componentType=OWSM-AGENT busstop=.\auditlogs\OWSM-AGENT filter=false auditor=oracle.security.audit.Auditor@16089a5
    Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: Security Requirements not met - No Security header in message
         at oracle.j2ee.ws.client.jaxws.DispatchImpl.throwJAXWSSoapFaultException(DispatchImpl.java:554)
         at oracle.j2ee.ws.client.jaxws.DispatchImpl.invoke(DispatchImpl.java:456)
         at oracle.j2ee.ws.client.jaxws.WsClientProxyInvocationHandler.invoke(WsClientProxyInvocationHandler.java:204)
         at $Proxy27.getStockAvailable(Unknown Source)
         at StockAvailablePortClient.main(StockAvailablePortClient.java:26)
    Process exited with exit code 1."
    I have been able to make this work using Netbeans, but JDeveloper is a client requirement.
    Any help is greatly appreciated.
    Regards,
    Joe Fallon.

    Have you tried importing the 3rd parties public certificate for SSL to your CACerts keystore ($ORACLE_HOME/jdk/jre/lib/security/cacerts) on machine that is invoking call?
    We had a similar issue and adding to the CAcerts keystores resolved.

  • Deployment is failing on creating web service proxy in portlet.

    Hi All,
    I am using a JDeveloper 11.1.1.2.0.
    1) I have created a application (portlet producer application), which contains few jsf pages (not jspx).
    2) I have added a web service proxy ( using New>Business tier>Web services>web service proxy, provided a wsdl) for accesing a service which is exposed on different server.
    The above combination works perfectly fine.
    But When I convert the JSF pages to portlet (right click on JSF page and select create portlet entry option), and tried to run it throws following error.
    Note: soainvgpkg is the package which is generated when I create a web service proxy.
    It is generated under application resources.
    ++[11:04:31 AM] Redeploying Application...++
    ++<Aug 5, 2011 11:04:34 AM IST> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1312522471750' for task '0'. Error is: 'java.lang.NoClassDefFoundError: WEB-INF/classes/soainvgpkg/Execute_ptt (wrong name: soainvgpkg/Execute_ptt)'++
    ++java.lang.NoClassDefFoundError: WEB-INF/classes/soainvgpkg/Execute_ptt (wrong name: soainvgpkg/Execute_ptt)++
    ++     at java.lang.ClassLoader.defineClass1(Native Method)++
    ++     at java.lang.ClassLoader.defineClass(ClassLoader.java:621)++
    ++     at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)++
    ++     at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:344)++
    ++     at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:301)++
    ++     Truncated. see log file for complete stacktrace++
    ++Caused By: java.lang.NoClassDefFoundError: WEB-INF/classes/soainvgpkg/Execute_ptt (wrong name: soainvgpkg/Execute_ptt)++
    ++     at java.lang.ClassLoader.defineClass1(Native Method)++
    ++     at java.lang.ClassLoader.defineClass(ClassLoader.java:621)++
    ++     at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)++
    ++     at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:344)++
    ++     at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:301)++
    ++     Truncated. see log file for complete stacktrace++
    ++>++
    ++<Aug 5, 2011 11:04:34 AM IST> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating deploy task for application 'PortletProducer_Application'.>++
    ++<Aug 5, 2011 11:04:34 AM IST> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004++
    ++java.lang.NoClassDefFoundError: WEB-INF/classes/soainvgpkg/Execute_ptt (wrong name: soainvgpkg/Execute_ptt)++
    ++     at java.lang.ClassLoader.defineClass1(Native Method)++
    ++     at java.lang.ClassLoader.defineClass(ClassLoader.java:621)++
    ++     at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)++
    ++     at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:344)++
    ++     at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:301)++
    ++     Truncated. see log file for complete stacktrace++
    ++Caused By: java.lang.NoClassDefFoundError: WEB-INF/classes/soainvgpkg/Execute_ptt (wrong name: soainvgpkg/Execute_ptt)++
    ++     at java.lang.ClassLoader.defineClass1(Native Method)++
    ++     at java.lang.ClassLoader.defineClass(ClassLoader.java:621)++
    ++     at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)++
    ++     at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:344)++
    ++     at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:301)++
    ++     Truncated. see log file for complete stacktrace++
    ++>++
    ++[11:04:34 AM] #### Deployment incomplete. ####++
    ++[11:04:34 AM] Remote deployment failed++
    It works fine if I again remove the portlet entry and delete the portlet.xml and oracle-portlet.xml which were generated during portlet conversion time which is nothing but a normal JSf application.
    Please help,
    Thanks and regards,
    Kemp.
    Edited by: 877449 on Aug 4, 2011 11:33 PM

    Hi All,
    Facing same issue...
    Any solution
    Thanks & Regards,
    renuka

  • Error creating Web Service proxy

    Hello.
    I'm using JDeveloper 11.1.1.4.0 on Windows 7 for creating a Web Service Proxy on a service deployed on localhost. In the wizard everything runs fine but once I choose finish I receive the following error:
    java.lang.ClassCastException: oracle.jdeveloper.model.JavaSourceNode cannot be cast to oracle.jdeveloper.webservices.model.WebServiceProxyNode
         at oracle.jdeveloper.webservices.model.proxy.WebServiceProxy.getProxyAlreadyInProject(WebServiceProxy.java:2044)
         at oracle.jdeveloper.webservices.model.proxy.ProxyWarningChecker.getWarnings(ProxyWarningChecker.java:111)
         at oracle.jdevimpl.webservices.wizard.jaxrpc.common.WarningCommitListener.checkCommit(WarningCommitListener.java:105)
         at oracle.ide.wizard.FSMWizard.finishImpl(FSMWizard.java:864)
         at oracle.ide.wizard.FSMWizard._validateFSMState(FSMWizard.java:621)
         at oracle.ide.wizard.FSMWizard.doFinish(FSMWizard.java:333)
         at oracle.bali.ewt.wizard.BaseWizard$Action$1.run(BaseWizard.java:3940)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:178)
         at java.awt.Dialog$1.run(Dialog.java:1046)
         at java.awt.Dialog$3.run(Dialog.java:1098)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.awt.Dialog.show(Dialog.java:1096)
         at java.awt.Component.show(Component.java:1563)
         at java.awt.Component.setVisible(Component.java:1515)
         at java.awt.Window.setVisible(Window.java:842)
         at java.awt.Dialog.setVisible(Dialog.java:986)
         at oracle.bali.ewt.wizard.WizardDialog.runDialog(WizardDialog.java:382)
         at oracle.bali.ewt.wizard.WizardDialog.runDialog(WizardDialog.java:298)
         at oracle.ide.dialogs.WizardLauncher.runDialog(WizardLauncher.java:51)
         at oracle.jdevimpl.webservices.wizard.jaxrpc.ProxyWizard.runWizard(ProxyWizard.java:502)
         at oracle.jdevimpl.webservices.wizard.jaxrpc.ProxyGalleryWizard.invoke(ProxyGalleryWizard.java:86)
         at oracle.ide.wizard.WizardManager.invokeWizard(WizardManager.java:372)
         at oracle.ide.wizard.WizardManager$1.run(WizardManager.java:420)
         at oracle.ide.util.IdeUtil$3.run(IdeUtil.java:1089)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    Any clues about what's going on?
    Thanks Gerardo.

    I am also having this issue on Windows 7 using Oracle Fusion Middleware 11.1.1.4, and am prevented from moving forward. Please help.
    java.lang.ClassCastException: oracle.jdeveloper.model.JavaSourceNode cannot be cast to oracle.jdeveloper.webservices.model.WebServiceProxyNode
         at oracle.jdeveloper.webservices.model.proxy.WebServiceProxy.getProxyAlreadyInProject(WebServiceProxy.java:2044)
         at oracle.jdeveloper.webservices.model.proxy.ProxyWarningChecker.getWarnings(ProxyWarningChecker.java:111)
         at oracle.jdevimpl.webservices.wizard.jaxrpc.common.WarningCommitListener.checkCommit(WarningCommitListener.java:105)
         at oracle.ide.wizard.FSMWizard.finishImpl(FSMWizard.java:864)
         at oracle.ide.wizard.FSMWizard._validateFSMState(FSMWizard.java:621)
         at oracle.ide.wizard.FSMWizard.doFinish(FSMWizard.java:333)
         at oracle.bali.ewt.wizard.BaseWizard$Action$1.run(BaseWizard.java:3940)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:178)
         at java.awt.Dialog$1.run(Dialog.java:1046)
         at java.awt.Dialog$3.run(Dialog.java:1098)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.awt.Dialog.show(Dialog.java:1096)
         at java.awt.Component.show(Component.java:1563)
         at java.awt.Component.setVisible(Component.java:1515)
         at java.awt.Window.setVisible(Window.java:842)
         at java.awt.Dialog.setVisible(Dialog.java:986)
         at oracle.bali.ewt.wizard.WizardDialog.runDialog(WizardDialog.java:382)
         at oracle.bali.ewt.wizard.WizardDialog.runDialog(WizardDialog.java:298)
         at oracle.ide.dialogs.WizardLauncher.runDialog(WizardLauncher.java:51)
         at oracle.jdevimpl.webservices.wizard.jaxrpc.ProxyWizard.runWizard(ProxyWizard.java:502)
         at oracle.jdevimpl.webservices.wizard.jaxrpc.ProxyGalleryWizard.invoke(ProxyGalleryWizard.java:86)
         at oracle.ide.wizard.WizardManager.invokeWizard(WizardManager.java:372)
         at oracle.ide.wizard.WizardManager$1.run(WizardManager.java:420)
         at oracle.ide.util.IdeUtil$3.run(IdeUtil.java:1089)
         at oracle.javatools.util.SwingUtils.invokeAfterRepaint(SwingUtils.java:509)
         at oracle.ide.util.IdeUtil.invokeAfterRepaint(IdeUtil.java:1102)
         at oracle.ide.wizard.WizardManager$2.run(WizardManager.java:428)
         at oracle.ide.util.IdeUtil$3.run(IdeUtil.java:1089)
         at oracle.javatools.util.SwingUtils.invokeAfterRepaint(SwingUtils.java:509)
         at oracle.ide.util.IdeUtil.invokeAfterRepaint(IdeUtil.java:1102)
         at oracle.ide.wizard.WizardManager.invokeSecondaryWizard(WizardManager.java:424)
         at oracle.ide.gallery.ObjectGallery.invokeWizard(ObjectGallery.java:383)
         at oracle.ide.gallery.ObjectGallery.runDialog(ObjectGallery.java:204)
         at oracle.ide.gallery.ObjectGallery.runDialog(ObjectGallery.java:124)
         at oracle.ide.gallery.ObjectGalleryAddin._invokeGallery(ObjectGalleryAddin.java:405)
         at oracle.ide.gallery.ObjectGalleryAddin.handleEvent(ObjectGalleryAddin.java:208)
         at oracle.ide.controller.IdeAction.performAction(IdeAction.java:529)
         at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:884)
         at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:501)
         at oracle.ide.ceditor.keymap.IdeKeymapHelper.invokeAction(IdeKeymapHelper.java:180)
         at oracle.javatools.editor.keys.MultiKeyHandler.keyPressed(MultiKeyHandler.java:334)
         at java.awt.Component.processKeyEvent(Component.java:6225)
         at javax.swing.JComponent.processKeyEvent(JComponent.java:2801)
         at java.awt.Component.processEvent(Component.java:6044)
         at java.awt.Container.processEvent(Container.java:2041)
         at java.awt.Component.dispatchEventImpl(Component.java:4630)
         at java.awt.Container.dispatchEventImpl(Container.java:2099)
         at java.awt.Component.dispatchEvent(Component.java:4460)
         at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1850)
         at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:712)
         at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:990)
         at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:855)
         at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:676)
         at java.awt.Component.dispatchEventImpl(Component.java:4502)
         at java.awt.Container.dispatchEventImpl(Container.java:2099)
         at java.awt.Window.dispatchEventImpl(Window.java:2478)
         at java.awt.Component.dispatchEvent(Component.java:4460)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    And this was the final error message:
    java.lang.ClassCastException: oracle.jdeveloper.model.JavaSourceNode cannot be cast to oracle.jdeveloper.webservices.model.WebServiceProxyNode
         at oracle.jdeveloper.webservices.model.proxy.WebServiceProxy.getProxyAlreadyInProject(WebServiceProxy.java:2044)
         at oracle.jdeveloper.webservices.model.proxy.generator.ConfigureProxyGenerator.action(ConfigureProxyGenerator.java:57)
         at oracle.jdeveloper.webservices.model.generator.GeneratorAction.run(GeneratorAction.java:143)
         at java.lang.Thread.run(Thread.java:619)
    Edited by: user2407056 on Jan 12, 2012 11:37 AM

  • 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

  • Problem while creating web service proxy in Jdeveloper 10.1.3

    I am using Jdeveloper 10.1.3 to create a web service proxy so that I can track my request/response in HTTP Analyzer.
    I am following the steps as mentioned in the follwoing uRL:
    http://www.oracle.com/technology/obe/obe1013jdev/ws/wsandascontrol.htm
    But I get the following warning while creating the web servcice proxy:
    Generating proxy
    WARNING: value type package prefix is ignored for the types defined in the schema that has same target namespace as the target namespace of wsdl: <my web service namepsace>
    Proxy generation finished
    After adding my code in the main methoad of proxy, I get the following error while compiling:
    WARNING: Unable to connect to URL: <my web service proxy URL> due to java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: Connection refused: connect
    java.rmi.RemoteException: ; nested exception is:
    HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: Connection refused: connect
    Please help as how to solve this.
    Edited by: user11258855 on 02-Jul-2009 03:38

    I am using Jdeveloper 10.1.3 to create a web service proxy so that I can track my request/response in HTTP Analyzer.
    I am following the steps as mentioned in the follwoing uRL:
    http://www.oracle.com/technology/obe/obe1013jdev/ws/wsandascontrol.htm
    But I get the following warning while creating the web servcice proxy:
    Generating proxy
    WARNING: value type package prefix is ignored for the types defined in the schema that has same target namespace as the target namespace of wsdl: <my web service namepsace>
    Proxy generation finished
    After adding my code in the main methoad of proxy, I get the following error while compiling:
    WARNING: Unable to connect to URL: <my web service proxy URL> due to java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: Connection refused: connect
    java.rmi.RemoteException: ; nested exception is:
    HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: Connection refused: connect
    Please help as how to solve this.
    Edited by: user11258855 on 02-Jul-2009 03:38

  • Web Service Proxy not returning Response in 11g

    Hi,
    I am facing a difference in the creation of Web Service Proxy in 11g when compared to 10g. I have exposure of creating a Web Service Proxy in 10g and I do observe that the folder name 'runtime' gets generated automatically along with the proxy at the time of creation.
    But in 11g, the nature & behavior of Web Service Proxy creation has changed a lot according to my observation. I am facing an issue where the response object is not returning the expected results as per the functionality.
    In 10g, we have used a Stub class (automatically created under 'runtime' folder) and we are able to put some logs to see the request and response object in the form of 'xml'. But in 11g, I am facing difficulty in getting the same logged to see the response from OPA.
    Please share your thoughts which would definitely help me in resolving this issue.
    With Regards,
    Thiyagarajan V

    Hi,
    I have also tried using 'Web Service Data Control' as an alternate method to overcome the above mentioned issue. But I have ended up the error "DCA-29000: Unexpected exception caught: java.lang.NullPointerException,msg=null" and failed to create a data control.
    The JDeveloper version which I am using is 11.1.1.5.0. I also came to know that there is a patch (9790388) which has resolved this bug in JDeveloper. I also applied the same patch in my Oracle Home using OPatch utility.
    But unfortunatley, the version suitable for this patch is 11.1.1.4.0 and I suspected that could be one of the reason that the problem has not got resolved yet.
    Please suggest the patch or any solution which can also help me in resolving this issue. I really appreciate your time and effort in sharing your thoughts for the problems which I have mentioned over here.
    Thank you !!!
    With Regards,
    Thiyagarajan V

  • Web Service Proxy Project Grayed Out in App with All Technologies

    I have created a new application with "No Template [All Technologies]" in Jdev 10.1.3.5.0.4306. I want to create a web service proxy, but there are many choices grayed out, including the web service proxy. The only selection available under the Business Tier --> Web Services is the UDDI Registry Connection. Any ideas on what I need to do?
    I just downloaded JDev 10.1.3.5 from Oracle and I get the same issue.
    Thanks
    Edited by: 878316 on Apr 2, 2012 6:03 PM

    Hi there,
    On your project properties (double click on the project name) go to Technology Scope if you are in 11.1.1.6.0 or Features if you are in 11.1.2.x then select web services, click ok and now when you go to new all your Webservices options should be enable.
    - Juan C.

  • 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

  • Web Service Proxy client to invoke a Web service on SSL (Jdev 10.1.3.1)

    Hi,
    I have to develope a Web Service proxy client to invoke a web service on SSL. First I'm testing with OC4J 10.1.3.1 and JDEV 10.1.3.1 and did this:
    1) Developed a basic PL/SQL Web Service with JDEV and publish on my standalone OC4J.
    2) Made a test with a browser, it worked OK
    3) Generated a proxy client from JDev 10.1.3.1 to invoke web service, it worked OK
    --- Now make it work on SSL----
    4) Then, added SSL configuration to oc4j , generated a certificate with keytool (updated server.xml, secure-web-site.xml), and shutting down and starting the OC4j instance.
    5) Import the certificate to JAVA_HOME/jre/lib/security/cacerts
    6) Test web service from browser on https and worked OK.
    7) When tried to modified proxy client (generated in step 3) to make it work on SSL, I realized that just changing the END_POINT to the new url (https) it worked!
    Questions----
    1.- By default the proxy client generated from JDEV 10.1.3.1 knows how to deal with SSL conections?
    2.- If I dont have previously the server certificate to import it into JAVA keystore (cacerts) how could I ,from proxy client code, capture it and import it before the validation occurs... because if the certificate is not in keystore , the program fails.
    Thanks in advance
    J.

    Hi,
    Could you please provide me with the steps necessary to create a web service proxy client through JDeveloper or any other mechanism when 2 way SSL (requiring client authentication) is enabled.
    Thanks a lot in advance
    Nilesh

Maybe you are looking for

  • Mysterious forces changing backlight brightness

    Some mysterious forces are changing my laptop's brightness and I can't seem to figure it out what it is. For example, if my battery gets below 10% (also, why 10%?), it automatically changes brightness to something very low. Similarly, if battery gets

  • BOR event vs ABAP OO event

    Hi, I would like create new PO workflow (BUS2012) using ABAP OO workflow. Is it possible to use the existing BOR event, such as RELEASESTEPCREATED  instead of creating new one for the ABAP OO workflow class? And if we can re-use the event, how do we

  • PL/SQL using Shell Script

    Hi, I want to study in details about how to use shell script in pl/sql codes. Can any one suggest some useful link on the same. Nordik

  • Recover initials files name and directories name

    Ladies & Gentlemen, I am newby with iTunes, and I look for some answers. Before I'd installed iTunes and I'd connected my ipod, I have all my music organized by myself. After that all my files were renamed, directories have changed etc. It's crazy, I

  • Using Griffin LapelMic to take VoiceMemos

    I bought myself a Griffin Lapel Mic, which should be fully compatiple with all I-Pods. I did´t as farI see everything written in the Dokumentation for the IPod Photo I´ve got, but still have no Idea what to do to record voice memos. Do you got a clue