Skip to Content
0
Former Member
Mar 05, 2010 at 08:32 PM

Failed to Parse WSDL when generating Adaptive Web Service Model

250 Views

I was trying to create an AWS model against an IBM FileNET P8 web service. It keeps failing during the client generation step.

The interesting thing is, if I try to generate the web service client using the AXIS 1.4 framework, which is also included inside NWDS, it works.

Here is the AWS wizard error from the NWDS log:

<br>

<br>

<pre>

com.tssap.util.ui 4 0 2010-03-05 14:14:33.382

Mar 5, 2010 2:14:33 PM com.sap.tc.webdynpro.model.webservice.modeltype.importer.... [Thread[main,6,main]] Error: Error in loading namespace and model class

java.lang.IllegalArgumentException: can't parse argument number http://www.filenet.com/ns/fnce/2006/11/ws/schema

at java.text.MessageFormat.makeFormat(MessageFormat.java:1330)

at java.text.MessageFormat.applyPattern(MessageFormat.java:450)

at java.text.MessageFormat.<init>(MessageFormat.java:350)

at java.text.MessageFormat.format(MessageFormat.java:803)

at com.sap.tc.webdynpro.model.webservice.base.exception.BaseModelRuntimeException$DummyLocalizableTextFormatter.<init>(BaseModelRuntimeException.java:69)

at com.sap.tc.webdynpro.model.webservice.base.exception.BaseModelRuntimeException$DummyLocalizableTextFormatter.<init>(BaseModelRuntimeException.java:66)

at com.sap.tc.webdynpro.model.webservice.base.exception.BaseModelRuntimeException.<init>(BaseModelRuntimeException.java:58)

at com.sap.tc.webdynpro.model.webservice.base.exception.BaseModelRuntimeException.<init>(BaseModelRuntimeException.java:38)

at com.sap.tc.webdynpro.model.webservice.exception.WSModelRuntimeException.<init>(WSModelRuntimeException.java:49)

at com.sap.tc.webdynpro.model.webservice.exception.WSModelLimitationException.<init>(WSModelLimitationException.java:18)

at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.resolveDDicTypeFromWSRSimpleType(WSModelInfo.java:766)

at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.getOrCreateMcForComplexType(WSModelInfo.java:542)

at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.resolveStructureFields(WSModelInfo.java:631)

at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.getOrCreateMcForComplexType(WSModelInfo.java:549)

at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.addOperationParamsToModelClass(WSModelInfo.java:509)

at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.createMetadataForOperation(WSModelInfo.java:477)

at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.readOperationsFromWSDL(WSModelInfo.java:379)

at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.importMetadataInternal(WSModelInfo.java:342)

at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.importMetadata(WSModelInfo.java:306)

at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.importMetadata(WSModelInfo.java:316)

at com.sap.tc.webdynpro.model.webservice.modeltype.importer.ui.PageAWSRename.loadNameSpacesAndModelClasses(PageAWSRename.java:996)

at com.sap.tc.webdynpro.model.webservice.modeltype.importer.ui.PageAWSLocalFileClient$5$1.run(PageAWSLocalFileClient.java:283)

at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)

at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:123)

at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3659)

at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3296)

at org.eclipse.jface.operation.ModalContext$ModalContextThread.block(ModalContext.java:158)

at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:326)

at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:934)

at com.sap.tc.webdynpro.model.webservice.modeltype.importer.ui.PageAWSLocalFileClient.getNextPage(PageAWSLocalFileClient.java:299)

at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:813)

at com.sap.ide.cmi.core.internal.newmodelwizard.NewModelWizardDialog.nextPressed(NewModelWizardDialog.java:66)

at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:369)

at com.sap.ide.cmi.core.internal.newmodelwizard.NewModelWizardDialog.buttonPressed(NewModelWizardDialog.java:88)

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 com.sap.ide.cmi.core.internal.services.CreationServiceUI.createModel(CreationServiceUI.java:76)

at com.sap.ide.cmi.core.browser.actions.CreateModelAction.run(CreateModelAction.java:60)

