MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
atulsamnerkar
Post subject: Issues in generating WebService using WSDL file  PostPosted: Jun 01, 2012 - 03:43 AM
Registered Member
Registered Member


Joined: Jun 01, 2012
Posts: 12

I am new to web services. i am trying to generate web service in existing "Web Service Project". i followed below steps,

1. The wsdl and corresponding xsd files are copied under '/wsdls' folder.
2. Using 'MyEclipse - Import WSDL' option, we are generating new webservice
3, In the pop-up window we select the 'wsdl file' and set the 'target package'
3. 'Source folder','Resource folder' are set with default values. 'Use of JTA transaction' is also selected to default value (checked).
4. After clicking on finish button, myEclipse IDE does some processing in another pop-up window and it closes without any errors.

After the pop-up is auto closed, i don't see any single class generated from this WSDL import. How can i debug this issue if there any problems? Your help is highly appreciated.

Please find below the wsdl file used,

Code:
<?xml version='1.0' encoding='UTF-8' ?>
<definitions name="Person"
   targetNamespace="http://xmlns.oracle.com/POC/Person/Person" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
   xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:client="http://xmlns.oracle.com/POC/Person/Person"
   xmlns:ns1="http://www.test.com/Customer/V1/Person" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
   xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/">
   <types>
      <schema xmlns="http://www.w3.org/2001/XMLSchema">
         <import namespace="http://www.test.com/Customer/V1/Person"
            schemaLocation="Customer/V1/Person.xsd" />
      </schema>
   </types>
   <message name="PersonRequestMessage">
      <part name="payload" element="ns1:Person" />
   </message>
   <portType name="Person">
      <operation name="Produce_Message">
         <input message="client:PersonRequestMessage" />
      </operation>
   </portType>
   <binding name="PersonBinding" type="client:Person">
      <soap:binding style="document"
         transport="http://schemas.xmlsoap.org/soap/http" />
      <operation name="Produce_Message">
         <soap:operation style="document" soapAction="Person" />
         <input>
            <soap:body use="literal" />
         </input>
      </operation>
   </binding>
   <service name="PersonService">
      <port name="PersonServiceSoap" binding="client:PersonBinding">
         <soap:address location="http://aiadev.test.com:80/Person" />
      </port>
   </service>
</definitions>
 
 View user's profile Send private message  
Reply with quote Back to top
support-swapna
Post subject:   PostPosted: Jun 01, 2012 - 07:49 AM



Joined: Nov 11, 2010
Posts: 2491

atulsamnerkar,

Sorry that you are seeing this issue.

Can you answer some more questions for us ?

1. Can you please copy paste the Installation Details from MyEclipse > Installation Summary > Installation Details ?

2. Clear the contents of the .log file which is located at <workspace dir>/.metadata/.log , now try to generate the web service and replicate the issue. Copy paste the contents of the .log file here for us to investigate further.

3. Are you working with a JAX-WS or JAX-RPC ?

4. Please take a look at these tutorials for detailed understanding :

http://www.myeclipseide.com/documentation/quickstarts/blueedition/blue_jaxws/
http://www.myeclipseide.com/documentation/quickstarts/blueedition/blue_jaxrpc/

_________________
Swapna
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
atulsamnerkar
Post subject:   PostPosted: Jun 01, 2012 - 09:26 AM
Registered Member
Registered Member


Joined: Jun 01, 2012
Posts: 12

Please find below the required info for further investigations,

1. Pleaes find below installation details,
Code:
*** Date:
Friday, June 1, 2012 12:54:26 PM IST

** System properties:
OS=WindowsXP
OS version=5.1.0
Java version=1.6.0_13


*** MyEclipse details:
MyEclipse Blue Edition
Version: 9.1 Blue
Build id: 9.1-Blue-20110701


*** Eclipse details:
MyEclipse Blue Edition

Version: 9.1 Blue
Build id: 9.1-Blue-20110701




Eclipse Platform

