[
https://issues.apache.org/jira/browse/TUSCANY-3778?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12934014#action_12934014
]
Simon Nash commented on TUSCANY-3778:
-------------------------------------
Revised fix for 1.x applied under revision r1037049.
This version of the fix uses separate variables for faultName (in the Java
package namespace) and faultMsgName (in the WSDL target namespace) and I
believe this addresses all the issues described in previous comments.
> WSDLGen problem with byte[] and Exceptions in alternative namespaces
> --------------------------------------------------------------------
>
> Key: TUSCANY-3778
> URL: https://issues.apache.org/jira/browse/TUSCANY-3778
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA Axis Binding Extension
> Affects Versions: Java-SCA-1.6.1
> Environment: All
> Reporter: Simon Laws
> Assignee: Simon Nash
> Fix For: Java-SCA-1.x
>
>
> I've just extended the HelloWorldService interface in the itest/wsdlgen with
> two new remote methods to demonstrate two issues.
> 1/ byte[] getGreetingsByteArray(byte[] input);
> Leads to Tuscany generated types as follows:
> <xs:element name="getGreetingsByteArray">
> <xs:complexType>
> <xs:sequence>
> <xs:element minOccurs="0"
> name="arg0" nillable="true"
> type="xs:byte" />
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> While JAXWS wsgen produces
> <xs:complexType name="getGreetingsByteArray">
> <xs:sequence>
> <xs:element name="arg0" type="xs:base64Binary" nillable="true"
> minOccurs="0"/>
> </xs:sequence>
> </xs:complexType>
> 2/ String getGreetingsException(String input) throws HelloWorldException;
> When HelloWorldException is in a different package when compared to the
> service interface the wrong reference is generated in the WSDL
> <wsdl:operation name="getGreetingsException">
> <wsdl:input message="getGreetingsException">
> </wsdl:input>
> <wsdl:output message="getGreetingsExceptionResponse">
> </wsdl:output>
> <wsdl:fault name="HelloWorldException"
> message="ns4:HelloWorldException">
> </wsdl:fault>
> </wsdl:operation>
> The ns4 here is correct for the actual type but the "HelloWorldException"
> message is declared in the WSDL so is in the WSDL target namespace and not in
> the types target namespace.
> Interestingly JAXWS wsgen seems to generate the exception type into the same
> namespace as all of the other types even though it's in a separate package.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.