at com.sap.ide.tools.core.viewerfwk.internal.actions.BaseSelectionSingleAction.run(BaseSelectionSingleAction.java:39)

at com.sap.ide.tools.core.viewerfwk.internal.actions.BaseSelectionAction.runInternal(BaseSelectionAction.java:78)

at com.sap.ide.tools.core.viewerfwk.internal.actions.BaseSelectionAction.run(BaseSelectionAction.java:70)

at org.eclipse.ui.actions.BaseSelectionListenerAction.runWithEvent(BaseSelectionListenerAction.java:168)

at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:545)

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:153)

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:504)

at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)

at org.eclipse.equinox.launcher.Main.run(Main.java:1169)

at org.eclipse.equinox.launcher.Main.main(Main.java:1144)

</pre>

<br>

<br>

The WSDL file:

<br>

<br>

<pre>

&lt;?xml version='1.0' encoding='utf-8' ?&gt;

<definitions name='FNCEWS40SOAP' targetNamespace='http://www.filenet.com/ns/fnce/2006/11/ws/SOAP/wsdl'

xmlns='http://schemas.xmlsoap.org/wsdl/'

xmlns:sdef='http://www.filenet.com/ns/fnce/2006/11/ws/SOAP/wsdl'

xmlns:cdef='http://www.filenet.com/ns/fnce/2006/11/ws/wsdl'

xmlns:ctyp='http://www.filenet.com/ns/fnce/2006/11/ws/schema'

xmlns:tns='http://www.filenet.com/ns/fnce/2006/11/ws/SOAP/wsdl'

xmlns:xsd='http://www.w3.org/2001/XMLSchema'

xmlns:ns0='http://systinet.com/soap-jta/'

xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/'>;

<import namespace='http://www.filenet.com/ns/fnce/2006/11/ws/wsdl' location='http://dev-workplace/FNCEWS40.wsdl'/>

&lt;types&gt;

&lt;xsd:schema elementFormDefault="qualified"

targetNamespace="http://systinet.com/soap-jta/"

xmlns:map="http://systinet.com/mapping/"

xmlns:tns="http://systinet.com/soap-jta/">;

&lt;xsd:element name="TxId"&gt;

&lt;xsd:complexType&gt;

&lt;xsd:sequence&gt;

&lt;xsd:element name="id" nillable="true" type="xsd:string"/&gt;

&lt;xsd:element name="NoTxResume" nillable="true" type="xsd:string"/&gt;

&lt;/xsd:sequence&gt;

&lt;/xsd:complexType&gt;

&lt;/xsd:element&gt;

&lt;/xsd:schema&gt;

&lt;/types&gt;

&lt;message name='runtimeHeaders_0'&gt;

&lt;part name='header_0' element='ns0:TxId'/&gt;

&lt;/message&gt;

&lt;binding name='FNCEWS40SoapBinding' type='cdef:FNCEWS40PortType'&gt;

<soap:binding transport='http://schemas.xmlsoap.org/soap/http' style='document'/>

&lt;operation name='ExecuteChanges'&gt;

<soap:operation soapAction='http://www.filenet.com/ns/fnce/2006/11/ws/SOAP#ExecuteChanges'/>;

&lt;input&gt;

&lt;soap:header message='cdef:LocalizationHeader' part='header' use='literal'/&gt;

&lt;soap:body use='literal'/&gt;

&lt;soap:header message='tns:runtimeHeaders_0' part='header_0' use='literal'/&gt;

&lt;/input&gt;

&lt;output&gt;

&lt;soap:body use='literal'/&gt;

&lt;soap:header message='tns:runtimeHeaders_0' part='header_0' use='literal'/&gt;

&lt;/output&gt;

&lt;fault name='GeneralError'&gt;

&lt;soap:fault name='GeneralError' use='literal'/&gt;

&lt;/fault&gt;

&lt;/operation&gt;

&lt;operation name='ExecuteSearch'&gt;

<soap:operation soapAction='http://www.filenet.com/ns/fnce/2006/11/ws/SOAP#ExecuteSearch'/>;

&lt;input&gt;

