You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by jackdawson <ab...@gmail.com> on 2008/09/17 13:08:30 UTC

IWAB0497E Error in writing WSDL file null

Hello all,

First of all thanks for all the help I've been getting here. 
Here is the new hurdle. I followed all the steps for creating a web service
using a top down approach from this tutorial: 

http://www.eclipse.org/webtools/community/tutorials/TopDownAxis2WebService/td_tutorial.html
http://www.eclipse.org/webtools/community/tutorials/TopDownAxis2WebService/td_tutorial.html 

But after the step12 I got the error below. It couldn't parse the WSDL and
generate the service. 
I'm using:
1) Eclipse WTP 3.3.x 
2) Axis2 1.4.1
3)Tomcat 6
4) JDK 1.5

Does anyone know what exactly this means?

IWAB0497E Error in writing WSDL file null
    org.eclipse.core.internal.resources.ResourceException: A resource exists
with a different case: '/TestAuthenticationWebService/WebContent/WSDL'.
    at
org.eclipse.core.internal.resources.Resource.checkDoesNotExist(Resource.java:298)
    at
org.eclipse.core.internal.resources.Resource.checkDoesNotExist(Resource.java:276)
    at
org.eclipse.core.internal.resources.Folder.assertCreateRequirements(Folder.java:29)
    at org.eclipse.core.internal.resources.Folder.create(Folder.java:88)
    at org.eclipse.core.internal.resources.Folder.create(Folder.java:118)
    at
org.eclipse.jst.ws.internal.axis.consumption.ui.util.FileUtil.createFolder(FileUtil.java:102)
    at
org.eclipse.jst.ws.internal.axis.creation.ui.task.Skeleton2WSDLCommand.execute(Skeleton2WSDLCommand.java:173)
    at
org.eclipse.jst.ws.internal.axis.creation.ui.command.TDCodeGenOperation$TopDownWSModifyOperation.execute(TDCodeGenOperation.java:151)
    at
org.eclipse.jst.ws.internal.axis.creation.ui.command.TDCodeGenOperation.execute(TDCodeGenOperation.java:89)
    at
org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.runCommand(CommandFragmentEngine.java:419)
    at
org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.visitTop(CommandFragmentEngine.java:359)
    at
org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.moveForwardToNextStop(CommandFragmentEngine.java:254)
    at
org.eclipse.wst.command.internal.env.ui.widgets.SimpleCommandEngineManager$6.run(SimpleCommandEngineManager.java:294)
    at
org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:369)
    at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:313)
    at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:934)
    at
org.eclipse.wst.command.internal.env.ui.widgets.SimpleCommandEngineManager.runForwardToNextStop(SimpleCommandEngineManager.java:264)
    at
org.eclipse.wst.command.internal.env.ui.widgets.WizardPageManager.runForwardToNextStop(WizardPageManager.java:91)
    at
org.eclipse.wst.command.internal.env.ui.widgets.WizardPageManager.getNextPage(WizardPageManager.java:154)
    at
org.eclipse.wst.command.internal.env.ui.widgets.SimpleWizardPage.getNextPage(SimpleWizardPage.java:136)
    at
org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:813)
    at
org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:369)
    at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:616)
    at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:227)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
    at org.eclipse.jface.window.Window.open(Window.java:796)
    at org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.java:182)
    at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
    at
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:546)
    at
org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490)
    at
org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
    at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
    at
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
    at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at
org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
    at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
    at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
    at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
    at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
    at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
    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:585)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1148)

Thanks.
-- 
View this message in context: http://www.nabble.com/IWAB0497E-Error-in-writing-WSDL-file-null-tp19529642p19529642.html
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


RE: AW: IWAB0497E Error in writing WSDL file null

Posted by Martin Gainty <mg...@hotmail.com>.
agreed
/TestAuthenticationWebService/WebContent/WSDL exists
or
/TestAuthenticationWebService/WebContent/wsdl exists
or
/TestAuthenticationWebService/WebContent/Wsdl exists
or
/TestAuthenticationWebService/WebContent/WsDl exists
clean your folder /TestAuthenticationWebService before deploying will ensure a clean deploy..

Martin
______________________________________________ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. 


> Subject: AW: IWAB0497E Error in writing WSDL file null
> Date: Wed, 17 Sep 2008 15:41:57 +0200
> From: Grimm@juris.de
> To: axis-user@ws.apache.org
> 
> Hi,
> 
> just an idea: is there a resource-folder under your project ? delete all content.
> delete all content under WebContent except axis2-web, META-INF and WEB-INFand try again.
> 
> hope this helps...
> 
> Bye
> Markus
> 
> 
> 
>  
> 
> 
> 
> -----Ursprüngliche Nachricht-----
> Von: jackdawson [mailto:abhishek.foi@gmail.com] 
> Gesendet: Mittwoch, 17. September 2008 13:09
> An: axis-user@ws.apache.org
> Betreff: IWAB0497E Error in writing WSDL file null
> 
> 
> Hello all,
> 
> First of all thanks for all the help I've been getting here. 
> Here is the new hurdle. I followed all the steps for creating a web service
> using a top down approach from this tutorial: 
> 
> http://www.eclipse.org/webtools/community/tutorials/TopDownAxis2WebService/td_tutorial.html
> http://www.eclipse.org/webtools/community/tutorials/TopDownAxis2WebService/td_tutorial.html 
> 
> But after the step12 I got the error below. It couldn't parse the WSDL and
> generate the service. 
> I'm using:
> 1) Eclipse WTP 3.3.x 
> 2) Axis2 1.4.1
> 3)Tomcat 6
> 4) JDK 1.5
> 
> Does anyone know what exactly this means?
> 
> IWAB0497E Error in writing WSDL file null
>     org.eclipse.core.internal.resources.ResourceException: A resource exists
> with a different case: '/TestAuthenticationWebService/WebContent/WSDL'.
>     at
> org.eclipse.core.internal.resources.Resource.checkDoesNotExist(Resource.java:298)
>     at
> org.eclipse.core.internal.resources.Resource.checkDoesNotExist(Resource.java:276)
>     at
> org.eclipse.core.internal.resources.Folder.assertCreateRequirements(Folder.java:29)
>     at org.eclipse.core.internal.resources.Folder.create(Folder.java:88)
>     at org.eclipse.core.internal.resources.Folder.create(Folder.java:118)
>     at
> org.eclipse.jst.ws.internal.axis.consumption.ui.util.FileUtil.createFolder(FileUtil.java:102)
>     at
> org.eclipse.jst.ws.internal.axis.creation.ui.task.Skeleton2WSDLCommand.execute(Skeleton2WSDLCommand.java:173)
>     at
> org.eclipse.jst.ws.internal.axis.creation.ui.command.TDCodeGenOperation$TopDownWSModifyOperation.execute(TDCodeGenOperation.java:151)
>     at
> org.eclipse.jst.ws.internal.axis.creation.ui.command.TDCodeGenOperation.execute(TDCodeGenOperation.java:89)
>     at
> org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.runCommand(CommandFragmentEngine.java:419)
>     at
> org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.visitTop(CommandFragmentEngine.java:359)
>     at
> org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.moveForwardToNextStop(CommandFragmentEngine.java:254)
>     at
> org.eclipse.wst.command.internal.env.ui.widgets.SimpleCommandEngineManager$6.run(SimpleCommandEngineManager.java:294)
>     at
> org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:369)
>     at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:313)
>     at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:934)
>     at
> org.eclipse.wst.command.internal.env.ui.widgets.SimpleCommandEngineManager.runForwardToNextStop(SimpleCommandEngineManager.java:264)
>     at
> org.eclipse.wst.command.internal.env.ui.widgets.WizardPageManager.runForwardToNextStop(WizardPageManager.java:91)
>     at
> org.eclipse.wst.command.internal.env.ui.widgets.WizardPageManager.getNextPage(WizardPageManager.java:154)
>     at
> org.eclipse.wst.command.internal.env.ui.widgets.SimpleWizardPage.getNextPage(SimpleWizardPage.java:136)
>     at
> org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:813)
>     at
> org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:369)
>     at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:616)
>     at
> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:227)
>     at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
>     at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
>     at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
>     at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
>     at org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
>     at org.eclipse.jface.window.Window.open(Window.java:796)
>     at org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.java:182)
>     at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
>     at
> org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:546)
>     at
> org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490)
>     at
> org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402)
>     at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
>     at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
>     at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
>     at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
>     at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
>     at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
>     at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
>     at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
>     at
> org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
>     at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
>     at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
>     at
> org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
>     at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
>     at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
>     at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
>     at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
>     at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
>     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:585)
>     at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
>     at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
>     at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
>     at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
> 
> Thanks.
> -- 
> View this message in context: http://www.nabble.com/IWAB0497E-Error-in-writing-WSDL-file-null-tp19529642p19529642.html
> Sent from the Axis - User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
> 

_________________________________________________________________
See how Windows connects the people, information, and fun that are part of your life.
http://clk.atdmt.com/MRT/go/msnnkwxp1020093175mrt/direct/01/

RE: AW: IWAB0497E Error in writing WSDL file null

Posted by jackdawson <ab...@gmail.com>.
No, I didn't follow the instructions from there. 
This is where I followed the steps from : 
http://wso2.org/library/1986 http://wso2.org/library/1986 

But I think I'm kind of lost now. Before I ask you why JIBX came into
picture may I ask you the steps to create a web service when you have only
WSDL. I rehearsed creating web services by using lots of WSDLs from
XMethods.com and they worked fine. 

I'm sure something is hiding here with this case which I can't trace. For
now, I think it's all in the WSDL I'm using but I may be something else too.

Thanks.  
-- 
View this message in context: http://www.nabble.com/IWAB0497E-Error-in-writing-WSDL-file-null-tp19529642p19545390.html
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


RE: AW: IWAB0497E Error in writing WSDL file null

Posted by Martin Gainty <mg...@hotmail.com>.
this is specific to JIBX

did you follow the instructions here?
http://ws.apache.org/axis2/1_3/userguide-creatingclients-jibx.html

then use wsdl2Java to generate server

wsdl2Java -g -ss -uri *.wsdl

then to create the stub
wsdl2Java -t -uri *.wsdl

Martin 
______________________________________________ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. 


> Date: Wed, 17 Sep 2008 10:31:10 -0700
> From: abhishek.foi@gmail.com
> To: axis-user@ws.apache.org
> Subject: Re: AW: IWAB0497E Error in writing WSDL file null
> 
> 
> Thanks for the prompt reply.
> 
> I'm using Axis2 Eclipse Codegen plugin for creating a web service from a
> WSDL.
> 
> Initially, I tried to create server side components. So, this is what I did:
> Step 1: File -> New -> Other ->Axis2 Wizards -> Axis2 Code Generator.
> Clicked Next.
> Step 2: Selected "Generate Java source code from a WSDL file". Clicked Next.
> Step 3: Selected the WSDL file location and clicked Next.
> Step 4: Selected "Codegen Option" as "custom" and selected the checkbox
> "Generate server side code" and "Generate a default services.xml". Clicked
> Next. 
> Step 5: Selected the radio option "Browse and select a project on current
> eclipse workspace" and specified the project. I even selected the checkbox
> "Add the Axis2 codegen jars to the codegen resulted project".
> Step 6: Clicked Finish. Not a happy ending. It threw me an
> InterruptedException.
> 
> Here is the WSDL that I used to generate the java code:
> The <part> element inside <message> seems to be the culprit. When I comment
> both the request and response <part> elements I won't get any error.
> 
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions targetNamespace="urn:login.safe.two.us"
> 	xmlns:apachesoap="http://xml.apache.org/xml-soap"
> 	xmlns:impl="urn:login.safe.two.us"
> 	xmlns:intf="urn:login.safe.two.us"
> 	xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> 	xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
> 	xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> 	<wsdl:types>
> 		<schema elementFormDefault="qualified"
> 			targetNamespace="urn:login.safe.two.us"
> 			xmlns="http://www.w3.org/2001/XMLSchema">
> 			
> 			<complexType name="TestLoginType">
> 				<sequence>
> 					<element name="eid" maxOccurs="1" minOccurs="1" type="xsd:string" />
> 					<element name="key" nillable="true" type="xsd:string" />
> 				</sequence>
> 			</complexType>
> 			
> 			<complexType name="TestLoginResponse">
> 				<sequence>
> 					<element name="failedReason" nillable="true" type="xsd:string" />
> 					<element name="status" type="xsd:boolean" />
> 				</sequence>
> 			</complexType>
> 		</schema>
> 	</wsdl:types>
> 	
> 	<wsdl:message name="testLoginRequest">
> 		<wsdl:part name="testLoginRequestAttributes" type="impl:TestLoginType"/>
> 	</wsdl:message>
> 	
> 	<wsdl:message name="testLoginResponse">
> 		<wsdl:part name="testLoginResponseAttributes"
> type="impl:TestLoginResponse"/> 
> 	</wsdl:message>
> 
> 	<wsdl:portType name="LoginServicePortType">
> 		<wsdl:operation name="testLogin">
> 			<wsdl:input message="impl:testLoginRequest" name="testLoginRequest" />
> 			<wsdl:output message="impl:testLoginResponse" name="testLoginResponse" />
> 		</wsdl:operation>
> 	</wsdl:portType>
> 
> 	<wsdl:binding name="LoginServiceSoapBinding"
> type="impl:LoginServicePortType">
> 		<wsdlsoap:binding style="document"
> transport="http://schemas.xmlsoap.org/soap/http" />
> 		<wsdl:operation name="testLogin">
> 			<wsdlsoap:operation soapAction="" />
> 			<wsdl:input name="testLoginRequest">
> 				<wsdlsoap:body use="literal" />
> 			</wsdl:input>
> 			<wsdl:output name="testLoginResponse">
> 				<wsdlsoap:body use="literal" />
> 			</wsdl:output>
> 		</wsdl:operation>
> 	</wsdl:binding>
> 
> 	<wsdl:service name="LoginService">
> 		<wsdl:port binding="impl:LoginServiceSoapBinding" name="LoginService">			
> 			<wsdlsoap:address location="http://localhost:8080/axis2/services/login"
> />			
> 		</wsdl:port>
> 	</wsdl:service>
> </wsdl:definitions>
> 
> 
> This is what the exception raised:
> An error occurred while completing process -
> java.lang.reflect.InvocationException
> No element type is defined for the message testLoginRequest
> 
> Any help is really appreciated.
> 
> Thanks.
> 
> 
>  
> -- 
> View this message in context: http://www.nabble.com/IWAB0497E-Error-in-writing-WSDL-file-null-tp19529642p19537249.html
> Sent from the Axis - User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
> 

_________________________________________________________________
Get more out of the Web. Learn 10 hidden secrets of Windows Live.
http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008

Re: AW: IWAB0497E Error in writing WSDL file null

Posted by jackdawson <ab...@gmail.com>.
Thanks for the prompt reply.

I'm using Axis2 Eclipse Codegen plugin for creating a web service from a
WSDL.

Initially, I tried to create server side components. So, this is what I did:
Step 1: File -> New -> Other ->Axis2 Wizards -> Axis2 Code Generator.
Clicked Next.
Step 2: Selected "Generate Java source code from a WSDL file". Clicked Next.
Step 3: Selected the WSDL file location and clicked Next.
Step 4: Selected "Codegen Option" as "custom" and selected the checkbox
"Generate server side code" and "Generate a default services.xml". Clicked
Next. 
Step 5: Selected the radio option "Browse and select a project on current
eclipse workspace" and specified the project. I even selected the checkbox
"Add the Axis2 codegen jars to the codegen resulted project".
Step 6: Clicked Finish. Not a happy ending. It threw me an
InterruptedException.

Here is the WSDL that I used to generate the java code:
The <part> element inside <message> seems to be the culprit. When I comment
both the request and response <part> elements I won't get any error.


<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="urn:login.safe.two.us"
	xmlns:apachesoap="http://xml.apache.org/xml-soap"
	xmlns:impl="urn:login.safe.two.us"
	xmlns:intf="urn:login.safe.two.us"
	xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
	xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
	xmlns:xsd="http://www.w3.org/2001/XMLSchema">
	<wsdl:types>
		<schema elementFormDefault="qualified"
			targetNamespace="urn:login.safe.two.us"
			xmlns="http://www.w3.org/2001/XMLSchema">
			
			<complexType name="TestLoginType">
				<sequence>
					<element name="eid" maxOccurs="1" minOccurs="1" type="xsd:string" />
					<element name="key" nillable="true" type="xsd:string" />
				</sequence>
			</complexType>
			
			<complexType name="TestLoginResponse">
				<sequence>
					<element name="failedReason" nillable="true" type="xsd:string" />
					<element name="status" type="xsd:boolean" />
				</sequence>
			</complexType>
		</schema>
	</wsdl:types>
	
	<wsdl:message name="testLoginRequest">
		<wsdl:part name="testLoginRequestAttributes" type="impl:TestLoginType"/>
	</wsdl:message>
	
	<wsdl:message name="testLoginResponse">
		<wsdl:part name="testLoginResponseAttributes"
type="impl:TestLoginResponse"/> 
	</wsdl:message>

	<wsdl:portType name="LoginServicePortType">
		<wsdl:operation name="testLogin">
			<wsdl:input message="impl:testLoginRequest" name="testLoginRequest" />
			<wsdl:output message="impl:testLoginResponse" name="testLoginResponse" />
		</wsdl:operation>
	</wsdl:portType>

	<wsdl:binding name="LoginServiceSoapBinding"
type="impl:LoginServicePortType">
		<wsdlsoap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http" />
		<wsdl:operation name="testLogin">
			<wsdlsoap:operation soapAction="" />
			<wsdl:input name="testLoginRequest">
				<wsdlsoap:body use="literal" />
			</wsdl:input>
			<wsdl:output name="testLoginResponse">
				<wsdlsoap:body use="literal" />
			</wsdl:output>
		</wsdl:operation>
	</wsdl:binding>

	<wsdl:service name="LoginService">
		<wsdl:port binding="impl:LoginServiceSoapBinding" name="LoginService">			
			<wsdlsoap:address location="http://localhost:8080/axis2/services/login"
/>			
		</wsdl:port>
	</wsdl:service>
</wsdl:definitions>


This is what the exception raised:
An error occurred while completing process -
java.lang.reflect.InvocationException
No element type is defined for the message testLoginRequest

Any help is really appreciated.

Thanks.


 
-- 
View this message in context: http://www.nabble.com/IWAB0497E-Error-in-writing-WSDL-file-null-tp19529642p19537249.html
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: AW: IWAB0497E Error in writing WSDL file null

Posted by jackdawson <ab...@gmail.com>.
Thanks Markus but there are folders and no content under WebContent.

I thought it would be easier to use Axis2 Eclipse Codegen plugins. Even that
threw an InterruptedException on the final step of generating server side
stuff.

Any idea of what might be wrong?

Thanks.