Version: 3.6.1.r361_v20100909-9gF78GrkFqw7GrsZnvz0JWNTeb6fue6896L
Build id: M20100909-0800


Eclipse Java Development Tools

Version: 3.6.1.r361_v20100714-0800-7z8XFUSFLFlmgLc5z-Bvrt8-HVkH
Build id: M20100909-0800


Eclipse Plug-in Development Environment

Version: 3.6.1.r361_v20100727-7b7mFL-FET3dhESDgE5_bkJ
Build id: M20100909-0800


Eclipse Graphical Editing Framework GEF

Version: 3.6.1.v20100908-1100-777B181A3Bz-6B663E7974242
Build id: 201009132020


Eclipse RCP

Version: 3.6.1.r361_v20100827-9OArFLdFjY-ThSQXmKvKz0_T
Build id: M20100909-0800




Eclipse startup command=-os
win32
-ws
win32
-arch
x86
-showsplash
-launcher
I:\Program Files\MyEclipse Bling Edition\MyEclipse Bling Edition 9\myeclipse-blue.exe
-name
Myeclipse-blue
--launcher.library
I:\Program Files\MyEclipse Bling Edition\MyEclipse Bling Edition 9\../Common/plugins/org.eclipse.equinox.launcher.i18n.win32.win32.x86_3.2.0.v201103301700\eclipse_3215.dll
-startup
I:\Program Files\MyEclipse Bling Edition\MyEclipse Bling Edition 9\../Common/plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
-install
I:\Program Files\MyEclipse Bling Edition\MyEclipse Bling Edition 9
-configuration
I:\Program Files\MyEclipse Bling Edition\MyEclipse Bling Edition 9\configuration
-vm
I:\Program Files\MyEclipse Bling Edition\Common\binary\com.sun.java.jdk.win32.x86_1.6.0.013\jre\bin\client\jvm.dll



2. Log file...

Code:

!ENTRY com.skyway.integration.service.webservice 4 0 2012-06-01 13:10:30.019
!MESSAGE Exception adapting operation:Produce_Message
!STACK 1
com.skyway.integration.wsdl.model.providers.service.WSDLToModelIntegrationException:
   at com.skyway.integration.wsdl.model.providers.service.OperationAdapter.<init>(OperationAdapter.java:88)
   at com.skyway.integration.wsdl.model.WSDLToModelAdapterFactory.adaptToModel(WSDLToModelAdapterFactory.java:38)
   at com.skyway.integration.wsdl.model.providers.service.ServiceAdapter.adaptOperation(ServiceAdapter.java:88)
   at com.skyway.integration.wsdl.model.providers.service.ServiceAdapter.loadOperations(ServiceAdapter.java:70)
   at com.skyway.integration.wsdl.transformation.contractfirst.WSDLToServiceContractTransformation.loadServiceRelationships(WSDLToServiceContractTransformation.java:378)
   at com.skyway.integration.wsdl.transformation.contractfirst.WSDLToServiceContractTransformation.transformWSDLToServices(WSDLToServiceContractTransformation.java:250)
   at com.skyway.integration.wsdl.transformation.contractfirst.CreateServiceContractJob.runInWorkspace(CreateServiceContractJob.java:80)
   at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
   at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: java.lang.NullPointerException
   at com.skyway.integration.wsdl.model.providers.service.WSDLElementHelper.isWrappedStyleOperation(WSDLElementHelper.java:58)
   at com.skyway.integration.wsdl.model.providers.service.OperationAdapter.loadRelatedElements(OperationAdapter.java:109)
   at com.skyway.integration.wsdl.model.providers.service.OperationAdapter.<init>(OperationAdapter.java:83)
   ... 8 more
