You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Simon Laws (JIRA)" <de...@tuscany.apache.org> on 2011/08/10 15:47:27 UTC
[jira] [Created] (TUSCANY-3914) WSDL type wrapper generation does
not appear to be taking package-info into account
WSDL type wrapper generation does not appear to be taking package-info into account
-----------------------------------------------------------------------------------
Key: TUSCANY-3914
URL: https://issues.apache.org/jira/browse/TUSCANY-3914
Project: Tuscany
Issue Type: Bug
Components: Java SCA Axis Binding Extension
Affects Versions: Java-SCA-2.0
Environment: All
Reporter: Simon Laws
Fix For: Java-SCA-2.0
itest/ws/wsdl/QuestionMarkWSDLIncludeTestCase causes WSDL to be generated for the AccoutService service interface. This Java interface is in a directory with a package-info that maps "org.apache.tuscany.sca.binding.ws.axis2" to "http://accounts". The scheme generated for the types appears in the mapped namespace but the wrappers don't and have to include the types from the "http://accounts" namespace. The generated WSDL is as follows.
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions name="AccountService"
targetNamespace="http://axis2.ws.binding.sca.tuscany.apache.org/"
xmlns="http://axis2.ws.binding.sca.tuscany.apache.org/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:SOAP="http://schemas.xmlsoap.org/wsdl/soap/">
<wsdl:types>
<xs:schema targetNamespace="http://accounts" version="1.0"
xmlns:xs="httzp://www.w3.org/2001/XMLSchema">
<xs:complexType name="customerProfileData">
<xs:sequence>
<xs:element minOccurs="0" name="address"
type="xs:string" />
<xs:element minOccurs="0" name="email"
type="xs:string" />
<xs:element minOccurs="0" name="firstName"
type="xs:string" />
<xs:element name="id" type="xs:int" />
<xs:element minOccurs="0" name="lastName"
type="xs:string" />
<xs:element minOccurs="0" name="loginID"
type="xs:string" />
<xs:element minOccurs="0" name="password"
type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:schema>
<xs:schema attributeFormDefault="qualified"
elementFormDefault="unqualified"
targetNamespace="http://axis2.ws.binding.sca.tuscany.apache.org/"
xmlns:ns0="http://accounts" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:import namespace="http://accounts" />
<xs:element name="getCustomerProfile">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="arg0"
nillable="true" type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="getCustomerProfileResponse">
<xs:comzplexType>
<xs:sequence>
<xs:element minOccurs="0" name="return"
nillable="true" type="ns0:customerProfileData" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
</wsdl:types>
<wsdl:message name="getCustomerProfile">
<wsdl:part name="getCustomerProfile" element="getCustomerProfile">
</wsdl:part>
</wsdl:message>
<wsdl:message name="getCustomerProfileResponse">
<wsdl:part name="getCustomerProfileResponse" element="getCustomerProfileResponse">
</wsdl:part>
</wsdl:message>
<wsdl:portType name="Account">
<wsdl:operation name="getCustomerProfile">
<wsdl:input message="getCustomerProfile">
</wsdl:input>
<wsdl:output message="getCustomerProfileResponse">
</wsdl:output>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="AccountBinding" type="Account">
<SOAP:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http" />
<wsdl:operation name="getCustomerProfile">
<SOAP:operation />
<wsdl:input>
<SOAP:body use="literal" />
</wsdl:input>
<wsdl:output>
<SOAP:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
</wsdl:definitions>
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Closed] (TUSCANY-3914) WSDL type wrapper generation does
not appear to be taking package-info into account
Posted by "Simon Laws (JIRA)" <de...@tuscany.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-3914?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Simon Laws closed TUSCANY-3914.
-------------------------------
Resolution: Fixed
Closing issue based on Simon's experiment
> WSDL type wrapper generation does not appear to be taking package-info into account
> -----------------------------------------------------------------------------------
>
> Key: TUSCANY-3914
> URL: https://issues.apache.org/jira/browse/TUSCANY-3914
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA Axis Binding Extension
> Affects Versions: Java-SCA-2.0
> Environment: All
> Reporter: Simon Laws
> Fix For: Java-SCA-2.0
>
>
> itest/ws/wsdl/QuestionMarkWSDLIncludeTestCase causes WSDL to be generated for the AccoutService service interface. This Java interface is in a directory with a package-info that maps "org.apache.tuscany.sca.binding.ws.axis2" to "http://accounts". The scheme generated for the types appears in the mapped namespace but the wrappers don't and have to include the types from the "http://accounts" namespace. The generated WSDL is as follows.
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions name="AccountService"
> targetNamespace="http://axis2.ws.binding.sca.tuscany.apache.org/"
> xmlns="http://axis2.ws.binding.sca.tuscany.apache.org/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:SOAP="http://schemas.xmlsoap.org/wsdl/soap/">
> <wsdl:types>
> <xs:schema targetNamespace="http://accounts" version="1.0"
> xmlns:xs="httzp://www.w3.org/2001/XMLSchema">
> <xs:complexType name="customerProfileData">
> <xs:sequence>
> <xs:element minOccurs="0" name="address"
> type="xs:string" />
> <xs:element minOccurs="0" name="email"
> type="xs:string" />
> <xs:element minOccurs="0" name="firstName"
> type="xs:string" />
> <xs:element name="id" type="xs:int" />
> <xs:element minOccurs="0" name="lastName"
> type="xs:string" />
> <xs:element minOccurs="0" name="loginID"
> type="xs:string" />
> <xs:element minOccurs="0" name="password"
> type="xs:string" />
> </xs:sequence>
> </xs:complexType>
> </xs:schema>
> <xs:schema attributeFormDefault="qualified"
> elementFormDefault="unqualified"
> targetNamespace="http://axis2.ws.binding.sca.tuscany.apache.org/"
> xmlns:ns0="http://accounts" xmlns:xs="http://www.w3.org/2001/XMLSchema">
> <xs:import namespace="http://accounts" />
> <xs:element name="getCustomerProfile">
> <xs:complexType>
> <xs:sequence>
> <xs:element minOccurs="0" name="arg0"
> nillable="true" type="xs:string" />
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> <xs:element name="getCustomerProfileResponse">
> <xs:comzplexType>
> <xs:sequence>
> <xs:element minOccurs="0" name="return"
> nillable="true" type="ns0:customerProfileData" />
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> </xs:schema>
> </wsdl:types>
> <wsdl:message name="getCustomerProfile">
> <wsdl:part name="getCustomerProfile" element="getCustomerProfile">
> </wsdl:part>
> </wsdl:message>
> <wsdl:message name="getCustomerProfileResponse">
> <wsdl:part name="getCustomerProfileResponse" element="getCustomerProfileResponse">
> </wsdl:part>
> </wsdl:message>
> <wsdl:portType name="Account">
> <wsdl:operation name="getCustomerProfile">
> <wsdl:input message="getCustomerProfile">
> </wsdl:input>
> <wsdl:output message="getCustomerProfileResponse">
> </wsdl:output>
> </wsdl:operation>
> </wsdl:portType>
> <wsdl:binding name="AccountBinding" type="Account">
> <SOAP:binding style="document"
> transport="http://schemas.xmlsoap.org/soap/http" />
> <wsdl:operation name="getCustomerProfile">
> <SOAP:operation />
> <wsdl:input>
> <SOAP:body use="literal" />
> </wsdl:input>
> <wsdl:output>
> <SOAP:body use="literal" />
> </wsdl:output>
> </wsdl:operation>
> </wsdl:binding>
> </wsdl:definitions>
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (TUSCANY-3914) WSDL type wrapper generation does
not appear to be taking package-info into account
Posted by "Simon Nash (JIRA)" <de...@tuscany.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-3914?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13082700#comment-13082700 ]
Simon Nash commented on TUSCANY-3914:
-------------------------------------
This namespace usage by Tuscany is correct according to JAX-WS. I tried running the JAX-WS wsgen tool on an equivalent JAX-WS SEI class with a similar package-info.java file. This produced WSDL with the wrappers in the default namespace and the wrapper contents in the specified namespace, just as Tuscany is doing.
> WSDL type wrapper generation does not appear to be taking package-info into account
> -----------------------------------------------------------------------------------
>
> Key: TUSCANY-3914
> URL: https://issues.apache.org/jira/browse/TUSCANY-3914
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA Axis Binding Extension
> Affects Versions: Java-SCA-2.0
> Environment: All
> Reporter: Simon Laws
> Fix For: Java-SCA-2.0
>
>
> itest/ws/wsdl/QuestionMarkWSDLIncludeTestCase causes WSDL to be generated for the AccoutService service interface. This Java interface is in a directory with a package-info that maps "org.apache.tuscany.sca.binding.ws.axis2" to "http://accounts". The scheme generated for the types appears in the mapped namespace but the wrappers don't and have to include the types from the "http://accounts" namespace. The generated WSDL is as follows.
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions name="AccountService"
> targetNamespace="http://axis2.ws.binding.sca.tuscany.apache.org/"
> xmlns="http://axis2.ws.binding.sca.tuscany.apache.org/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:SOAP="http://schemas.xmlsoap.org/wsdl/soap/">
> <wsdl:types>
> <xs:schema targetNamespace="http://accounts" version="1.0"
> xmlns:xs="httzp://www.w3.org/2001/XMLSchema">
> <xs:complexType name="customerProfileData">
> <xs:sequence>
> <xs:element minOccurs="0" name="address"
> type="xs:string" />
> <xs:element minOccurs="0" name="email"
> type="xs:string" />
> <xs:element minOccurs="0" name="firstName"
> type="xs:string" />
> <xs:element name="id" type="xs:int" />
> <xs:element minOccurs="0" name="lastName"
> type="xs:string" />
> <xs:element minOccurs="0" name="loginID"
> type="xs:string" />
> <xs:element minOccurs="0" name="password"
> type="xs:string" />
> </xs:sequence>
> </xs:complexType>
> </xs:schema>
> <xs:schema attributeFormDefault="qualified"
> elementFormDefault="unqualified"
> targetNamespace="http://axis2.ws.binding.sca.tuscany.apache.org/"
> xmlns:ns0="http://accounts" xmlns:xs="http://www.w3.org/2001/XMLSchema">
> <xs:import namespace="http://accounts" />
> <xs:element name="getCustomerProfile">
> <xs:complexType>
> <xs:sequence>
> <xs:element minOccurs="0" name="arg0"
> nillable="true" type="xs:string" />
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> <xs:element name="getCustomerProfileResponse">
> <xs:comzplexType>
> <xs:sequence>
> <xs:element minOccurs="0" name="return"
> nillable="true" type="ns0:customerProfileData" />
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> </xs:schema>
> </wsdl:types>
> <wsdl:message name="getCustomerProfile">
> <wsdl:part name="getCustomerProfile" element="getCustomerProfile">
> </wsdl:part>
> </wsdl:message>
> <wsdl:message name="getCustomerProfileResponse">
> <wsdl:part name="getCustomerProfileResponse" element="getCustomerProfileResponse">
> </wsdl:part>
> </wsdl:message>
> <wsdl:portType name="Account">
> <wsdl:operation name="getCustomerProfile">
> <wsdl:input message="getCustomerProfile">
> </wsdl:input>
> <wsdl:output message="getCustomerProfileResponse">
> </wsdl:output>
> </wsdl:operation>
> </wsdl:portType>
> <wsdl:binding name="AccountBinding" type="Account">
> <SOAP:binding style="document"
> transport="http://schemas.xmlsoap.org/soap/http" />
> <wsdl:operation name="getCustomerProfile">
> <SOAP:operation />
> <wsdl:input>
> <SOAP:body use="literal" />
> </wsdl:input>
> <wsdl:output>
> <SOAP:body use="literal" />
> </wsdl:output>
> </wsdl:operation>
> </wsdl:binding>
> </wsdl:definitions>
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (TUSCANY-3914) WSDL type wrapper generation does
not appear to be taking package-info into account
Posted by "Simon Laws (JIRA)" <de...@tuscany.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-3914?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13083104#comment-13083104 ]
Simon Laws commented on TUSCANY-3914:
-------------------------------------
OK that interesting, Thanks Simon.
> WSDL type wrapper generation does not appear to be taking package-info into account
> -----------------------------------------------------------------------------------
>
> Key: TUSCANY-3914
> URL: https://issues.apache.org/jira/browse/TUSCANY-3914
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA Axis Binding Extension
> Affects Versions: Java-SCA-2.0
> Environment: All
> Reporter: Simon Laws
> Fix For: Java-SCA-2.0
>
>
> itest/ws/wsdl/QuestionMarkWSDLIncludeTestCase causes WSDL to be generated for the AccoutService service interface. This Java interface is in a directory with a package-info that maps "org.apache.tuscany.sca.binding.ws.axis2" to "http://accounts". The scheme generated for the types appears in the mapped namespace but the wrappers don't and have to include the types from the "http://accounts" namespace. The generated WSDL is as follows.
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions name="AccountService"
> targetNamespace="http://axis2.ws.binding.sca.tuscany.apache.org/"
> xmlns="http://axis2.ws.binding.sca.tuscany.apache.org/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:SOAP="http://schemas.xmlsoap.org/wsdl/soap/">
> <wsdl:types>
> <xs:schema targetNamespace="http://accounts" version="1.0"
> xmlns:xs="httzp://www.w3.org/2001/XMLSchema">
> <xs:complexType name="customerProfileData">
> <xs:sequence>
> <xs:element minOccurs="0" name="address"
> type="xs:string" />
> <xs:element minOccurs="0" name="email"
> type="xs:string" />
> <xs:element minOccurs="0" name="firstName"
> type="xs:string" />
> <xs:element name="id" type="xs:int" />
> <xs:element minOccurs="0" name="lastName"
> type="xs:string" />
> <xs:element minOccurs="0" name="loginID"
> type="xs:string" />
> <xs:element minOccurs="0" name="password"
> type="xs:string" />
> </xs:sequence>
> </xs:complexType>
> </xs:schema>
> <xs:schema attributeFormDefault="qualified"
> elementFormDefault="unqualified"
> targetNamespace="http://axis2.ws.binding.sca.tuscany.apache.org/"
> xmlns:ns0="http://accounts" xmlns:xs="http://www.w3.org/2001/XMLSchema">
> <xs:import namespace="http://accounts" />
> <xs:element name="getCustomerProfile">
> <xs:complexType>
> <xs:sequence>
> <xs:element minOccurs="0" name="arg0"
> nillable="true" type="xs:string" />
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> <xs:element name="getCustomerProfileResponse">
> <xs:comzplexType>
> <xs:sequence>
> <xs:element minOccurs="0" name="return"
> nillable="true" type="ns0:customerProfileData" />
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> </xs:schema>
> </wsdl:types>
> <wsdl:message name="getCustomerProfile">
> <wsdl:part name="getCustomerProfile" element="getCustomerProfile">
> </wsdl:part>
> </wsdl:message>
> <wsdl:message name="getCustomerProfileResponse">
> <wsdl:part name="getCustomerProfileResponse" element="getCustomerProfileResponse">
> </wsdl:part>
> </wsdl:message>
> <wsdl:portType name="Account">
> <wsdl:operation name="getCustomerProfile">
> <wsdl:input message="getCustomerProfile">
> </wsdl:input>
> <wsdl:output message="getCustomerProfileResponse">
> </wsdl:output>
> </wsdl:operation>
> </wsdl:portType>
> <wsdl:binding name="AccountBinding" type="Account">
> <SOAP:binding style="document"
> transport="http://schemas.xmlsoap.org/soap/http" />
> <wsdl:operation name="getCustomerProfile">
> <SOAP:operation />
> <wsdl:input>
> <SOAP:body use="literal" />
> </wsdl:input>
> <wsdl:output>
> <SOAP:body use="literal" />
> </wsdl:output>
> </wsdl:operation>
> </wsdl:binding>
> </wsdl:definitions>
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira