You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Raymond Feng (JIRA)" <tu...@ws.apache.org> on 2008/03/18 17:01:27 UTC

[jira] Commented: (TUSCANY-2095) Change attribute element to type on wsdl part element,throws an error.

    [ https://issues.apache.org/jira/browse/TUSCANY-2095?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12579906#action_12579906 ] 

Raymond Feng commented on TUSCANY-2095:
---------------------------------------

Is your WSDL a document-literal style? If so, the wsdl:part should point to an element instead of type as required by WS-I basic profile. 

http://www.ws-i.org/Profiles/BasicProfile-1.1.html

R2204 A document-literal binding in a DESCRIPTION MUST refer, in each of its soapbind:body element(s), only to wsdl:part element(s) that have been defined using the element attribute. 

The failing code path is from AXIS2.



> Change attribute element to type on wsdl part element,throws an error.
> ----------------------------------------------------------------------
>
>                 Key: TUSCANY-2095
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2095
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Axis Binding Extension
>    Affects Versions: Java-SCA-1.1
>         Environment: sun jdk1.5.09 winxp
>            Reporter: wangfeng
>             Fix For: Java-SCA-1.2
>
>
> I run the sample helloworld-ws-service and it works fine,but I modify the wsdl file changing the element attribute to type attribute on part element,throws an error.
> <wsdl:message name="getGreetingsRequest">
> 		<wsdl:part name="parameters" element="tns:getGreetings"/>
> </wsdl:message>
> <wsdl:message name="getGreetingsResponse">
> 		<wsdl:part name="parameters" element="tns:getGreetingsResponse"/>
> </wsdl:message>
> To
> <wsdl:message name="getGreetingsRequest">
>         <wsdl:part type="xsd:string"  name="parameters"/>
> </wsdl:message>
> <wsdl:message name="getGreetingsResponse">
>         <wsdl:part type="xsd:string" name="parameters"/>
> </wsdl:message>  
> Is this a bug or a axis's bug?
> Exception in thread "main" org.osoa.sca.ServiceRuntimeException: java.lang.RuntimeException: org.apache.axis2.AxisFault: No element type is defined for message getGreetingsRequest
> 	at org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(SCADomain.java:264)
> 	at org.apache.tuscany.sca.host.embedded.SCADomain.newInstance(SCADomain.java:69)
> 	at helloworld.HelloWorldServer.main(HelloWorldServer.java:33)
> Caused by: java.lang.RuntimeException: org.apache.axis2.AxisFault: No element type is defined for message getGreetingsRequest
> 	at org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceProvider.start(Axis2ServiceProvider.java:289)
> 	at org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceBindingProvider.start(Axis2ServiceBindingProvider.java:94)
> 	at org.apache.tuscany.sca.core.assembly.CompositeActivatorImpl.start(CompositeActivatorImpl.java:520)
> 	at org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.init(DefaultSCADomain.java:226)
> 	at org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.<init>(DefaultSCADomain.java:109)
> 	at org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(SCADomain.java:231)
> 	... 2 more
> Caused by: org.apache.axis2.AxisFault: No element type is defined for message getGreetingsRequest
> 	at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
> 	at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:291)
> 	at org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceProvider.createWSDLAxisService(Axis2ServiceProvider.java:512)
> 	at org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceProvider.createAxisService(Axis2ServiceProvider.java:427)
> 	at org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceProvider.start(Axis2ServiceProvider.java:235)
> 	... 7 more
> Caused by: org.apache.axis2.description.WSDL11ToAxisServiceBuilder$WSDLProcessingException: No element type is defined for message getGreetingsRequest
> 	at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.addQNameReference(WSDL11ToAxisServiceBuilder.java:1106)
> 	at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.addQNameReference(WSDL11ToAxisServiceBuilder.java:1036)
> 	at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateBinding(WSDL11ToAxisServiceBuilder.java:536)
> 	at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoint(WSDL11ToAxisServiceBuilder.java:422)
> 	at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoints(WSDL11ToAxisServiceBuilder.java:377)
> 	at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:281)
> 	... 10 more

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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