!SUBENTRY 1 org.skyway.core 4 0 2012-06-01 13:10:30.019
!MESSAGE
!STACK 0
java.lang.NullPointerException
   at com.skyway.integration.wsdl.model.providers.service.WSDLElementHelper.isWrappedStyleOperation(WSDLElementHelper.java:58)
   at com.skyway.integration.wsdl.model.providers.service.OperationAdapter.loadRelatedElements(OperationAdapter.java:109)
   at com.skyway.integration.wsdl.model.providers.service.OperationAdapter.<init>(OperationAdapter.java:83)
   at com.skyway.integration.wsdl.model.WSDLToModelAdapterFactory.adaptToModel(WSDLToModelAdapterFactory.java:38)
   at com.skyway.integration.wsdl.model.providers.service.ServiceAdapter.adaptOperation(ServiceAdapter.java:88)
   at com.skyway.integration.wsdl.model.providers.service.ServiceAdapter.loadOperations(ServiceAdapter.java:70)
   at com.skyway.integration.wsdl.transformation.contractfirst.WSDLToServiceContractTransformation.loadServiceRelationships(WSDLToServiceContractTransformation.java:378)
   at com.skyway.integration.wsdl.transformation.contractfirst.WSDLToServiceContractTransformation.transformWSDLToServices(WSDLToServiceContractTransformation.java:250)
   at com.skyway.integration.wsdl.transformation.contractfirst.CreateServiceContractJob.runInWorkspace(CreateServiceContractJob.java:80)
   at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
   at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

!ENTRY com.skyway.integration.service.webservice 4 0 2012-06-01 13:10:30.050
!MESSAGE Exception transforming WSDL to service(s)
!STACK 1
com.skyway.integration.wsdl.model.providers.service.WSDLToModelIntegrationException:
   at com.skyway.integration.wsdl.model.providers.service.ServiceAdapter.loadOperations(ServiceAdapter.java:75)
   at com.skyway.integration.wsdl.transformation.contractfirst.WSDLToServiceContractTransformation.loadServiceRelationships(WSDLToServiceContractTransformation.java:378)
   at com.skyway.integration.wsdl.transformation.contractfirst.WSDLToServiceContractTransformation.transformWSDLToServices(WSDLToServiceContractTransformation.java:250)
   at com.skyway.integration.wsdl.transformation.contractfirst.CreateServiceContractJob.runInWorkspace(CreateServiceContractJob.java:80)
   at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
   at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: com.skyway.integration.wsdl.model.providers.service.WSDLToModelIntegrationException:
   at com.skyway.integration.wsdl.model.providers.service.OperationAdapter.<init>(OperationAdapter.java:88)
   at com.skyway.integration.wsdl.model.WSDLToModelAdapterFactory.adaptToModel(WSDLToModelAdapterFactory.java:38)
   at com.skyway.integration.wsdl.model.providers.service.ServiceAdapter.adaptOperation(ServiceAdapter.java:88)
   at com.skyway.integration.wsdl.model.providers.service.ServiceAdapter.loadOperations(ServiceAdapter.java:70)
   ... 5 more
Caused by: java.lang.NullPointerException
   at com.skyway.integration.wsdl.model.providers.service.WSDLElementHelper.isWrappedStyleOperation(WSDLElementHelper.java:58)
   at com.skyway.integration.wsdl.model.providers.service.OperationAdapter.loadRelatedElements(OperationAdapter.java:109)
   at com.skyway.integration.wsdl.model.providers.service.OperationAdapter.<init>(OperationAdapter.java:83)
   ... 8 more