Grimm, Markus wrote:
> 
> Hi,
> 
> just an idea: is there a resource-folder under your project ? delete all
> content.
> delete all content under WebContent except axis2-web, META-INF and
> WEB-INFand try again.
> 
> hope this helps...
> 
> Bye
> Markus
> 
> 
> 
>  
> 
> 
> 
> -----Ursprüngliche Nachricht-----
> Von: jackdawson [mailto:abhishek.foi@gmail.com] 
> Gesendet: Mittwoch, 17. September 2008 13:09
> An: axis-user@ws.apache.org
> Betreff: IWAB0497E Error in writing WSDL file null
> 
> 
> Hello all,
> 
> First of all thanks for all the help I've been getting here. 
> Here is the new hurdle. I followed all the steps for creating a web
> service
> using a top down approach from this tutorial: 
> 
> http://www.eclipse.org/webtools/community/tutorials/TopDownAxis2WebService/td_tutorial.html
> http://www.eclipse.org/webtools/community/tutorials/TopDownAxis2WebService/td_tutorial.html 
> 
> But after the step12 I got the error below. It couldn't parse the WSDL and
> generate the service. 
> I'm using:
> 1) Eclipse WTP 3.3.x 
> 2) Axis2 1.4.1
> 3)Tomcat 6
> 4) JDK 1.5
> 
> Does anyone know what exactly this means?
> 
> IWAB0497E Error in writing WSDL file null
>     org.eclipse.core.internal.resources.ResourceException: A resource
> exists
> with a different case: '/TestAuthenticationWebService/WebContent/WSDL'.
>     at
> org.eclipse.core.internal.resources.Resource.checkDoesNotExist(Resource.java:298)
>     at
> org.eclipse.core.internal.resources.Resource.checkDoesNotExist(Resource.java:276)
>     at
> org.eclipse.core.internal.resources.Folder.assertCreateRequirements(Folder.java:29)
>     at org.eclipse.core.internal.resources.Folder.create(Folder.java:88)
>     at org.eclipse.core.internal.resources.Folder.create(Folder.java:118)
>     at
> org.eclipse.jst.ws.internal.axis.consumption.ui.util.FileUtil.createFolder(FileUtil.java:102)
>     at
> org.eclipse.jst.ws.internal.axis.creation.ui.task.Skeleton2WSDLCommand.execute(Skeleton2WSDLCommand.java:173)
>     at
> org.eclipse.jst.ws.internal.axis.creation.ui.command.TDCodeGenOperation$TopDownWSModifyOperation.execute(TDCodeGenOperation.java:151)
>     at
> org.eclipse.jst.ws.internal.axis.creation.ui.command.TDCodeGenOperation.execute(TDCodeGenOperation.java:89)
>     at
> org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.runCommand(CommandFragmentEngine.java:419)
>     at
> org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.visitTop(CommandFragmentEngine.java:359)
>     at
> org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.moveForwardToNextStop(CommandFragmentEngine.java:254)
>     at
> org.eclipse.wst.command.internal.env.ui.widgets.SimpleCommandEngineManager$6.run(SimpleCommandEngineManager.java:294)
>     at
> org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:369)
>     at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:313)
>     at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:934)
>     at
> org.eclipse.wst.command.internal.env.ui.widgets.SimpleCommandEngineManager.runForwardToNextStop(SimpleCommandEngineManager.java:264)
>     at
> org.eclipse.wst.command.internal.env.ui.widgets.WizardPageManager.runForwardToNextStop(WizardPageManager.java:91)
>     at
> org.eclipse.wst.command.internal.env.ui.widgets.WizardPageManager.getNextPage(WizardPageManager.java:154)
>     at
> org.eclipse.wst.command.internal.env.ui.widgets.SimpleWizardPage.getNextPage(SimpleWizardPage.java:136)
>     at
> org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:813)
>     at
> org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:369)
>     at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:616)
>     at
> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:227)
>     at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
>     at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
>     at
> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
>     at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
>     at org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
>     at org.eclipse.jface.window.Window.open(Window.java:796)
>     at
> org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.java:182)
>     at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
>     at
> org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:546)
>     at
> org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490)
>     at
> org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402)
>     at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
>     at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
>     at
> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
>     at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
>     at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
>     at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
>     at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
>     at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
>     at
> org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
>     at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
>     at
> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
>     at
> org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
>     at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
>     at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
>     at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
>     at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
>     at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
>     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:585)
>     at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
>     at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
>     at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
>     at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
> 
> Thanks.
> -- 
> View this message in context:
> http://www.nabble.com/IWAB0497E-Error-in-writing-WSDL-file-null-tp19529642p19529642.html
> Sent from the Axis - User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/IWAB0497E-Error-in-writing-WSDL-file-null-tp19529642p19532977.html
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


AW: IWAB0497E Error in writing WSDL file null

Posted by "Grimm, Markus" <Gr...@juris.de>.
Hi,

just an idea: is there a resource-folder under your project ? delete all content.
delete all content under WebContent except axis2-web, META-INF and WEB-INFand try again.

hope this helps...

Bye
Markus



 



-----Ursprüngliche Nachricht-----
Von: jackdawson [mailto:abhishek.foi@gmail.com] 
Gesendet: Mittwoch, 17. September 2008 13:09
An: axis-user@ws.apache.org
Betreff: IWAB0497E Error in writing WSDL file null


Hello all,

First of all thanks for all the help I've been getting here. 
Here is the new hurdle. I followed all the steps for creating a web service
using a top down approach from this tutorial: 

http://www.eclipse.org/webtools/community/tutorials/TopDownAxis2WebService/td_tutorial.html
http://www.eclipse.org/webtools/community/tutorials/TopDownAxis2WebService/td_tutorial.html 

But after the step12 I got the error below. It couldn't parse the WSDL and
generate the service. 
I'm using:
1) Eclipse WTP 3.3.x 
2) Axis2 1.4.1
3)Tomcat 6
4) JDK 1.5

Does anyone know what exactly this means?

IWAB0497E Error in writing WSDL file null
    org.eclipse.core.internal.resources.ResourceException: A resource exists
with a different case: '/TestAuthenticationWebService/WebContent/WSDL'.
    at
org.eclipse.core.internal.resources.Resource.checkDoesNotExist(Resource.java:298)
    at
org.eclipse.core.internal.resources.Resource.checkDoesNotExist(Resource.java:276)
    at
org.eclipse.core.internal.resources.Folder.assertCreateRequirements(Folder.java:29)
    at org.eclipse.core.internal.resources.Folder.create(Folder.java:88)
    at org.eclipse.core.internal.resources.Folder.create(Folder.java:118)
    at
org.eclipse.jst.ws.internal.axis.consumption.ui.util.FileUtil.createFolder(FileUtil.java:102)
    at
org.eclipse.jst.ws.internal.axis.creation.ui.task.Skeleton2WSDLCommand.execute(Skeleton2WSDLCommand.java:173)
    at
org.eclipse.jst.ws.internal.axis.creation.ui.command.TDCodeGenOperation$TopDownWSModifyOperation.execute(TDCodeGenOperation.java:151)
    at
org.eclipse.jst.ws.internal.axis.creation.ui.command.TDCodeGenOperation.execute(TDCodeGenOperation.java:89)
    at
org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.runCommand(CommandFragmentEngine.java:419)
    at
org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.visitTop(CommandFragmentEngine.java:359)
    at
org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.moveForwardToNextStop(CommandFragmentEngine.java:254)
    at
org.eclipse.wst.command.internal.env.ui.widgets.SimpleCommandEngineManager$6.run(SimpleCommandEngineManager.java:294)
    at
org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:369)
    at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:313)
    at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:934)
    at
org.eclipse.wst.command.internal.env.ui.widgets.SimpleCommandEngineManager.runForwardToNextStop(SimpleCommandEngineManager.java:264)
    at
org.eclipse.wst.command.internal.env.ui.widgets.WizardPageManager.runForwardToNextStop(WizardPageManager.java:91)
    at
org.eclipse.wst.command.internal.env.ui.widgets.WizardPageManager.getNextPage(WizardPageManager.java:154)
    at
org.eclipse.wst.command.internal.env.ui.widgets.SimpleWizardPage.getNextPage(SimpleWizardPage.java:136)
    at
org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:813)
    at
org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:369)
    at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:616)
    at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:227)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
    at org.eclipse.jface.window.Window.open(Window.java:796)
    at org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.java:182)
    at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
    at
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:546)
    at
org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490)
    at
org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
    at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
    at
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
    at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at
org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
    at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
    at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
    at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
    at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
    at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
    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:585)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1148)

Thanks.
-- 
View this message in context: http://www.nabble.com/IWAB0497E-Error-in-writing-WSDL-file-null-tp19529642p19529642.html
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org