[ http://issues.apache.org/jira/browse/BEEHIVE-843?page=all ]
Eddie O'Neil updated BEEHIVE-843:
---------------------------------
Assign To: (was: daryoush mehrtash)
> Invalid namespaces in WSDL of types generated by XMLBean from schema
> --------------------------------------------------------------------
>
> Key: BEEHIVE-843
> URL: http://issues.apache.org/jira/browse/BEEHIVE-843
> Project: Beehive
> Type: Bug
> Components: Web Services (181)
> Reporter: daryoush mehrtash
>
> If I use the following schema to generate my types:
> <?xml version="1.0" encoding="UTF-8"?>
> <xsd:schema elementFormDefault="qualified"
> targetNamespace="http://byXmlBeanNS" xmlns:impl="http://byXmlBeanNS"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema">
>
> <xsd:complexType name="Address">
> <xsd:sequence>
> <xsd:element name="city" nillable="true" type="xsd:string"/>
> <xsd:element name="state" nillable="true" type="impl:StateType"/>
> <xsd:element name="zip" type="xsd:int"/>
> </xsd:sequence>
> </xsd:complexType>
> <xsd:complexType name="StateType">
> <xsd:sequence>
> <xsd:element name="code" nillable="true" type="xsd:string"/>
> </xsd:sequence>
> </xsd:complexType>
> </xsd:schema>
> Then write a JWS that uses the Address like:
> package web;
> import java.rmi.RemoteException;
> import javax.jws.Oneway;
> import javax.jws.WebMethod;
> import javax.jws.WebParam;
> import javax.jws.WebResult;
> import javax.jws.WebService;
> import javax.jws.soap.SOAPBinding;
> import byXmlBeanNS.Address;
> @WebService
> public class SimpleService {
> @WebMethod
> public void doABC(Address add) {
> return;
> }
> }
> Then run and generate WSDL for the service I get:
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions targetNamespace="http://web"
> xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://web"
> xmlns:intf="http://web" xmlns:tns1="http://byXmlBeanNS"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> <!--WSDL created by Apache Axis version: 1.2
> Built on May 03, 2005 (02:20:24 EDT)-->
> <wsdl:types>
> <schema elementFormDefault="qualified" targetNamespace="http://web"
> xmlns="http://www.w3.org/2001/XMLSchema">
> <import namespace="http://byXmlBeanNS"/>
> <element name="doABC">
> <complexType>
> <sequence>
> <element name="add" type="tns1:Address"/>
> </sequence>
> </complexType>
> </element>
> <element name="doABCResponse">
> <complexType/>
> </element>
> </schema>
> <schema elementFormDefault="qualified" targetNamespace="http://byXmlBeanNS"
> xmlns="http://www.w3.org/2001/XMLSchema">
> <xsd:complexType name="Address">
> <xsd:sequence>
> <xsd:element name="city" nillable="true" type="xsd:string"/>
> <xsd:element name="state" nillable="true" type="impl:StateType"/>
> <<<<---------- ERROR name space
> <xsd:element name="zip" type="xsd:int"/>
> </xsd:sequence>
> </xsd:complexType>
> <xsd:complexType name="StateType">
> <xsd:sequence>
> <xsd:element name="code" nillable="true" type="xsd:string"/>
> </xsd:sequence>
> </xsd:complexType>
> </schema>
> </wsdl:types>
> ...... rest of the wsdl
> The schema of the wsdl puts the StateType in the "impl" namespace, which is
> correct in the orginial schema but it is not correct in the schema in the
> wsdl. The impl name space in the WSDL is not the same as the schema!
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira