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

Similar Messages

  • Validation Failed when creating Web Service Proxy

    Hi
    I am having trouble creating a web service proxy in JDeveloper (11.1.1.3). When I enter the endpoint URL (which is a https WSDL file). I get the following error:
    No WSDL document could be found at https://host:port/.../.././...wsdl.
    I can open the WSDL in SOAP UI and it accesses it fine and I can call the service within.
    When I put it in a browser I need to enter the authentication details before I can view the WSDL.
    But I can't get to the next step in the Web Service Proxy wizard, I've had a look in the threads before an couldn't find any help.
    Is there anyone who can help me with this?
    Regards
    Saheem

    Thanks John but unfortunatly that didn't help.
    I removed the proxy but the WSDL was still not found I also added the host to the Proxy exceptions list and switched the proxy back on but this did not work either.
    I also tried the method in the link you provided. But I get an error when attempting to create a Web Service Dasta Control too. The error I get here is:
    DCA-40002: The WSDL document is invalid due to the following reason: WSDl Exception: faultCode=PARSER_ERROR: Failed to read wsdl file at: "https://../../..wsdl", caused by javax.net.ssl.SSLHandshakeException. :...........

  • Create Web Service Proxy -  Union Schema Element has not been implemented

    Create Web Service Proxy
    Validation Failed:
    WSDLException: faultCode=INVALID_WSDL: unsupported XML Schema feature(Union Schema Element has not been implemented)
    WSDL source: http://personal.inet.fi/cool/sports/misc/FlatWSDL/SOAPFrontGetShowBalanceJMS.wsdl

    Looks like this was a false alarm. There were some issues with the message schema.
    Sorry for the confusion.

  • Validation error while creating Web Service Proxy.

    Hi,
    I'm trying to create Web Service Proxy. But I'm stuck with a Validation error
    model error: type
    +"{http://xmlns.oracle.com/2001/XMLSchema/DOM}+
    +org.w3c.dom.Document" not found.+
    I'm using "Create Web Service Proxy" wizard. There are 6 steps in creating proxy through JDev. wizard.
    First step itself displaying the above validation error when I click on "Next" button.
    Few points
    We have created web service using "oracle.j2ee.ws.StatelessJavaRpcWebService" servlet
    Thanks in advance.
    -Sukumar

    Hi,
    It might be that the .net service which you have is not WS-I compliant. Can you first run WS-I Analyzer on the wsdl to see it the test passes.
    Thanks,
    Vishal

  • How to create Web service proxy in Eclipse?

    Hi,
    I want to create web service proxy in Eclipse. Can someone tell me what all plug ins are needed for it and what is the detail procedure for the same?
    Thanks in advance.

    Proxy class is out of date now... proxy class only support stateful web service call... and stateful web service may became a big limitation in development.
    Try to thinking about how to use stateless web service call, you may get an alternative solution.
    Edited by: user13036981 on 2011-10-7 上午9:20

  • 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

  • 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

  • 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

  • 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

  • Error creating web service proxy for bpel process in jdev 10.1.3

    Hi,
    I am trying to create a web service proxy in Jdeveloper 10.1.3, and get the following error:
    Element type "fault" is missing required attribute "name"
    I have created a fault on one of the operations, and in the .wsdl file there is a name attribute:
    <operation name="process">
    <fault name="TestError" message="client:TestErrorMessage"/>
    </operation>
    The fault definition in the .wsdl obtained from the process when you access it over http is somewhat different:
    <fault>
    <soap:fault name="TestError" use="literal" encodingStyle="" />
    </fault>
    Any ideas how to workaround this problem?
    Toby

    Hi Susan,
    The WSDL generated by BPEL designer is :
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions name="EncryptedPasswordTest"
    targetNamespace="http://xmlns.oracle.com/EncryptedPasswordTest"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:client="http://xmlns.oracle.com/EncryptedPasswordTest"
    xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/">
         <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         TYPE DEFINITION - List of services participating in this BPEL process
         The default output of the BPEL designer uses strings as input and
         output to the BPEL Process. But you can define or import any XML
         Schema type and us them as part of the message types.
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
         <types>
              <schema attributeFormDefault="qualified"
                   elementFormDefault="qualified"
                   targetNamespace="http://xmlns.oracle.com/EncryptedPasswordTest"
                   xmlns="http://www.w3.org/2001/XMLSchema">
                   <element name="EncryptedPasswordTestProcessRequest">
                        <complexType>
                             <sequence>
                                  <element name="username" type="string"/>
                             </sequence>
                        </complexType>
                   </element>
                   <element name="EncryptedPasswordTestProcessResponse">
                        <complexType>
                             <sequence>
                                  <element name="password" type="string"/>
                             </sequence>
                        </complexType>
                   </element>
                   <element name="EncryptedPasswordTestProcessError">
                        <complexType>
                             <sequence>
                                  <element name="code" type="string"/>
                                  <element name="description" type="string"/>
                             </sequence>
                        </complexType>
                   </element>
              </schema>
         </types>
         <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         MESSAGE TYPE DEFINITION - Definition of the message types used as
         part of the port type defintions
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
         <message name="EncryptedPasswordTestRequestMessage">
              <part name="payload" element="client:EncryptedPasswordTestProcessRequest"/>
         </message>
         <message name="EncryptedPasswordTestResponseMessage">
              <part name="payload" element="client:EncryptedPasswordTestProcessResponse"/>
         </message>
         <message name="EncryptedPasswordTestErrorMessage">
              <part name="payload" element="client:EncryptedPasswordTestProcessError"/>
         </message>
         <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         PORT TYPE DEFINITION - A port type groups a set of operations into
         a logical service unit.
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
         <!-- portType implemented by the EncryptedPasswordTest BPEL process -->
         <portType name="EncryptedPasswordTest">
              <operation name="process">
                   <input message="client:EncryptedPasswordTestRequestMessage" />
                   <output message="client:EncryptedPasswordTestResponseMessage"/>
    <fault name="EncryptedPasswordTestError" message="client:EncryptedPasswordTestErrorMessage"/>
              </operation>
         </portType>
         <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         PARTNER LINK TYPE DEFINITION
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
         <plnk:partnerLinkType name="EncryptedPasswordTest">
              <plnk:role name="EncryptedPasswordTestProvider">
                   <plnk:portType name="client:EncryptedPasswordTest"/>
              </plnk:role>
         </plnk:partnerLinkType>
    </definitions>
    And the WSDL produced when you access the ws endpoint is:
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions
    name="EncryptedPasswordTest"
    targetNamespace="http://xmlns.oracle.com/EncryptedPasswordTest"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:tns="http://xmlns.oracle.com/EncryptedPasswordTest"
    xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:client="http://xmlns.oracle.com/EncryptedPasswordTest"
    >
    <types>
    <schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://xmlns.oracle.com/EncryptedPasswordTest"
    xmlns="http://www.w3.org/2001/XMLSchema">
    <element name="EncryptedPasswordTestProcessRequest">
    <complexType>
    <sequence>
    <element name="username" type="string"/>
    </sequence>
    </complexType>
    </element>
    <element name="EncryptedPasswordTestProcessResponse">
    <complexType>
    <sequence>
    <element name="password" type="string"/>
    </sequence>
    </complexType>
    </element>
    <element name="EncryptedPasswordTestProcessError">
    <complexType>
    <sequence>
    <element name="code" type="string"/>
    <element name="description" type="string"/>
    </sequence>
    </complexType>
    </element>
    </schema>
    </types>
    <message name="EncryptedPasswordTestErrorMessage">
    <part name="payload" element="tns:EncryptedPasswordTestProcessError"/>
    </message>
    <message name="EncryptedPasswordTestResponseMessage">
    <part name="payload" element="tns:EncryptedPasswordTestProcessResponse"/>
    </message>
    <message name="EncryptedPasswordTestRequestMessage">
    <part name="payload" element="tns:EncryptedPasswordTestProcessRequest"/>
    </message>
    <portType name="EncryptedPasswordTest">
    <operation name="process">
    <input message="tns:EncryptedPasswordTestRequestMessage"/>
    <output message="tns:EncryptedPasswordTestResponseMessage"/>
    <fault name="EncryptedPasswordTestError" message="tns:EncryptedPasswordTestErrorMessage"/>
    </operation>
    </portType>
    <binding name="EncryptedPasswordTestBinding" type="tns:EncryptedPasswordTest">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="process">
    <soap:operation style="document" soapAction="process"/>
    <input>
    <soap:body use="literal"/>
    </input>
    <output>
    <soap:body use="literal"/>
    </output>
    <fault>
    <soap:fault name="EncryptedPasswordTestError" use="literal" encodingStyle=""/>
    </fault>
    </operation>
    </binding>
    <service name="EncryptedPasswordTest">
    <port name="EncryptedPasswordTestPort" binding="tns:EncryptedPasswordTestBinding">
    <soap:address location="http://bpel5.lon.domroot.com:7779/orabpel/default/EncryptedPasswordTest/1.0"/>
    </port>
    </service>
    <plnk:partnerLinkType name="EncryptedPasswordTest">
    <plnk:role name="EncryptedPasswordTestProvider">
    <plnk:portType name="tns:EncryptedPasswordTest"/>
    </plnk:role>
    </plnk:partnerLinkType>
    </definitions>

  • Error when creating Web Service Proxy

    Hi',
    I am creating a web service proxy to call a web service (OSB) "http://st-curriculum.oracle.com/obe/jdev/obe11jdev/ps1/webservices/ws.html#t5", I am making a client to call a OSB proxy and I am able to see the WSDL in the IE, however when I try to create a client using Jdev I get below error.
    Please advice me.
    Thanks
    Yatan
    oracle.jdeveloper.webservices.model.WebServiceException: Error creating model from wsdl "http://localhost:8001/xx/som/contracts/CustomerContract?wsdl": A class/interface with the same name "com.xx.gpsc.som.core.schema.somcommon.v1.TaskCompletionMessage" is already in use. Use a class customization to resolve this conflict.(Relevant to above error) another "TaskCompletionMessage" is generated from here.(Relevant to above error) another "SOMMessage" is generated from here.A class/interface with the same name "com.xx.gpsc.som.core.schema.somcommon.v1.SOMMessage" is already in use. Use a class customization to resolve this conflict.Two declarations cause a collision in the ObjectFactory class.(Related to above error) This is the other declaration.
         at oracle.jdeveloper.webservices.model.java.JavaWebService.createPortTypes(JavaWebService.java:1635)
         at oracle.jdeveloper.webservices.model.WebService.createServiceFromWSDL(WebService.java:2846)
         at oracle.jdeveloper.webservices.model.WebService.createServiceFromWSDL(WebService.java:2611)
         at oracle.jdeveloper.webservices.model.java.JavaWebService.<init>(JavaWebService.java:509)
         at oracle.jdeveloper.webservices.model.java.JavaWebService.<init>(JavaWebService.java:461)
         at oracle.jdeveloper.webservices.model.proxy.WebServiceProxy$ProxyJavaWebService.<init>(WebServiceProxy.java:2268)
         at oracle.jdeveloper.webservices.model.proxy.WebServiceProxy.updateServiceModel(WebServiceProxy.java:1701)
         at oracle.jdeveloper.webservices.model.proxy.WebServiceProxy.setDescription(WebServiceProxy.java:525)
         at oracle.jdevimpl.webservices.wizard.jaxrpc.proxy.ProxyJaxWsSpecifyWSDLPanel.setDescription(ProxyJaxWsSpecifyWSDLPanel.java:238)
         at oracle.jdevimpl.webservices.wizard.jaxrpc.common.SpecifyWsdlPanel.buildModel(SpecifyWsdlPanel.java:1109)
         at oracle.jdevimpl.webservices.wizard.jaxrpc.common.SpecifyWsdlPanel$5.run(SpecifyWsdlPanel.java:661)
         at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:655)
         at java.lang.Thread.run(Thread.java:619)
    Caused by: oracle.jdeveloper.webservices.tools.WsdlValidationException: Error creating model from wsdl "http://localhost:8001/xx/som/contracts/CustomerContract?wsdl": A class/interface with the same name "com.xx.gpsc.som.core.schema.somcommon.v1.TaskCompletionMessage" is already in use. Use a class customization to resolve this conflict.(Relevant to above error) another "TaskCompletionMessage" is generated from here.(Relevant to above error) another "SOMMessage" is generated from here.A class/interface with the same name "com.xx.gpsc.som.core.schema.somcommon.v1.SOMMessage" is already in use. Use a class customization to resolve this conflict.Two declarations cause a collision in the ObjectFactory class.(Related to above error) This is the other declaration.
         at oracle.jdevimpl.webservices.tools.wsa.WsaAdaptor.newWsdlValidationException(WsaAdaptor.java:825)
         at oracle.jdevimpl.webservices.tools.wsa.WsaAdaptor.getSeiInfo(WsaAdaptor.java:515)
         at oracle.jdeveloper.webservices.tools.WebServiceTools.getSeiInfo(WebServiceTools.java:523)
         at oracle.jdeveloper.webservices.model.java.JavaWebService.getSeiInfo(JavaWebService.java:1741)
         at oracle.jdeveloper.webservices.model.java.JavaWebService.createPortTypes(JavaWebService.java:1496)
         ... 12 more
    Caused by: oracle.j2ee.ws.common.tools.api.ValidationException: Error creating model from wsdl "http://localhost:8001/xx/som/contracts/CustomerContract?wsdl": A class/interface with the same name "com.xx.gpsc.som.core.schema.somcommon.v1.TaskCompletionMessage" is already in use. Use a class customization to resolve this conflict.(Relevant to above error) another "TaskCompletionMessage" is generated from here.(Relevant to above error) another "SOMMessage" is generated from here.A class/interface with the same name "com.xx.gpsc.som.core.schema.somcommon.v1.SOMMessage" is already in use. Use a class customization to resolve this conflict.Two declarations cause a collision in the ObjectFactory class.(Related to above error) This is the other declaration.
         at oracle.j2ee.ws.tools.wsa.jaxws.JaxwsWsdlToJavaTool.getJAXWSModel(JaxwsWsdlToJavaTool.java:664)
         at oracle.j2ee.ws.tools.wsa.WsdlToJavaTool.createJAXWSModel(WsdlToJavaTool.java:475)
         at oracle.j2ee.ws.tools.wsa.Util.getJaxWsSeiInfo(Util.java:1357)
         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 oracle.jdevimpl.webservices.tools.wsa.Assembler$2$1.invoke(Assembler.java:218)
         at $Proxy50.getJaxWsSeiInfo(Unknown Source)
         at oracle.jdevimpl.webservices.tools.wsa.WsaAdaptor.getSeiInfo(WsaAdaptor.java:505)
         ... 15 more
    Caused by: oracle.j2ee.ws.common.tools.api.ValidationException: A class/interface with the same name "com.xx.gpsc.som.core.schema.somcommon.v1.TaskCompletionMessage" is already in use. Use a class customization to resolve this conflict.(Relevant to above error) another "TaskCompletionMessage" is generated from here.(Relevant to above error) another "SOMMessage" is generated from here.A class/interface with the same name "com.xx.gpsc.som.core.schema.somcommon.v1.SOMMessage" is already in use. Use a class customization to resolve this conflict.Two declarations cause a collision in the ObjectFactory class.(Related to above error) This is the other declaration.
         at oracle.j2ee.ws.tools.wsa.SchemaTool.genValueTypes(SchemaTool.java:188)
         at oracle.j2ee.ws.tools.wsa.jaxws.JaxwsWsdlToJavaTool.getJAXWSModel(JaxwsWsdlToJavaTool.java:647)
         ... 24 more
    Caused by: oracle.j2ee.ws.common.databinding.common.spi.DatabindingException: A class/interface with the same name "com.xx.gpsc.som.core.schema.somcommon.v1.TaskCompletionMessage" is already in use. Use a class customization to resolve this conflict.(Relevant to above error) another "TaskCompletionMessage" is generated from here.(Relevant to above error) another "SOMMessage" is generated from here.A class/interface with the same name "com.xx.gpsc.som.core.schema.somcommon.v1.SOMMessage" is already in use. Use a class customization to resolve this conflict.Two declarations cause a collision in the ObjectFactory class.(Related to above error) This is the other declaration.
         at oracle.j2ee.ws.common.tools.databinding.jaxb20.JAXB20TypeGenerator.generateJavaTypes(JAXB20TypeGenerator.java:120)
         at oracle.j2ee.ws.tools.wsa.SchemaTool.genValueTypes(SchemaTool.java:186)
         ... 25 more

    Hi Yatan
    The error is mostly there may be some Duplicate variable/schema element decalared in the wsdl or the xsd referred in the wsdl. Like in WSDL for any Operations, most of the times, we use input and outputs as complex xsd element. We declare these xsd in the same file or in another file and import that in the .wsdl file. So check or validate your XSD file for any Duplicates.
    In JDeveloper itself, I think, you can open XSD or WSDL and validate it from right click menu options like that.
    Thanks
    Ravi Jegga

  • Creating Web Service Proxy From WSDL - Error SPRX046

    We are attempting to create some Web Service proxy objects from some WSDL files. Some of the WSDL files contain message definitions with multiple parts such as
    <i><wsdl:message name="GetNewSubmissionsResponse">
          <wsdl:part element="impl:Count" name="Count"/>
          <wsdl:part element="impl:MoreAvailable"       name="MoreAvailable"/>
          <wsdl:part element="impl:IRSData" name="IRSData"/>
          <wsdl:part element="impl:StateSubmissions" name="StateSubmissions"/>
       </wsdl:message></i>
    This always generates the error message <b>SPRX046 - "
    Msg Proxy generation terminated: Message must have exactly one part".</b>
    Is this just a limitation with SAP Web AS? Has anyone dealt with this before? These WSDLs work in other environments (AXIS Java, XML Spy etc).
    Thanks

    It seems ABAP proxy only supports Document-Literal style WSDL. Document-literal style is supported by most Web services platforms, and is supposed to be most interoperable.
    Per WS-I Basic Profile 1.0 (see [1])which provides interoperability guidance of using WSDL1.1, when the message part is defined using the @element attribute, the message can only be bound to so-called "document-Literal" style which in turn requires that the message contains only one part.The WSDL you provided violated the document-literal rules.
    Have you tried to change the message definition a bit so it's BP conformant? Try defining a complex type for the subelements, then define an wrapper element to use that complex type, and finally let the message part to refer to the wrapper element. Something like,
    <wsdl:message name="GetNewSubmissionsResponse">
    <wsdl:part element="impl:GetNewSubmissionsResponseWrapper" name="myResponse"/>
    </wsdl:message>

  • Error Creating Web Service Proxy in JDeveloper wizard

    Hi,
    I'm trying to create a Web Service Proxy from a WDSL file with JDeveloper wizards, the problem is when i click Finish in the last step an exception occurs.
    java.lang.NullPointerException
         at oracle.jdeveloper.webservices.model.proxy.WebServiceProxy.getProxyAlreadyInProject(WebServiceProxy.java:1593)
         at oracle.jdeveloper.webservices.model.proxy.ProxyWarningChecker.getWarnings(ProxyWarningChecker.java:101)
         at oracle.jdevimpl.webservices.wizard.jaxrpc.common.WarningCommitListener.checkCommit(WarningCommitListener.java:102)
         at oracle.ide.wizard.FSMWizard.finishImpl(FSMWizard.java:295)
         at oracle.ide.wizard.FSMWizard.mav$finishImpl(FSMWizard.java:54)
         at oracle.ide.wizard.FSMWizard$1.run(FSMWizard.java:271)
         at oracle.ide.util.IdeUtil.invokeAfterRepaint(IdeUtil.java:1093)
         at oracle.ide.wizard.FSMWizard.doFinish(FSMWizard.java:269)
         at oracle.bali.ewt.wizard.BaseWizard$Action.actionPerformed(Unknown Source)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
         at java.awt.Component.processMouseEvent(Component.java:5488)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
         at java.awt.Component.processEvent(Component.java:5253)
         at java.awt.Container.processEvent(Container.java:1966)
         at java.awt.Component.dispatchEventImpl(Component.java:3955)
         at java.awt.Container.dispatchEventImpl(Container.java:2024)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
         at java.awt.Container.dispatchEventImpl(Container.java:2010)
         at java.awt.Window.dispatchEventImpl(Window.java:1774)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:153)
         at java.awt.Dialog$1.run(Dialog.java:515)
         at java.awt.Dialog.show(Dialog.java:536)
         at java.awt.Component.show(Component.java:1300)
         at java.awt.Component.setVisible(Component.java:1253)
         at oracle.bali.ewt.wizard.WizardDialog.runDialog(Unknown Source)
         at oracle.bali.ewt.wizard.WizardDialog.runDialog(Unknown Source)
         at oracle.ide.dialogs.WizardLauncher.runDialog(WizardLauncher.java:51)
         at oracle.jdevimpl.webservices.wizard.jaxrpc.ProxyWizard.runWizard(ProxyWizard.java:321)
         at oracle.jdevimpl.webservices.wizard.jaxrpc.ProxyGalleryWizard.invoke(ProxyGalleryWizard.java:82)
         at oracle.ide.wizard.WizardManager.invokeWizard(WizardManager.java:310)
         at oracle.ide.wizard.WizardManager$2.run(WizardManager.java:358)
         at oracle.ide.util.IdeUtil.invokeAfterRepaint(IdeUtil.java:1093)
         at oracle.ide.wizard.WizardManager$1.run(WizardManager.java:366)
         at oracle.ide.util.IdeUtil$1$1.run(IdeUtil.java:1073)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    The JDeveloper version i'm using is 10.1.3.0.4.
    Does anybody knows how to fix this problem?
    Thanks,
    Nuno

    Yes, i have created a fault on one of the operations, however in the .wsdl file it does have a name attribute.
    <operation name="process">
    <fault name="TestError" message="client:TestErrorMessage"/>
    </operation>
    The fault definition in the .wsdl obtained from the process when you access it over http is somewhat different:
    <fault>
    <soap:fault name="TestError" use="literal" encodingStyle="" />
    </fault>
    Toby

  • WARNING while creating Web Service Proxy

    Hi,
    Im getting an warning while creating a Web Service 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:
    Dose anyone knows why this occurs?
    Thanks.
    Nilaksha.

    When I change the schema targetNamespace=java:mypkg.adress/type its gives me errors and could not create the stub
    WARNING: exception occurred while processing type {java:mypkg.adress/type}getAdd, model error: type "{java:mypkg.adress}string6" not found.
    What should I have done?
    This is a part of wsdl file
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <definitions xmlns:tns="java:mypkg.adress" xmlns:wsr="http://www.openuri.org/2002/10/soap/reliability/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap12enc="http://www.w3.org/2003/05/soap-encoding" xmlns:conv="http://www.openuri.org/2002/04/wsdl/conversation/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="java:mypkg.adress">
    <types>
    <xs:schema xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:rva="java:mypkg.adress" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" elementFormDefault="unqualified" attributeFormDefault="unqualified" targetNamespace="java:mypkg.adress/types">
    <xs:import namespace="http://schemas.xmlsoap.org/soap/encoding/">
    </xs:import>
    <xs:complexType name="SoapFaultDetails">
    <xs:sequence>
    <xs:element type="xs:int" name="code" nillable="false">
    </xs:element>
    <xs:element type="xs:string" name="class" nillable="false">
    </xs:element>
    <xs:element type="xs:string" name="callid" nillable="false">
    </xs:element>
    <xs:element type="xs:dateTime" name="timestamp" nillable="false">
    </xs:element>
    <xs:element type="rva:StringArray" name="params" nillable="false">
    </xs:element>
    </xs:sequence>
    </xs:complexType>
    Thanks
    Nilaksha

  • Validation Failed. Creation Web Service Proxy

    Hi, all
    I've got a problem with JDeveloper 10.1.3 when I try to create a web serviceproxy using the wizard.
    My service class is next,
    package swa;
    import java.awt.Graphics;
    import java.awt.Image;
    import java.awt.Toolkit;
    import java.awt.color.ColorSpace;
    import java.awt.geom.AffineTransform;
    import java.awt.image.AffineTransformOp;
    import java.awt.image.BufferedImage;
    import java.awt.image.ColorConvertOp;
    import java.awt.image.RescaleOp;
    import javax.xml.soap.AttachmentPart;
    import javax.xml.soap.MessageFactory;
    import javax.xml.soap.SOAPException;
    import javax.xml.soap.SOAPMessage;
    public class ImgToolbox {
    public final static int FLIP_VERTICAL = 0;
    public final static int FLIP_HORIZONTAL = 1;
    public final static int FLIP_VERTICAL_HORIZONTAL = 2;
    public AttachmentPart toGray(AttachmentPart imagen){
    AttachmentPart apRetorno = null;
    try{
    Image image = (Image)imagen.getContent();
    BufferedImage originalImage = new BufferedImage(image.getWidth(null), image.getHeight(null), BufferedImage.TYPE_INT_RGB);
    ColorSpace cs = ColorSpace.getInstance(ColorSpace.CS_GRAY);
    ColorConvertOp op = new ColorConvertOp(cs, null);
    BufferedImage grayImage = op.filter(originalImage, null);
    // Creación del AttachmentPart con la nueva imagen
    MessageFactory mf = MessageFactory.newInstance();
    SOAPMessage message = mf.createMessage();
    apRetorno = message.createAttachmentPart();
    apRetorno.setContent(Toolkit.getDefaultToolkit().createImage(grayImage.getSource()),"image/jpeg");
    } catch(SOAPException e){
    System.out.println("Error, en el mensaje SOAP.");
    return apRetorno;
    public AttachmentPart flip(AttachmentPart ap, int tipo){
    AttachmentPart apRetorno = null;
    try{
    Image image = (Image)ap.getContent();
    BufferedImage originalImage = new BufferedImage(image.getWidth(null), image.getHeight(null), BufferedImage.TYPE_INT_RGB);
    AffineTransform tx = null;
    AffineTransformOp op = null;
    switch(tipo){
    case FLIP_VERTICAL : {
    tx = AffineTransform.getScaleInstance(1, -1);
    tx.translate(0, -image.getHeight(null));
    break;
    case FLIP_HORIZONTAL : {
    tx = AffineTransform.getScaleInstance(-1, 1);
    tx.translate(-image.getWidth(null), 0);
    break;
    case FLIP_VERTICAL_HORIZONTAL : {
    tx = AffineTransform.getScaleInstance(-1, -1);
    tx.translate(-image.getWidth(null), -image.getHeight(null));
    break;
    op = new AffineTransformOp(tx, AffineTransformOp.TYPE_NEAREST_NEIGHBOR);
    BufferedImage flipImage = op.filter(originalImage, null);
    // Creación del AttachmentPart con la nueva imagen
    MessageFactory mf = MessageFactory.newInstance();
    SOAPMessage message = mf.createMessage();
    apRetorno = message.createAttachmentPart();
    apRetorno.setContent(Toolkit.getDefaultToolkit().createImage(flipImage.getSource()),"image/jpeg");
    } catch (SOAPException e) {
    System.out.println("Error, en el mensaje SOAP.");
    return apRetorno;
    public AttachmentPart resize(AttachmentPart img,float escala){
    AttachmentPart apRetorno = null;
    try{
    Image image = (Image)img.getContent();
    BufferedImage originalImage = new BufferedImage(image.getWidth(null), image.getHeight(null), BufferedImage.TYPE_INT_RGB);
    // Se rellena la BufferedImage con la imagen original
    Graphics g = originalImage.createGraphics();
    g.drawImage(image, 0, 0, null);
    g.dispose();
    // Modificación de la imagen original
    RescaleOp op = new RescaleOp(escala, 0, null);
    BufferedImage tempImage = op.filter(originalImage, null);
    // Creación del AttachmentPart con la nueva imagen
    MessageFactory mf = MessageFactory.newInstance();
    SOAPMessage message = mf.createMessage();
    apRetorno = message.createAttachmentPart();
    apRetorno.setContent(Toolkit.getDefaultToolkit().createImage(tempImage.getSource()),"image/jpeg");
    } catch (SOAPException e) {
    System.out.println("Error, en el mensaje SOAP.");
    return apRetorno;
    the wizard creates a JAX-RPC web service without problems from this class. However, if I click on "Regenerate Web Service from WSDL..." the method fails and throws a exception. The trace is next :
    java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
         at java.util.ArrayList.RangeCheck(ArrayList.java:547)
         at java.util.ArrayList.get(ArrayList.java:322)
         at oracle.jdeveloper.webservices.model.SOAPBinding.<init>(SOAPBinding.java:243)
         at oracle.jdeveloper.webservices.model.Binding.create(Binding.java:668)
         at oracle.jdeveloper.webservices.model.WebService.createServiceFromWSDL(WebService.java:2275)
         at oracle.jdeveloper.webservices.model.WebService.createServiceFromWSDL(WebService.java:2117)
         at oracle.jdeveloper.webservices.model.java.JavaWebService.saveEditTopDown(JavaWebService.java:1704)
         at oracle.jdevimpl.webservices.WebServicesAddin$2.run(WebServicesAddin.java:2261)
         at oracle.jdeveloper.webservices.model.GeneratorUI$GeneratorAction.run(GeneratorUI.java:446)
         at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:551)
         at java.lang.Thread.run(Thread.java:595)
    WSDL FILE GENERATED BY THE WIZARD
    <definitions
    name="ImgToolboxWS"
    targetNamespace="http://swa/"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:tns="http://swa/"
    xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
    xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
    xmlns:tns0="http://swa/types/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:tns1="http://ws-i.org/profiles/basic/1.1/xsd"
    >
    <types>
    <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://ws-i.org/profiles/basic/1.1/xsd"
    elementFormDefault="qualified" xmlns:tns="http://ws-i.org/profiles/basic/1.1/xsd">
    <import namespace="http://swa/types/"/>
    <simpleType name="swaRef">
    <restriction base="xsd:anyURI"/>
    </simpleType>
    </schema>
    <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://swa/types/"
    elementFormDefault="qualified" xmlns:tns="http://swa/types/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap12-enc="http://www.w3.org/2003/05/soap-encoding"
    xmlns:ns1="http://ws-i.org/profiles/basic/1.1/xsd">
    <import namespace="http://ws-i.org/profiles/basic/1.1/xsd"/>
    <complexType name="flip">
    <sequence>
    <element name="ap" type="ns1:swaRef" nillable="true"/>
    <element name="tipo" type="int"/>
    </sequence>
    </complexType>
    <complexType name="flipResponse">
    <sequence>
    <element name="result" type="ns1:swaRef" nillable="true"/>
    </sequence>
    </complexType>
    <complexType name="resize">
    <sequence>
    <element name="img" type="ns1:swaRef" nillable="true"/>
    </sequence>
    </complexType>
    <complexType name="resizeResponse">
    <sequence>
    <element name="result" type="ns1:swaRef" nillable="true"/>
    </sequence>
    </complexType>
    <complexType name="toGray">
    <sequence>
    <element name="imagen" type="ns1:swaRef" nillable="true"/>
    </sequence>
    </complexType>
    <complexType name="toGrayResponse">
    <sequence>
    <element name="result" type="ns1:swaRef" nillable="true"/>
    </sequence>
    </complexType>
    <element name="flipElement" type="tns:flip"/>
    <element name="flipResponseElement" type="tns:flipResponse"/>
    <element name="resizeElement" type="tns:resize"/>
    <element name="resizeResponseElement" type="tns:resizeResponse"/>
    <element name="toGrayElement" type="tns:toGray"/>
    <element name="toGrayResponseElement" type="tns:toGrayResponse"/>
    </schema>
    </types>
    <message name="ImgToolboxWS_flip">
    <part name="parameters" element="tns0:flipElement"/>
    </message>
    <message name="ImgToolboxWS_flipResponse">
    <part name="parameters" element="tns0:flipResponseElement"/>
    </message>
    <message name="ImgToolboxWS_resize">
    <part name="parameters" element="tns0:resizeElement"/>
    </message>
    <message name="ImgToolboxWS_resizeResponse">
    <part name="parameters" element="tns0:resizeResponseElement"/>
    </message>
    <message name="ImgToolboxWS_toGray">
    <part name="parameters" element="tns0:toGrayElement"/>
    </message>
    <message name="ImgToolboxWS_toGrayResponse">
    <part name="parameters" element="tns0:toGrayResponseElement"/>
    </message>
    <portType name="ImgToolboxWS">
    <operation name="flip">
    <input message="tns:ImgToolboxWS_flip"/>
    <output message="tns:ImgToolboxWS_flipResponse"/>
    </operation>
    <operation name="resize">
    <input message="tns:ImgToolboxWS_resize"/>
    <output message="tns:ImgToolboxWS_resizeResponse"/>
    </operation>
    <operation name="toGray">
    <input message="tns:ImgToolboxWS_toGray"/>
    <output message="tns:ImgToolboxWS_toGrayResponse"/>
    </operation>
    </portType>
    <binding name="ImgToolboxWSSoap12Http" type="tns:ImgToolboxWS">
    <soap12:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="flip">
    <soap12:operation soapAction="http://swa//flip" soapActionRequired="false"/>
    <input>
    <mime:multipartRelated>
    <mime:part>
    <soap12:body use="literal" parts="parameters"/>
    </mime:part>
    </mime:multipartRelated>
    </input>
    <output>
    <mime:multipartRelated>
    <mime:part>
    <soap12:body use="literal" parts="parameters"/>
    </mime:part>
    </mime:multipartRelated>
    </output>
    </operation>
    <operation name="resize">
    <soap12:operation soapAction="http://swa//resize" soapActionRequired="false"/>
    <input>
    <mime:multipartRelated>
    <mime:part>
    <soap12:body use="literal" parts="parameters"/>
    </mime:part>
    </mime:multipartRelated>
    </input>
    <output>
    <mime:multipartRelated>
    <mime:part>
    <soap12:body use="literal" parts="parameters"/>
    </mime:part>
    </mime:multipartRelated>
    </output>
    </operation>
    <operation name="toGray">
    <soap12:operation soapAction="http://swa//toGray" soapActionRequired="false"/>
    <input>
    <mime:multipartRelated>
    <mime:part>
    <soap12:body use="literal" parts="parameters"/>
    </mime:part>
    </mime:multipartRelated>
    </input>
    <output>
    <mime:multipartRelated>
    <mime:part>
    <soap12:body use="literal" parts="parameters"/>
    </mime:part>
    </mime:multipartRelated>
    </output>
    </operation>
    </binding>
    <service name="ImgToolboxWS">
    <port name="ImgToolboxWSSoap12HttpPort" binding="tns:ImgToolboxWSSoap12Http">
    <soap12:address location="http://192.168.0.6:8888/Capitulo3-SwA-context-root/ImgToolboxWSSoap12HttpPort"/>
    </port>
    </service>
    </definitions>
    If I only expose the toGray method as a Web Service all works fine. Any combinatio with other methods won't work. It's very strange.
    When I try to create a proxy using the wizard JDeveloper shows me next error message :
    Validation Failed
    ...wsdl file does not contain sufficient information to create a proxy. At least one port type and a binding of the are required.
    Any reply will be greatly appreciated.
    Best regards.

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

Maybe you are looking for

  • Recommendation: disk drive configuration

    I use my Mac Pro at work for some basic iMovie video editing, so I have very capacity requirements. I currently have multiple hard disks; my startup disk is a 500GB SATA in HDD bay 1. I have two 400GB SATA drives in HDD bays 2 & 3, RAIDed together wi

  • How to pass parameter in Discoverer inner query  PLZ give solution-URGENT

    Hi All, My need is I have a query in Disco Admin which has inner query as mention below: select Net_Drawn_Amount,Undrawn_Amount,Business_Date from (select * from t_FacilityExtract) A, We are creating a workbook using Diso Plus and creating a paramete

  • Throwing Exception in Message mapping.

    Hello, I am using PI 7.0 and SP 16. I have implemented this blog  /people/alessandro.guarneri/blog/2006/01/26/throwing-smart-exceptions-in-xi-graphical-mapping . But when i was testing in Message Map it is showing the error but when i am testing an e

  • 10.8.5 Supplemental update is very buggy

    I am on a Mac Pro 2.8 (3.1) 2008 model.  12 Gb ram and a radeon 5870.  This supplemental update has been pretty horrible.  I have had the following issues: messed up sleep, random wake ups, and one hard crash.  I have also had the long sleep delay wh

  • Setting up email elements 13

    I'm trying to set up in elements 13 gmail to send pictures. I go to edit-preferences, put in info. Click on validate and get message back " check email address and password and retry." Doesn't work. I tried disabling firewall and that didn't work. He