"java Web Service from WSDL" just hands me a SOAPElement, no java mappings

Another beginner question. I've used jdev and built a WSDL starting from a somewhat complex xsd. I've used the wizard "Java Web Service From WSDL" taking defaults. It seems to correctly generate class files for all my xsd types. It produces a fancy looking java-wsdl-mapping.xml But the generated stub service implementation just gets handed a SOAPElement object. Why generate all that mapping stuff and then make me parse the incoming data myself with SOAPElement methods? How am I supposed to make use of the mapping work that the wizard seems to have done for me?
Thanks,
Steve

Dear Tugdual,
Thanks for your intrest in my issue. I narrowed it down to the following type in my xsd
<complexType name="PersonInfoType">
<sequence >
<element name="FamilyName" type="string"/>
<element name="IndividualName" type="string"/>
<element name="SpouseName" type="string"/>
<element name="BirthDate" type="dateTime"/>
</sequence>
</complexType>
This works fine - the "WebSerice From WSDL" wizard "knows" how to generate a class for PersonInfoType (with geters and seters) as well as useful stub implementation:
public class PersonInfoImpl {
public PersonInfoType processPersonInfo(String entityCode) {
return null;
However, if I make my type multiple occuring (to represnt e.g. rows from a db)
<complexType name="PersonInfoType">
<sequence maxOccurs="unbounded" >
<element name="FamilyName" type="string"/>
<element name="IndividualName" type="string"/>
<element name="SpouseName" type="string"/>
<element name="BirthDate" type="dateTime"/>
</sequence>
</complexType>
Now the Web Service generator runs, but just doesn't generate any PersonInfoType class at all. For a stub implementation it genertes the following:
public class PersonInfoImpl {
public SOAPElement processPersonInfo(String entityCode) {
return null;
Now I'm stuck with the container just expecting from me a Soap Object and I have to build all the pieces myself with no java mappings to my xsd at all. Not very useful.
Is there another xml structure I can use to represent data rows that is better supported by the wizard?
Thanks,
Steve

Similar Messages

  • When to use Java Web Service from WSDL, Webservice proxy, Web Service DataControl -- JDeveloper 11.1.1.7

    Hi Experts!
    I am having confusion among these 3 services provided in Oracle ADF. When to use and what service needs to be used?
    Once we generate Webservice WSDL. With the WSDL we have 3  options in Jdeveloper to invoke this service.
    1. Java Web Service From WSDL.
    2. Web Service proxy,
    3. Web Service Data Control.
    Can anyone give us some brief description of these 3 services when do we need to use and which service is to be used for which scenario ?
    Please give me your valuable inputs.
    Thanks & Regards,
    Guravaiah Tata.

    Hi,
    Can you share your WSDL.
    You can send it to me at [email protected]
    -Vishal

  • Java Web Service from WSDL

    I got the following error generating from a TALEO WSDL file:
    Error creating model from WSDL: Two declarations cause a collision in the Object Factory Class.
    The WSDL file from TALEO is very large - 16000 + lines. and the error does not point specifically to the offending declarations(if any). I downloaded Apache Axis2 and successfully used wsdl2java.bat to generate from the same wsdl file. This is perplexing, especially since I am just learning how to create a web service call.
    Dean Geary

    Dear Tugdual,
    Thanks for your intrest in my issue. I narrowed it down to the following type in my xsd
    <complexType name="PersonInfoType">
    <sequence >
    <element name="FamilyName" type="string"/>
    <element name="IndividualName" type="string"/>
    <element name="SpouseName" type="string"/>
    <element name="BirthDate" type="dateTime"/>
    </sequence>
    </complexType>
    This works fine - the "WebSerice From WSDL" wizard "knows" how to generate a class for PersonInfoType (with geters and seters) as well as useful stub implementation:
    public class PersonInfoImpl {
    public PersonInfoType processPersonInfo(String entityCode) {
    return null;
    However, if I make my type multiple occuring (to represnt e.g. rows from a db)
    <complexType name="PersonInfoType">
    <sequence maxOccurs="unbounded" >
    <element name="FamilyName" type="string"/>
    <element name="IndividualName" type="string"/>
    <element name="SpouseName" type="string"/>
    <element name="BirthDate" type="dateTime"/>
    </sequence>
    </complexType>
    Now the Web Service generator runs, but just doesn't generate any PersonInfoType class at all. For a stub implementation it genertes the following:
    public class PersonInfoImpl {
    public SOAPElement processPersonInfo(String entityCode) {
    return null;
    Now I'm stuck with the container just expecting from me a Soap Object and I have to build all the pieces myself with no java mappings to my xsd at all. Not very useful.
    Is there another xml structure I can use to represent data rows that is better supported by the wizard?
    Thanks,
    Steve

  • Error creating web service from WSDL in 11.1.2.0.0

    Hello,
    I have just installed JDeveloper 11.1.2.0.0. I tried to test a web service created (and successfully tested) in 11.1.1.5.0. The service is deployed to internal WebLogic server but when I call "Test Web Service" this is the error I get:
    The Web Service Tester cannot be invoked, because the WSDL document of the selected service cannot be read.
    java.lang.IllegalStateException: SSLContextImpl is not initialized
         at com.sun.net.ssl.internal.ssl.SSLContextImpl.engineGetSocketFactory(SSLContextImpl.java:145)
         at javax.net.ssl.SSLContext.getSocketFactory(SSLContext.java:260)
         at oracle.jdevimpl.credential.LazySSLContextSpi.engineGetSocketFactory(LazySSLContextSpi.java:67)
         at javax.net.ssl.SSLContext.getSocketFactory(SSLContext.java:260)
         at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader.getNewReaderInstance(CachedWSDLReader.java:398)
         at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader$1.initialValue(CachedWSDLReader.java:298)
         at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader$1.initialValue(CachedWSDLReader.java:294)
         at java.lang.ThreadLocal.setInitialValue(ThreadLocal.java:141)
         at java.lang.ThreadLocal.get(ThreadLocal.java:131)
         at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader.getReaderImpl(CachedWSDLReader.java:308)
         at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader.readWSDLInternal(CachedWSDLReader.java:531)
         at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader.readWSDLDirect(CachedWSDLReader.java:471)
         at oracle.jdevimpl.webservices.tcpmonitor.ServiceTester$3.run(ServiceTester.java:262)
         at java.lang.Thread.run(Thread.java:662)
    Then I tried to create a new project and Java web service from WSDL, but on the second step of the "Java Web Service from WSDL" wizard when I select WSDL file from the disk and click "Next" I get
    java.lang.IllegalStateException: SSLContextImpl is not initialized
    java.lang.IllegalStateException: SSLContextImpl is not initialized
         at com.sun.net.ssl.internal.ssl.SSLContextImpl.engineGetSocketFactory(SSLContextImpl.java:145)
         at javax.net.ssl.SSLContext.getSocketFactory(SSLContext.java:260)
         at oracle.jdevimpl.credential.LazySSLContextSpi.engineGetSocketFactory(LazySSLContextSpi.java:67)
         at javax.net.ssl.SSLContext.getSocketFactory(SSLContext.java:260)
         at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader.getNewReaderInstance(CachedWSDLReader.java:398)
         at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader$1.initialValue(CachedWSDLReader.java:298)
         at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader$1.initialValue(CachedWSDLReader.java:294)
         at java.lang.ThreadLocal.setInitialValue(ThreadLocal.java:141)
         at java.lang.ThreadLocal.get(ThreadLocal.java:131)
         at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader.getReaderImpl(CachedWSDLReader.java:308)
         at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader.readWSDLInternal(CachedWSDLReader.java:531)
         at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader.readWSDL(CachedWSDLReader.java:484)
         at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader.readWSDL(CachedWSDLReader.java:455)
         at oracle.jdevimpl.webservices.wizard.jaxrpc.common.SpecifyWsdlPanel.fetchWSDL(SpecifyWsdlPanel.java:1050)
         at oracle.jdevimpl.webservices.wizard.jaxrpc.common.SpecifyWsdlPanel$1.run(SpecifyWsdlPanel.java:364)
         at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:655)
         at java.lang.Thread.run(Thread.java:662)
    I performed fresh install of this new JDeveloper version in new Middleware home with all the default options and this is the first thing I tried.
    Any hints?
    Thanks,
    Bruno

    Hi Vishal,
    no, I don't see any HTTPS security settings defined. The thing is that this worked just fine in 11.1.1.5.0 version. I installed 11.1.2.0.0 and the first thing I tried was testing this web service. Right away I get this error. I also tried creating Web Service Client Proxy for this web service and I get the same exception. I looks to me that this happens when wizard tries parsing WSDL...
    But, I got another error when I opened "Java Web Service Editor" for this web service and selected "Methods":
    NPE in o.ji.webservices.wizard.jaxrpc.bottomup.SelectMethodsPanel:702
    Performing action (35) Project Properties... [ from ProjectNavigatorWindow ] [ for ( VegaService.jpr, VegaService.jpr, DMSVegaAdapter.jws ) ]
    oracle.jdevimpl.webservices.index:Jun 9, 2011 9:05:02 AM IndexFacade runQuery
    INFO: Having to guess workspace
    oracle.jdevimpl.webservices.index:Jun 9, 2011 9:05:28 AM IndexFacade runQuery
    INFO: Having to guess workspace
    Performing action (23) Find... [ from CodeEditor ] [ for ( VegaService.wsdl, VegaService.jpr, DMSVegaAdapter.jws ) ]
    Performing action (25) Find Next [ from CodeEditor ] [ for ( VegaService.wsdl, VegaService.jpr, DMSVegaAdapter.jws ) ]
    Performing action (25) Find Next [ from CodeEditor ] [ for ( VegaService.wsdl, VegaService.jpr, DMSVegaAdapter.jws ) ]
    Performing action (25) Find Next [ from CodeEditor ] [ for ( VegaService.wsdl, VegaService.jpr, DMSVegaAdapter.jws ) ]
    Performing action (25) Find Next [ from CodeEditor ] [ for ( VegaService.wsdl, VegaService.jpr, DMSVegaAdapter.jws ) ]
    Performing action (25) Find Next [ from CodeEditor ] [ for ( VegaService.wsdl, VegaService.jpr, DMSVegaAdapter.jws ) ]
    Performing action (25) Find Next [ from CodeEditor ] [ for ( VegaService.wsdl, VegaService.jpr, DMSVegaAdapter.jws ) ]
    Performing action (25) Find Next [ from CodeEditor ] [ for ( VegaService.wsdl, VegaService.jpr, DMSVegaAdapter.jws ) ]
    Performing action (25) Find Next [ from CodeEditor ] [ for ( VegaService.wsdl, VegaService.jpr, DMSVegaAdapter.jws ) ]
    Performing action (25) Find Next [ from CodeEditor ] [ for ( VegaService.wsdl, VegaService.jpr, DMSVegaAdapter.jws ) ]
    Performing action (25) Find Next [ from CodeEditor ] [ for ( VegaService.wsdl, VegaService.jpr, DMSVegaAdapter.jws ) ]
    Performing action (25) Find Next [ from CodeEditor ] [ for ( VegaService.wsdl, VegaService.jpr, DMSVegaAdapter.jws ) ]
    Performing action (25) Find Next [ from CodeEditor ] [ for ( VegaService.wsdl, VegaService.jpr, DMSVegaAdapter.jws ) ]
    Performing action (25) Find Next [ from CodeEditor ] [ for ( VegaService.wsdl, VegaService.jpr, DMSVegaAdapter.jws ) ]
    Performing action (25) Find Next [ from CodeEditor ] [ for ( VegaService.wsdl, VegaService.jpr, DMSVegaAdapter.jws ) ]
    Performing action (25) Find Next [ from CodeEditor ] [ for ( VegaService.wsdl, VegaService.jpr, DMSVegaAdapter.jws ) ]
    Performing action (25) Find Next [ from CodeEditor ] [ for ( VegaService.wsdl, VegaService.jpr, DMSVegaAdapter.jws ) ]
    Performing action (25) Find Next [ from CodeEditor ] [ for ( VegaService.wsdl, VegaService.jpr, DMSVegaAdapter.jws ) ]
    Performing action (25) Find Next [ from CodeEditor ] [ for ( VegaService.wsdl, VegaService.jpr, DMSVegaAdapter.jws ) ]
    Performing action (25) Find Next [ from CodeEditor ] [ for ( VegaService.wsdl, VegaService.jpr, DMSVegaAdapter.jws ) ]
    Performing action (25) Find Next [ from CodeEditor ] [ for ( VegaService.wsdl, VegaService.jpr, DMSVegaAdapter.jws ) ]
    Performing action (25) Find Next [ from CodeEditor ] [ for ( VegaService.wsdl, VegaService.jpr, DMSVegaAdapter.jws ) ]
    Performing action (25) Find Next [ from CodeEditor ] [ for ( VegaService.wsdl, VegaService.jpr, DMSVegaAdapter.jws ) ]
    Performing action (25) Find Next [ from CodeEditor ] [ for ( VegaService.wsdl, VegaService.jpr, DMSVegaAdapter.jws ) ]
    Performing action (25) Find Next [ from CodeEditor ] [ for ( VegaService.wsdl, VegaService.jpr, DMSVegaAdapter.jws ) ]
    Performing action (25) Find Next [ from CodeEditor ] [ for ( VegaService.wsdl, VegaService.jpr, DMSVegaAdapter.jws ) ]
    Performing action (25) Find Next [ from CodeEditor ] [ for ( VegaService.wsdl, VegaService.jpr, DMSVegaAdapter.jws ) ]
    Performing action (25) Find Next [ from CodeEditor ] [ for ( VegaService.wsdl, VegaService.jpr, DMSVegaAdapter.jws ) ]
    Performing action (25) Find Next [ from CodeEditor ] [ for ( VegaService.wsdl, VegaService.jpr, DMSVegaAdapter.jws ) ]
    Performing action (25) Find Next [ from CodeEditor ] [ for ( VegaService.wsdl, VegaService.jpr, DMSVegaAdapter.jws ) ]
    Performing action (25) Find Next [ from CodeEditor ] [ for ( VegaService.wsdl, VegaService.jpr, DMSVegaAdapter.jws ) ]
    Performing action (25) Find Next [ from CodeEditor ] [ for ( VegaService.wsdl, VegaService.jpr, DMSVegaAdapter.jws ) ]
    Performing action (25) Find Next [ from CodeEditor ] [ for ( VegaService.wsdl, VegaService.jpr, DMSVegaAdapter.jws ) ]
    Performing action (25) Find Next [ from CodeEditor ] [ for ( VegaService.wsdl, VegaService.jpr, DMSVegaAdapter.jws ) ]
    Performing action (25) Find Next [ from CodeEditor ] [ for ( VegaService.wsdl, VegaService.jpr, DMSVegaAdapter.jws ) ]
    Performing action (25) Find Next [ from CodeEditor ] [ for ( VegaService.wsdl, VegaService.jpr, DMSVegaAdapter.jws ) ]
    Performing action (25) Find Next [ from CodeEditor ] [ for ( VegaService.wsdl, VegaService.jpr, DMSVegaAdapter.jws ) ]
    Performing action (56) Properties... [ from ProjectNavigatorWindow ] [ for ( VegaService, VegaService.jpr, DMSVegaAdapter.jws ) ]
    oracle.jdevimpl.webservices.index:Jun 9, 2011 9:09:32 AM IndexFacade runQuery
    INFO: Having to guess workspace
    java.lang.NullPointerException
    java.lang.NullPointerException
    o.ji.webservices.wizard.jaxrpc.bottomup.SelectMethodsPanel.populateListImpl(SelectMethodsPanel.java:702)
    o.ji.webservices.wizard.jaxrpc.bottomup.SelectMethodsPanel.access$600(SelectMethodsPanel.java:82)
    o.ji.webservices.wizard.jaxrpc.bottomup.SelectMethodsPanel$4$1.run(SelectMethodsPanel.java:603)
    j.a.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    j.a.EventQueue.dispatchEventImpl(EventQueue.java:642)
    j.a.EventQueue.access$000(EventQueue.java:85)
    j.a.EventQueue$1.run(EventQueue.java:603)
    j.a.EventQueue$1.run(EventQueue.java:601)
    j.security.AccessController.doPrivileged(Native Method)
    j.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    j.a.EventQueue.dispatchEvent(EventQueue.java:612)
    o.javatools.internal.ui.EventQueueWrapper._dispatchEvent(EventQueueWrapper.java:169)
    o.javatools.internal.ui.EventQueueWrapper.dispatchEvent(EventQueueWrapper.java:151)
    j.a.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    j.a.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    j.a.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:178)
    j.a.Dialog$1.run(Dialog.java:1046)
    j.a.Dialog$3.run(Dialog.java:1098)
    j.security.AccessController.doPrivileged(Native Method)
    j.a.Dialog.show(Dialog.java:1096)
    j.a.Component.show(Component.java:1585)
    j.a.Component.setVisible(Component.java:1537)
    j.a.Window.setVisible(Window.java:842)
    j.a.Dialog.setVisible(Dialog.java:986)
    o.bali.ewt.dialog.JEWTDialog.runDialog(JEWTDialog.java:395)
    o.bali.ewt.dialog.JEWTDialog.runDialog(JEWTDialog.java:356)
    o.i.dialogs.WizardLauncher.runDialog(WizardLauncher.java:55)
    o.i.panels.TDialogLauncher.showDialog(TDialogLauncher.java:225)
    o.ji.webservices.wizard.jaxrpc.WebServicesEditor.showDialog(WebServicesEditor.java:313)
    o.ji.webservices.WebServicesAddin.findAndInvokeWizard(WebServicesAddin.java:1672)
    o.ji.webservices.WebServicesAddin.handleEvent(WebServicesAddin.java:870)
    o.i.controller.IdeAction$ControllerDelegatingController.handleEvent(IdeAction.java:1469)
    o.i.controller.IdeAction.performAction(IdeAction.java:662)
    o.i.controller.IdeAction.actionPerformedImpl(IdeAction.java:1140)
    o.i.controller.IdeAction.actionPerformed(IdeAction.java:617)
    jx.s.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
    jx.s.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
    jx.s.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
    jx.s.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
    jx.s.AbstractButton.doClick(AbstractButton.java:357)
    jx.s.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:809)
    jx.s.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:850)
    j.a.Component.processMouseEvent(Component.java:6289)
    jx.s.JComponent.processMouseEvent(JComponent.java:3267)
    j.a.Component.processEvent(Component.java:6054)
    j.a.Container.processEvent(Container.java:2041)
    j.a.Component.dispatchEventImpl(Component.java:4652)
    j.a.Container.dispatchEventImpl(Container.java:2099)
    j.a.Component.dispatchEvent(Component.java:4482)
    j.a.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
    j.a.LightweightDispatcher.processMouseEvent(Container.java:4238)
    j.a.LightweightDispatcher.dispatchEvent(Container.java:4168)
    j.a.Container.dispatchEventImpl(Container.java:2085)
    j.a.Window.dispatchEventImpl(Window.java:2478)
    j.a.Component.dispatchEvent(Component.java:4482)
    j.a.EventQueue.dispatchEventImpl(EventQueue.java:644)
    j.a.EventQueue.access$000(EventQueue.java:85)
    j.a.EventQueue$1.run(EventQueue.java:603)
    j.a.EventQueue$1.run(EventQueue.java:601)
    j.security.AccessController.doPrivileged(Native Method)
    j.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    j.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
    j.a.EventQueue$2.run(EventQueue.java:617)
    j.a.EventQueue$2.run(EventQueue.java:615)
    j.security.AccessController.doPrivileged(Native Method)
    j.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    j.a.EventQueue.dispatchEvent(EventQueue.java:614)
    o.javatools.internal.ui.EventQueueWrapper._dispatchEvent(EventQueueWrapper.java:169)
    o.javatools.internal.ui.EventQueueWrapper.dispatchEvent(EventQueueWrapper.java:151)
    j.a.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    j.a.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    j.a.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    j.a.EventDispatchThread.run(EventDispatchThread.java:122)
    Regards,
    Bruno

  • Error when generating a Web Service from WSDL (Weblogic Workshop)

    Hi,
    I am using weblogic workshop 10 for implementing web services and its was working fine. But now when I try to generate a web service from WSDL its crashing with the following error;
    Could not find one or more classes: "org.apache.tools.ant.launch.AntMain". Please check the Ant classpath.
    org.eclipse.core.runtime.CoreException: Could not find one or more classes: "org.apache.tools.ant.launch.AntMain". Please check the Ant classpath.
         at com.bea.workshop.webservices.core.gen.JwsFromWsdlBuilder.buildJws(JwsFromWsdlBuilder.java:107)
         at com.bea.workshop.webservices.ui.wizards.jwsfromwsdl.GenerateJwsFromWsdlWizard$1.execute(GenerateJwsFromWsdlWizard.java:133)
         at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:101)
         at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1737)
         at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:113)
         at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
    org.eclipse.core.runtime.CoreException[4]: com.bea.workshop.webservices.core.gen.WebServicesException:
         at com.bea.workshop.webservices.core.gen.GenerationScript.runAnt(GenerationScript.java:154)
         at com.bea.workshop.webservices.core.gen.GenerationScript.createJWS(GenerationScript.java:98)
         at com.bea.workshop.webservices.core.gen.JwsFromWsdlBuilder.buildJws0(JwsFromWsdlBuilder.java:135)
         at com.bea.workshop.webservices.core.gen.JwsFromWsdlBuilder.buildJws(JwsFromWsdlBuilder.java:98)
         at com.bea.workshop.webservices.ui.wizards.jwsfromwsdl.GenerateJwsFromWsdlWizard$1.execute(GenerateJwsFromWsdlWizard.java:133)
         at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:101)
         at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1737)
         at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:113)
         at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
    Caused by: org.eclipse.core.runtime.CoreException: Could not find one or more classes: "org.apache.tools.ant.launch.AntMain". Please check the Ant classpath.
         at org.eclipse.ant.core.AntRunner.problemLoadingClass(AntRunner.java:445)
         at org.eclipse.ant.core.AntRunner.handleInvocationTargetException(AntRunner.java:417)
         at org.eclipse.ant.core.AntRunner.run(AntRunner.java:362)
         at com.bea.workshop.webservices.core.gen.GenerationScript.runAnt(GenerationScript.java:152)
         ... 8 more
    I have checked my ANT_HOME and its pointing to the correct location bea\tools\eclipse32\eclipse\plugins\org.apache.ant_1.6.5 and the AntMain classs is present in this path: org.apache.tools.ant.launch.AntMain
    If anyone has any idea on this please suggest a solution.
    Thanks in advance
    -AKJ

    Yes, I assume you are talking about ANT_HOME:
    see this Screenshot which shows my current settings
    [http://i43.tinypic.com/nbrec6.jpg|http://i43.tinypic.com/nbrec6.jpg]
    Regards
    -AKJ

  • Trouble Creating Web Service from WSDL in 9.2

    I am following the guide at: http://edocs.bea.com/wls/docs92/webserv/setenv.html#wp214576 for creating a web service from wsdl using Ant. When i run the "wsdlc" task, it creates a Jar with source files but no class files. This seems odd.
    So, i have to then manually unjar, compile, and re-jar it to work? And what about using the types in an IDE like Eclipse? I have to un-jar the source files and include them in my project? This makes no sense. Why not have the ant task compile the classes in the jar?

    I am following the guide at: http://edocs.bea.com/wls/docs92/webserv/setenv.html#wp214576 for creating a web service from wsdl using Ant. When i run the "wsdlc" task, it creates a Jar with source files but no class files. This seems odd.
    So, i have to then manually unjar, compile, and re-jar it to work? And what about using the types in an IDE like Eclipse? I have to un-jar the source files and include them in my project? This makes no sense. Why not have the ant task compile the classes in the jar?

  • Calling a java web service from R/3 6.0

    hi experts,
    can anyone please tell me how to call a java web service from R/3 6.0?
    i found some answers to this question but all those were for 6.4 or 6.2 but not for 6.0.
    i want to generate a outbound flow from ERP system. so please tell me something about web service in that context.
    Thanks in advance,
    Sagar.

    Hi!!!
    I would do this scenario as a synchronous one:
    [SAP R/3][ABAP proxy objects] <-> [XI]<->[SOAP Adapter]<--->[external java app]
    In your ABAP transaction you will have to execute ABAP proxy method to send a message to XI. If it's not your transaction, you can use user-exit.
    BTW, I have an experience with XI 2.0, not with 3.0, so I used a XI 2.0 terminology.
    Regards,
    Andrzej Filusz

  • Calling normal java web service from bpel

    hi,
    i want to call a normal java web service (which has been deployed in an application server) and not a bpel process from my .bpel file.
    i see that while creating a partner link , i have to specify the wsdl file location.
    there are two options.
    from local bpel server and
    from local file system.
    since the web service is not a bpel prcess, it can not be deployed in the bpel process manager and i have to choose the wsdl file location from local file system.
    now there are some major differences in the two type of wsdl file, i.e., that of a java web service and a bpel process.
    let me give u all a concrete example.
    let i have a hello world web service which takes a name as input , concatenates the name with "hello" and outputs.
    i created a partner link to this web service.
    after creating the partner link, a local copy of the wsdl file is added into my bpel project which only contains definition import and partnerlink statements.
    but i can not progress any further.
    can any one help me out of this problem.
    also i will be helpful if any one can suggest a tutorial where bpel is used to orchestarate between normal java web services deployed in some other application server and not mere bpel processes.
    thanks & regards.
    sudipto

    Hi Sudipto,
    Just to add to the options. There are three options.
    1 and 2 as mentioned by you.
    3 you can give the hosted wsdl location directly in the text box. (i.e. somthing like http://ws.strikeiron.com/CensusData?WSDL)
    This in turn will create a local wsdl which has partnerLink info and an import of the original wsdl.
    once you have this select the appropreate Partner Link Type and Partner Role.
    HTH
    Dhaval

  • Web Services from WSDL file

    Hi there. I am new for Java Web Services.
    I'm trying to generate a web service from a .wsdl file. This file includes a references to other .xsd files
    and that's the problem.
    First I've tried with JBuilder 9 but it gave me some problems with some element definitions from xsd file (such as those elements defined as 'choice'): there were generated some classes with repeated elements (such as variables and methods), some classes with strange names (it was added a 'TypeN' label to the name of the class), etc.
    Then I've tried with Sun One Studio 5. It didn't support 'include' tags in the wsdl file.
    Later I've tried with Weblogic Workshop but an error with an internal class of Weblogic was generated.
    Can anyone tell me what editor could I use to generate the Java Web Services?
    Thanks!

    https://jax-rpc.dev.java.net/whitepaper/1.1/index-part2.html explains in detail how to develop, deploy and invoke a web service starting from a WSDL.
    Let me know if you have any specific questions.
    Thanks,
    -Arun

  • Error when calling Java Web Services from ABAP.

    Hello experts:
        In my project, I will call Java Web Services with ABAP coding. With WSDL, I generated a proxy class and created a HTTP connection (t-code: SM59) and a logical port (t-code:lpconfig) for this proxy class. But when running, I would receive the folllowing errors:
       SOAP:1.023 SRT: Processing error in Internet Communication Framework: ("ICF Error when receiving the response: HTTP COMMUNICATION FAILURE")
       If I used HTTPS, there is no problem.
    Regards
    Bob

    Hi Bob,
    It might be the possibility that your java web server is configured to listen only on HTTPS.
    If your HTTPS is working fine, then first check with your JAVA server for HTTP connectivity, then try it calling through ABAP.
    Regards,
    Piyush

  • Call webdynpro java Web Service from ABAP

    Hello,
    This is regarding calling portal web service from ABAP.
    1. created web service in NWDS and deployed it to portal server
    2. created abap proxy to call this web service from abap SE80 transaction
    3. created logical portal for the above proxy  LPCONFIG transaction
    this is working perfectly. the web service is getting called from abap and funcitonality is working
    but my doubt is we have no where given the login password for portal server in the abap system
    then how come it works without login password
    if i run this web service directly from portal in wsnavigator, then portal login is required.
    If we want to incorporate authentication then how to do that ?
    thankyou,
    B

    When you are testing the application in SE80.
    Is it ot asking for the user id password.
    I created a similar service and for me its asking for user id and password.
    Go to SM59 and there look for a RFC destination of type HTTP Connection to External Serv. usually will be named as
    SAP_PROXY_ESR.
    for this connection check the logon and security tab.
    may be some user id and password is given there. means hardcoded.
    thanks
    sarbjeet singh

  • Parameter names change when generating web service from WSDL

    Hi,
    I have a problem with BEAs web services that I'm hoping someone can help me with.
    I have a
    WSDL file, and from that I want to generate a web service implementation and a
    web service
    client. In the WSDL file, I have a message defined like this:
    <message name="someRequest">
    <part xmlns:partns="http://www.w3.org/2001/XMLSchema" type="partns:base64Binary"
    name="data"/>
    </message>
    I generate the server using the server using the wsdl2service Ant task, I implement
    the necessary classes, and I deploy it. When I access the deployed web service,
    the parameter name has changed, from "data" to "bytes". If I access the WSDL file
    of the deployed web service, it says:
    <message name="someRequest">
    <part xmlns:partns="http://www.w3.org/2001/XMLSchema" type="partns:base64Binary"
    name="bytes"/>
    </message>
    This happens for all parameters, string parameters are renamed to "string", base64Binary
    parameters are renamed to "bytes", etc...
    This poses a problem to me, because if I generate a web service client from the
    original WSDL file, it will not be able to talk to my web service. Is there any
    way of forcing a web service generated from a WSDL file to keep the parameter
    names of the original WSDL file?
    Any help in this is greatly appreciated.
    Regards,
    Petter

    From a quick look of your WSDL, it seams that you are mixing document-literal-bare and document-literal-wrapped flavor of web services. WSA may be able to do a better job at working around this mixed flavors than JDeveloper.
    If you have hand crafted this WSDL, I would recomend that you spend some time looking at the way WSDL are generated, with the java-first mode (or bottom-up), then author the WSDL you need for the final service.
    Here are sample of bare-style :
    <xsd:element name="getPupilAddressResponse" type="xsd:string"/>
    <xsd:element name="getPupilAddressRequest" type="xsd:int"/>
    Wrapped will looks like that:
    <xsd:element name="getSENLevelResponse">
    <xsd:complexType>
    <xsd:sequence maxOccurs="1" minOccurs="1">
    <xsd:element name="LevelDetails" type="tns:SENLevelRecord"/>
    <xsd:element name="RecordCount" type="xsd:int">
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    Hope this helps,
    Eric

  • How to call a Java Web Service from another Java package ?

    Please, does anybody know a simple way to access to a JWSDP Web Service deployed under Tomcat with another java application ?
    I've tried with ServiceFactory and Service class from JaxRPC API but it doesn't work ....
    Thanx.

    What not just invoke it the same you would invoke a remote service? Create a service stub and call a service method.
    Mike

  • Calling java web service from another webservice app

    Hi,
    I am newbie to writing java webservices and also new to weblogic workshop environment. Our company already has an web-service application (not written by me) that basically receives soap messages M1(e.g. with fields A,B and C) and does a function. The format of the message is defined in .xsd file and the application also has .wsdl and .jws file.
    The modification now required is that this existing application will keep listening in port p1, but another copy of the same application will run in port p2. So i have to write a webservice code in weblogic workshop that basically recives message M1 and forward the message to port p1 or p2 depending upon field A=0 or 1.
    Message M1 ---->New Application
    |->forward to application running on port p1 if field A=0 in message M1
    OR
    Message M1 ---->New Application
    |->forward to application running on port p2 if field A=1 in message M1
    Please give me some example code/suggestions that i can start with. i am already starting to get a bit worried because i have to finish it in next 3 days and i don't have much experience with it.

    Hi Gianluca,
    here there is a little sample to implement a web service Proxy class that invokes a service from a Descriptor file.
    http://help.sap.com/saphelp_nw04/helpdata/en/6c/8aac34d2d6e64dbcfc3ffb10bb3e9e/frameset.htm
    Take care with SAP WebAS (Soap Runtime) and Apache Web Server. If the web Service is published on AXIS 1.0, SAP Soap ABAP runtime and AXIS 1.0 Soap Runtime aren't compliant.
    You could migrate the Java application from AXIS 1.0 to AXIS 2.0.
    If you need, don't hesitate to contact me!
    Cheers,
    Antonello

  • Problem in writing a client web service from WSDL document

    Hi,
    I wrote a web service using .Net and a WSDL document. I tried after that to generate a client web service using Jdeveloper. but, the methode generated by Jdeveloper (in the stub) does not represente the original methode.
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <!--Generated by the Oracle9i JDeveloper Web Services WSDL Generator-->
    <!--Date Created: Fri Aug 09 13:59:52 EDT 2002-->
    <definitions
    name="CreditCard"
    targetNamespace="http://tempuri.org/jdeveloper/generated/CreditCard/CreditCard"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:tns="http://tempuri.org/jdeveloper/generated/CreditCard/CreditCard"
    xmlns:ns1="http://tempuri.org/jdeveloper/generated/CreditCard/CreditCard/schema">
    <types>
    <schema
    targetNamespace="http://tempuri.org/jdeveloper/generated/CreditCard/CreditCard/schema"
    xmlns="http://www.w3.org/2001/XMLSchema"
    xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"/>
    </types>
    <message name="Validate0Request">
    <part name="cardNumber" type="xsd:string"/>
    <part name="lngDate" type="xsd:long"/>
    </message>
    <message name="Validate0Response">
    <part name="return" type="xsd:boolean"/>
    </message>
    <portType name="CreditCardPortType">
    <operation name="Validate">
    <input name="Validate0Request" message="tns:Validate0Request"/>
    <output name="Validate0Response" message="tns:Validate0Response"/>
    </operation>
    </portType>
    <binding name="CreditCardBinding" type="tns:CreditCardPortType">
    <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="Validate">
    <soap:operation soapAction="" style="rpc"/>
    <input name="Validate0Request">
    <soap:body use="encoded" namespace="CreditCard.CreditCard" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
    </input>
    <output name="Validate0Response">
    <soap:body use="encoded" namespace="CreditCard.CreditCard" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
    </output>
    </operation>
    </binding>
    <service name="CreditCard">
    <port name="CreditCardPort" binding="tns:CreditCardBinding">
    <soap:address location="http://localhost:8888/FirstSample-CreditCard-context-root/CreditCard.CreditCard"/>
    </port>
    </service>
    </definitions>
    Here The methode Validate consume two parameters : string and long
    the generated stub look like :
    public Vector Validate(Element requestElem) throws Exception
    There is some one who have a solution ?
    ---------------------------------------

    My guess is that it is because .NET defaults to generating a document style interface whereas JDeveloper defaults to generating an RPC style interface. The end result is that JDeveloper wraps the document interface in something that looks document like - thus your client. To see how to handle this right now, check out this sample - you have to parse the XML:
    http://otn.oracle.com/tech/webservices/htdocs/series/net/content.html
    In the preview of JDeveloper 9.0.3 which is due quite soon - next few weeks roughly (crossing my fingers) - JDeveloper will wrap .NET document based Web services in a much more elegant wrapper - giving you exactly what you are looking for - a method called Validate rather than a vector of Elements.
    What I don't understand in your sample, however, is that you have WSDL generated from JDeveloper versus WSDL generated from .NET. Did you also do an implementation of the validate method in Java too?
    Mike.

Maybe you are looking for

  • In Mail, Reply To and Subject area doesn't appear

    In Mail, Reply To and Subject area doesn't appear on an opened email.

  • How do i sync ALL songs purchased on a new iPhone ?

    Hi, I lost my old iPhone and now have a new one where I would like to download all previously purchased songs. This is what I do: 1. iTunes -> More --> Purchased -> Music I now get a list of all songs I have purchased (852 songs). The issue is that w

  • Error #1006: value is not a function

    I'm trying to port a big library to Alchemy. I've run into something that looks like an Alchemy bug. I have a class with a static member. There's a static function that uses it. Something like this: In foo.h:     class Foo         static Bar m_pBar;

  • Disparity between selection list and iPod list

    I have my iTunes preferences set to update selected playlist ("User's iPod Selection")only. However, my iPod shows that I have only 1,094 songs on it, whereas my "User's iPod Selection" shows 3,766 songs on it. Could someone kindly explain what I hav

  • Will I lose my saved passwords if I upgrade to 4.0?

    I want to upgrade to Firefox 4.0, but I don't want to lose the passwords that my current version (3.0.13) has saved. Will this be a problem if I do upgrade, or will 4.0 retain my previously saved passwords?