[jbossts-issues] [JBoss JIRA] Commented: (JBTM-778) WSDL bindings in XTS code employ the wrong attribute in the binding:operation:input/output declarations

Mauro Molinari (JIRA) jira-events at lists.jboss.org
Fri Aug 20 05:31:11 EDT 2010


    [ https://jira.jboss.org/browse/JBTM-778?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12546050#action_12546050 ] 

Mauro Molinari commented on JBTM-778:
-------------------------------------

Hi Andrew!
For wsat-completion-initiator-binding.wsdl I have:

[cut]
  <wsdl:binding name="CompletionInitiator_SOAPBinding" type="wsat:CompletionInitiatorPortType">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="CommittedOperation">
      <soap:operation soapAction="http://docs.oasis-open.org/ws-tx/wsat/2006/06/Committed" style="document"/>
      <wsdl:input message="wsat:Committed">
        <soap:body use="literal"/>
      </wsdl:input>
    </wsdl:operation>

    <wsdl:operation name="AbortedOperation">
      <soap:operation soapAction="http://docs.oasis-open.org/ws-tx/wsat/2006/06/Aborted" style="document"/>
      <wsdl:input message="wsat:Aborted">
        <soap:body use="literal"/>
      </wsdl:input>
    </wsdl:operation>
  </wsdl:binding>
[cut]

So I guess I have to change it in this way:

[cut]
  <wsdl:binding name="CompletionInitiator_SOAPBinding" type="wsat:CompletionInitiatorPortType">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="CommittedOperation">
      <soap:operation soapAction="http://docs.oasis-open.org/ws-tx/wsat/2006/06/Committed" style="document"/>
      <wsdl:input name="wsat:Committed">
        <soap:body use="literal"/>
      </wsdl:input>
    </wsdl:operation>

    <wsdl:operation name="AbortedOperation">
      <soap:operation soapAction="http://docs.oasis-open.org/ws-tx/wsat/2006/06/Aborted" style="document"/>
      <wsdl:input name="wsat:Aborted">
        <soap:body use="literal"/>
      </wsdl:input>
    </wsdl:operation>
  </wsdl:binding>
[cut]

However in this way the Eclipse WSDL parser says:
	- cvc-datatype-valid.1.2.1: 'wsat:Committed' is not a valid value for 'NCName'.
	- cvc-attribute.3: The value 'wsat:Committed' of attribute 'name' on element 'wsdl:input' is not valid with 
	 respect to its type, 'NCName'.

Is this the same parsing problem you was talking about? Are you sure the use of ":" in the name attribute is allowed by the schema?

> WSDL bindings in XTS code employ the wrong attribute in the binding:operation:input/output declarations
> -------------------------------------------------------------------------------------------------------
>
>                 Key: JBTM-778
>                 URL: https://jira.jboss.org/browse/JBTM-778
>             Project: JBoss Transaction Manager
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: XTS
>    Affects Versions: 4.12.0
>            Reporter: Andrew Dinn
>            Assignee: Andrew Dinn
>             Fix For: 4.13.0
>
>
> The WSDL for the WSTX service bindings employs the invalid attribute "message" for the binding:operation:input and binding:operation:output elements. The correct attribute name is "name". e.g. in wscoor-activation-binding.wsdl the declaration is
>   <wsdl:binding name="Activation_SOAPBinding" type="wscoor:ActivationPortType">
>     <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
>     <wsdl:operation name="CreateCoordinationContextOperation">
>             <wsdl:input message="wscoor:CreateCoordinationContext">
>                 <soap:body use="literal"/>
>             </wsdl:input>
>             <wsdl:output message="wscoor:CreateCoordinationContextResponse">
>                 <soap:body use="literal"/>
>             </wsdl:output>
>         </wsdl:operation>
>   </wsdl:binding>
> The correct version  should be
>   <wsdl:binding name="Activation_SOAPBinding" type="wscoor:ActivationPortType">
>     <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
>     <wsdl:operation name="CreateCoordinationContextOperation">
>             <wsdl:input name="wscoor:CreateCoordinationContext">
>                 <soap:body use="literal"/>
>             </wsdl:input>
>             <wsdl:output name="wscoor:CreateCoordinationContextResponse">
>                 <soap:body use="literal"/>
>             </wsdl:output>
>         </wsdl:operation>
>   </wsdl:binding>
> According to a comment in the flle this was a workaround for an error in the com.ibm.wsdl parsing which now appears to have been fixed. The WSDL should be updated accordingly.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbossts-issues mailing list