- This topic has 11 replies, 4 voices, and was last updated 12 years, 10 months ago by
Atul Samnerkar.
-
AuthorPosts
-
Atul SamnerkarMemberI 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,
<?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>
support-swapnaModeratoratulsamnerkar,
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/
Atul SamnerkarMemberPlease find below the required info for further investigations,
1. Pleaes find below installation details,
*** 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…
!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
Atul SamnerkarMemberI have validated the wsdl file in XMLSpy. Let us know the further steps to investigate this issue further.
Thanks & Regards,
Atul Samnerkar
support-swapnaModeratorAtul,
Thank you for the details. I have escalated it to a dev team member.
They will get back to you.
Atul SamnerkarMemberHello Swapna,
When i can expect updates on this case? Eagerly waiting for updates.
Thanks & Regards,
Atul Samnerkar
cconwayMemberHi 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.
Attachments:
You must be logged in to view attached files.
Atul SamnerkarMemberHi 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.<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 SamnerkarAttachments:
You must be logged in to view attached files.
Atul SamnerkarMemberHello Support Team,
I am stuck on this issue. I will appreciate your prompt resolution.
Thanks & Regards,
Atul Samnerkar
Atul SamnerkarMemberIs 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
support-tonyKeymasterAtul,
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.
Atul SamnerkarMemberI 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 -
AuthorPosts