&lt;soap:header message='cdef:LocalizationHeader' part='header' use='literal'/&gt;

&lt;soap:body use='literal'/&gt;

&lt;soap:header message='tns:runtimeHeaders_0' part='header_0' use='literal'/&gt;

&lt;/input&gt;

&lt;output&gt;

&lt;soap:body use='literal'/&gt;

&lt;soap:header message='tns:runtimeHeaders_0' part='header_0' use='literal'/&gt;

&lt;/output&gt;

&lt;fault name='GeneralError'&gt;

&lt;soap:fault name='GeneralError' use='literal'/&gt;

&lt;/fault&gt;

&lt;/operation&gt;

&lt;operation name='GetContent'&gt;

<soap:operation soapAction='http://www.filenet.com/ns/fnce/2006/11/ws/SOAP#GetContent'/>;

&lt;input&gt;

&lt;soap:header message='cdef:LocalizationHeader' part='header' use='literal'/&gt;

&lt;soap:body use='literal'/&gt;

&lt;soap:header message='tns:runtimeHeaders_0' part='header_0' use='literal'/&gt;

&lt;/input&gt;

&lt;output&gt;

&lt;soap:body use='literal'/&gt;

&lt;soap:header message='tns:runtimeHeaders_0' part='header_0' use='literal'/&gt;

&lt;/output&gt;

&lt;fault name='GeneralError'&gt;

&lt;soap:fault name='GeneralError' use='literal'/&gt;

&lt;/fault&gt;

&lt;/operation&gt;

&lt;operation name='GetObjects'&gt;

<soap:operation soapAction='http://www.filenet.com/ns/fnce/2006/11/ws/SOAP#GetObjects'/>;

&lt;input&gt;

&lt;soap:header message='cdef:LocalizationHeader' part='header' use='literal'/&gt;

&lt;soap:body use='literal'/&gt;

&lt;soap:header message='tns:runtimeHeaders_0' part='header_0' use='literal'/&gt;

&lt;/input&gt;

&lt;output&gt;

&lt;soap:body use='literal'/&gt;

&lt;soap:header message='tns:runtimeHeaders_0' part='header_0' use='literal'/&gt;

&lt;/output&gt;

&lt;fault name='GeneralError'&gt;

&lt;soap:fault name='GeneralError' use='literal'/&gt;

&lt;/fault&gt;

&lt;/operation&gt;

&lt;operation name='GetSearchMetadata'&gt;

<soap:operation soapAction='http://www.filenet.com/ns/fnce/2006/11/ws/SOAP#GetSearchMetadata'/>;

&lt;input&gt;

&lt;soap:header message='cdef:LocalizationHeader' part='header' use='literal'/&gt;

&lt;soap:body use='literal'/&gt;

&lt;soap:header message='tns:runtimeHeaders_0' part='header_0' use='literal'/&gt;

&lt;/input&gt;

&lt;output&gt;

&lt;soap:body use='literal'/&gt;

&lt;soap:header message='tns:runtimeHeaders_0' part='header_0' use='literal'/&gt;

&lt;/output&gt;

&lt;fault name='GeneralError'&gt;

&lt;soap:fault name='GeneralError' use='literal'/&gt;

&lt;/fault&gt;

&lt;/operation&gt;

&lt;/binding&gt;

&lt;service name='FNCEWS40Service'&gt;

&lt;documentation

xmlns:cdef="http://www.filenet.com/ns/fnce/2006/11/ws/wsdl"

xmlns:ctyp="http://www.filenet.com/ns/fnce/2006/11/ws/schema"

xmlns:sdef="http://www.filenet.com/ns/fnce/2006/11/ws/SOAP/wsdl"

xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">FileNET P8 Content Engine Web Service</documentation>

&lt;port name='FNCEWS40InlinePort' binding='tns:FNCEWS40SoapBinding'&gt;

&lt;soap:address location='http://dev-workplace/wsi/FNCEWS40SOAP/'/&gt;

&lt;/port&gt;

&lt;/service&gt;

&lt;/definitions&gt;

</pre>