!SUBENTRY 1 org.skyway.core 4 0 2012-06-01 13:10:30.050
!MESSAGE
!STACK 1
com.skyway.integration.wsdl.model.providers.service.WSDLToModelIntegrationException:
   at com.skyway.integration.wsdl.model.providers.service.OperationAdapter.<init>(OperationAdapter.java:88)
   at com.skyway.integration.wsdl.model.WSDLToModelAdapterFactory.adaptToModel(WSDLToModelAdapterFactory.java:38)
   at com.skyway.integration.wsdl.model.providers.service.ServiceAdapter.adaptOperation(ServiceAdapter.java:88)
   at com.skyway.integration.wsdl.model.providers.service.ServiceAdapter.loadOperations(ServiceAdapter.java:70)
   at com.skyway.integration.wsdl.transformation.contractfirst.WSDLToServiceContractTransformation.loadServiceRelationships(WSDLToServiceContractTransformation.java:378)
   at com.skyway.integration.wsdl.transformation.contractfirst.WSDLToServiceContractTransformation.transformWSDLToServices(WSDLToServiceContractTransformation.java:250)
   at com.skyway.integration.wsdl.transformation.contractfirst.CreateServiceContractJob.runInWorkspace(CreateServiceContractJob.java:80)
   at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
   at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: java.lang.NullPointerException
   at com.skyway.integration.wsdl.model.providers.service.WSDLElementHelper.isWrappedStyleOperation(WSDLElementHelper.java:58)
   at com.skyway.integration.wsdl.model.providers.service.OperationAdapter.loadRelatedElements(OperationAdapter.java:109)
   at com.skyway.integration.wsdl.model.providers.service.OperationAdapter.<init>(OperationAdapter.java:83)
   ... 8 more
!SUBENTRY 2 org.skyway.core 4 0 2012-06-01 13:10:30.050
!MESSAGE
!STACK 0
java.lang.NullPointerException
   at com.skyway.integration.wsdl.model.providers.service.WSDLElementHelper.isWrappedStyleOperation(WSDLElementHelper.java:58)
   at com.skyway.integration.wsdl.model.providers.service.OperationAdapter.loadRelatedElements(OperationAdapter.java:109)
   at com.skyway.integration.wsdl.model.providers.service.OperationAdapter.<init>(OperationAdapter.java:83)
   at com.skyway.integration.wsdl.model.WSDLToModelAdapterFactory.adaptToModel(WSDLToModelAdapterFactory.java:38)
   at com.skyway.integration.wsdl.model.providers.service.ServiceAdapter.adaptOperation(ServiceAdapter.java:88)
   at com.skyway.integration.wsdl.model.providers.service.ServiceAdapter.loadOperations(ServiceAdapter.java:70)
   at com.skyway.integration.wsdl.transformation.contractfirst.WSDLToServiceContractTransformation.loadServiceRelationships(WSDLToServiceContractTransformation.java:378)
   at com.skyway.integration.wsdl.transformation.contractfirst.WSDLToServiceContractTransformation.transformWSDLToServices(WSDLToServiceContractTransformation.java:250)
   at com.skyway.integration.wsdl.transformation.contractfirst.CreateServiceContractJob.runInWorkspace(CreateServiceContractJob.java:80)
   at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
   at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)


3. JAX-WS
 
 View user's profile Send private message  
Reply with quote Back to top
atulsamnerkar
Post subject:   PostPosted: Jun 02, 2012 - 10:23 AM
Registered Member
Registered Member


Joined: Jun 01, 2012
Posts: 12

I have validated the wsdl file in XMLSpy. Let us know the further steps to investigate this issue further.

Thanks & Regards,
Atul Samnerkar
 
 View user's profile Send private message  
Reply with quote Back to top
support-swapna
Post subject:   PostPosted: Jun 04, 2012 - 01:34 PM



Joined: Nov 11, 2010
Posts: 2491

Atul,

Thank you for the details. I have escalated it to a dev team member.
They will get back to you.

_________________
Swapna
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
atulsamnerkar
Post subject:   PostPosted: Jun 05, 2012 - 11:46 AM
Registered Member
Registered Member


Joined: Jun 01, 2012
Posts: 12

Hello Swapna,

When i can expect updates on this case? Eagerly waiting for updates.

Thanks & Regards,
Atul Samnerkar
 
 View user's profile Send private message  
Reply with quote Back to top
cconway
Post subject:   PostPosted: Jun 05, 2012 - 07:07 PM



Joined: Apr 04, 2011
Posts: 196

Hi Atul,

When I create the wsdl in my environment, there is an error on the ns1:Person object. Please see the attached screenshot. Please update the wsdl to eliminate that problem and try again.

Likely, XML spy only validated the structure whereas the Eclipse editor will verify that objects are really found in the namespace. The import wsdl process must be able to "crawl" the objects in order to function. I hope this helps.

_________________
Cindy
MyEclipse for Spring Support
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
atulsamnerkar
Post subject:   PostPosted: Jun 05, 2012 - 10:08 PM
Registered Member
Registered Member


Joined: Jun 01, 2012
Posts: 12

Hi Cindy,

Thanks for your updates. As mentioned in the wsdl, this wsdl is dependent on the imported xsd file which as internally dependancy on other xsd files.
To resolve the issue mentioned by you, i have attached imported xsd files in zip format. Please unextract the contents and change the path for the import xsd file in wsdl file. I have added the required code snippet where you need to change the path. Make sure you change the path for schemaLocation as per local path.


Code:

   <types>
      <schema xmlns="http://www.w3.org/2001/XMLSchema">
         <import namespace="http://www.test.com/Customer/V1/Person"
            schemaLocation="Customer/V1/Person.xsd" />
      </schema>
   </types>


Let me know if you are able to resolve this dependency..

Thanks & Regards,
Atul Samnerkar
 
 View user's profile Send private message  
Reply with quote Back to top
atulsamnerkar
Post subject:   PostPosted: Jun 06, 2012 - 01:05 PM
Registered Member
Registered Member


Joined: Jun 01, 2012
Posts: 12

Hello Support Team,

I am stuck on this issue. I will appreciate your prompt resolution.

Thanks & Regards,
Atul Samnerkar
 
 View user's profile Send private message  
Reply with quote Back to top
atulsamnerkar
Post subject:   PostPosted: Jun 08, 2012 - 05:57 PM
Registered Member
Registered Member


Joined: Jun 01, 2012
Posts: 12

Is anyone working on this issue?

I am really in need of this resolution. Can you please increase the priority of this case to HIGH? Your kind attention to this case is HIGHLY appreciated.

Thanks & Regards,
Atul Samnerkar
 
 View user's profile Send private message  
Reply with quote Back to top
support-tony
Post subject:   PostPosted: Jun 11, 2012 - 08:39 AM



Joined: Mar 09, 2011
Posts: 916

Atul,

Sorry for the delay. We are still looking at the problem as you reported. However, from the details you provided, it's not clear that you are needing to use the MyEclipse for Spring tools for web service generation or not. Your use of the Import WSDL wizard, as you mentioned, is not needed for web service generation, generally.

The usual way to create a web service from WSDL, in MyEclipse, is to create a Web Service Project (which you have already done). Right click on the project, select New, Other, then select MyEclipse->Web Services->Web Service. In the wizard, leave the defaults in the first page and click Next. On the next page, select "WSDL File" and browse to the WSDL you want to use and enter the Java package in which generated files will be placed. Click Next and then Finish. This will use all defaults and generate the code for the web service. You can deploy the project to a web server and test the web service using the Web Services Explorer.

There is information on some of this in the on-line educational material, though the tutorial is more to create web services from some base code, rather than from a WSDL. Go to this page and search for "web services overview". The page also has links to web services facilities in other sections, including the facilities included in "MyEclipse for Spring", which is incorporated into the MyEclipse Bling edition that you're using (the Import WSDL wizard is covered in one of the articles in this section).

I hope this helps for now. If you really need to use the Import WSDL wizard, Cindy is looking into that.

_________________
Tony
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
atulsamnerkar
Post subject:   PostPosted: Jun 27, 2012 - 10:21 AM
Registered Member
Registered Member


Joined: Jun 01, 2012
Posts: 12

I am successfully able to create the web service with the given option.(new>other>myEclipse>web services>web service) However my intention is to generate web service with SPRING capabilities.If i opt the way mentioned in your response, then generates webservice without SPRING capabilities.

Help me to understand how i can add SPRING capabilities (including annotations in the generated web service classes) with new>other>myEclipse>web services>web service option? or else help me to understand how to generate SPRING WebService using WSDL.

Thanks & Regards,
Atul Samnerkar
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits