[ http://jira.codehaus.org/browse/XFIRE-825?page=comments#action_85327 ] 
            
Alex Fustini commented on XFIRE-825:
------------------------------------

I have the same problem with Xfire 1.2.4 and jdk 1.6.0

IWAB0380E Errors were encountered while validating XML schemas.
XSD: Type reference 'http://result.dnsoperation.dnshst.it#DnsOperationResult' 
is unresolved
XSD: Type reference 'http://result.dnsoperation.dnshst.it#DnsOperationResult' 
is unresolved
IWAB0381I http://localhost:8080/dns/services/DnsOperation?WSDL was successfully 
opened.



  <?xml version="1.0" encoding="UTF-8" standalone="no" ?> 
- <wsdl:definitions xmlns:ns1="http://result.dnsoperation.dnshst.it"; 
xmlns:soap11="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"; 
xmlns:soapenc11="http://schemas.xmlsoap.org/soap/encoding/"; 
xmlns:soapenc12="http://www.w3.org/2003/05/soap-encoding"; 
xmlns:tns="http://dnsoperation.dnshst.it"; 
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; 
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
targetNamespace="http://dnsoperation.dnshst.it";>
- <wsdl:types>
- <xsd:schema attributeFormDefault="qualified" elementFormDefault="qualified" 
targetNamespace="http://dnsoperation.dnshst.it";>
- <xsd:element name="registerDomainWithProfile">
- <xsd:complexType>
- <xsd:sequence>
  <xsd:element maxOccurs="1" minOccurs="1" name="in0" nillable="true" 
type="xsd:string" /> 
  <xsd:element maxOccurs="1" minOccurs="1" name="in1" nillable="true" 
type="xsd:string" /> 
  <xsd:element maxOccurs="1" minOccurs="1" name="in2" nillable="true" 
type="xsd:string" /> 
  <xsd:element maxOccurs="1" minOccurs="1" name="in3" type="xsd:int" /> 
  <xsd:element maxOccurs="1" minOccurs="1" name="in4" nillable="true" 
type="xsd:string" /> 
  </xsd:sequence>
  </xsd:complexType>
  </xsd:element>
- <xsd:element name="registerDomainWithProfileResponse">
- <xsd:complexType>
- <xsd:sequence>
  <xsd:element maxOccurs="1" minOccurs="1" name="out" nillable="true" 
type="ns1:DnsOperationResult" /> 
  </xsd:sequence>
  </xsd:complexType>
  </xsd:element>
- <xsd:element name="registerDomain">
- <xsd:complexType>
- <xsd:sequence>
  <xsd:element maxOccurs="1" minOccurs="1" name="in0" nillable="true" 
type="xsd:string" /> 
  <xsd:element maxOccurs="1" minOccurs="1" name="in1" nillable="true" 
type="xsd:string" /> 
  <xsd:element maxOccurs="1" minOccurs="1" name="in2" nillable="true" 
type="xsd:string" /> 
  </xsd:sequence>
  </xsd:complexType>
  </xsd:element>
- <xsd:element name="registerDomainResponse">
- <xsd:complexType>
- <xsd:sequence>
  <xsd:element maxOccurs="1" minOccurs="1" name="out" nillable="true" 
type="ns1:DnsOperationResult" /> 
  </xsd:sequence>
  </xsd:complexType>
  </xsd:element>
  </xsd:schema>
- <xsd:schema attributeFormDefault="qualified" elementFormDefault="qualified" 
targetNamespace="http://result.dnsoperation.dnshst.it";>
- <xsd:complexType name="DnsOperationResult">
- <xsd:sequence>
  <xsd:element minOccurs="0" name="descr" nillable="true" type="xsd:string" /> 
  <xsd:element minOccurs="0" name="error" type="xsd:int" /> 
  <xsd:element minOccurs="0" name="id" type="xsd:int" /> 
  <xsd:element minOccurs="0" name="resultOperation" type="xsd:int" /> 
  </xsd:sequence>
  </xsd:complexType>
  </xsd:schema>
  </wsdl:types>
- <wsdl:message name="registerDomainWithProfileRequest">
  <wsdl:part element="tns:registerDomainWithProfile" name="parameters" /> 
  </wsdl:message>
- <wsdl:message name="registerDomainResponse">
  <wsdl:part element="tns:registerDomainResponse" name="parameters" /> 
  </wsdl:message>
- <wsdl:message name="registerDomainRequest">
  <wsdl:part element="tns:registerDomain" name="parameters" /> 
  </wsdl:message>
- <wsdl:message name="registerDomainWithProfileResponse">
  <wsdl:part element="tns:registerDomainWithProfileResponse" name="parameters" 
/> 
  </wsdl:message>
- <wsdl:portType name="DnsOperationPortType">
- <wsdl:operation name="registerDomainWithProfile">
  <wsdl:input message="tns:registerDomainWithProfileRequest" 
name="registerDomainWithProfileRequest" /> 
  <wsdl:output message="tns:registerDomainWithProfileResponse" 
name="registerDomainWithProfileResponse" /> 
  </wsdl:operation>
- <wsdl:operation name="registerDomain">
  <wsdl:input message="tns:registerDomainRequest" name="registerDomainRequest" 
/> 
  <wsdl:output message="tns:registerDomainResponse" 
name="registerDomainResponse" /> 
  </wsdl:operation>
  </wsdl:portType>
- <wsdl:binding name="DnsOperationHttpBinding" type="tns:DnsOperationPortType">
  <wsdlsoap:binding style="document" 
transport="http://schemas.xmlsoap.org/soap/http"; /> 
- <wsdl:operation name="registerDomainWithProfile">
  <wsdlsoap:operation soapAction="" /> 
- <wsdl:input name="registerDomainWithProfileRequest">
  <wsdlsoap:body use="literal" /> 
  </wsdl:input>
- <wsdl:output name="registerDomainWithProfileResponse">
  <wsdlsoap:body use="literal" /> 
  </wsdl:output>
  </wsdl:operation>
- <wsdl:operation name="registerDomain">
  <wsdlsoap:operation soapAction="" /> 
- <wsdl:input name="registerDomainRequest">
  <wsdlsoap:body use="literal" /> 
  </wsdl:input>
- <wsdl:output name="registerDomainResponse">
  <wsdlsoap:body use="literal" /> 
  </wsdl:output>
  </wsdl:operation>
  </wsdl:binding>
- <wsdl:service name="DnsOperation">
- <wsdl:port binding="tns:DnsOperationHttpBinding" name="DnsOperationHttpPort">
  <wsdlsoap:address location="http://localhost:8080/dns/services/DnsOperation"; 
/> 
  </wsdl:port>
  </wsdl:service>
  </wsdl:definitions>        



> Bad WSDL/XSD generated in JaxWS mode when specifing namespace
> -------------------------------------------------------------
>
>                 Key: XFIRE-825
>                 URL: http://jira.codehaus.org/browse/XFIRE-825
>             Project: XFire
>          Issue Type: Bug
>          Components: JAX-WS
>    Affects Versions: 1.2.3
>         Environment: XP, Sun Java 5 1.5.10 
>            Reporter: Henri Gomez
>         Assigned To: Dan Diephouse
>
> I took the jsr181 sample and make it works without problem on Xfire 1.2.3, 
> but If I specify a namespace in services.xml the WSDL generated is incorrect :
> services.xml :
> <beans xmlns="http://xfire.codehaus.org/config/1.0";>
>   <service>
>   
>   <service>
>   <name>CustomerService</name>
>    <namespace>http://some.namespace</namespace>
>    <serviceClass>org.codehaus.xfire.demo.CustomerServiceImpl</serviceClass>
>    
> <serviceFactory>org.codehaus.xfire.jaxws.JAXWSServiceFactory</serviceFactory>
>   </service>
>   
>   </beans>
> Eclipse WTP report :
> IWAB0380E Errors were encountered while validating XML schemas.
> XSD: Type reference 'http://demo.xfire.codehaus.org#Customer' is unresolved
> XSD: Type reference 'http://demo.xfire.codehaus.org#UserToken' is unresolved
> IWAB0387I http://localhost:19991/xylos-soa/services/CustomerService?wsdl  is 
> refreshed.
> WSDL Generated :
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions targetNamespace="http://some.namespace"; 
> xmlns:tns="http://some.namespace"; 
> xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"; 
> xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"; 
> xmlns:ns1="http://demo.xfire.codehaus.org"; 
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
> xmlns:soapenc11="http://schemas.xmlsoap.org/soap/encoding/"; 
> xmlns:soapenc12="http://www.w3.org/2003/05/soap-encoding"; 
> xmlns:soap11="http://schemas.xmlsoap.org/soap/envelope/"; 
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>
>   <wsdl:types>
> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
> attributeFormDefault="qualified" elementFormDefault="qualified" 
> targetNamespace="http://some.namespace";>
> <xsd:element name="getCustomers">
> <xsd:complexType/>
> </xsd:element>
> <xsd:element name="getCustomersResponse">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element maxOccurs="1" minOccurs="1" name="Customers" nillable="true" 
> type="ns1:ArrayOfCustomer"/>
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> <xsd:element name="addCustomer">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element maxOccurs="1" minOccurs="1" name="customer" nillable="true" 
> type="ns1:Customer"/>
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> <xsd:element name="addCustomerResponse">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element maxOccurs="1" minOccurs="1" name="out" nillable="true" 
> type="xsd:string"/>
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> <xsd:element name="UserToken" type="ns1:UserToken"/>
> </xsd:schema>
> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
> attributeFormDefault="qualified" elementFormDefault="qualified" 
> targetNamespace="http://demo.xfire.codehaus.org";>
> <xsd:complexType name="ArrayOfCustomer">
> <xsd:sequence>
> <xsd:element maxOccurs="unbounded" minOccurs="0" name="Customer" 
> nillable="true" type="ns1:Customer"/>
> </xsd:sequence>
> </xsd:complexType>
> <xsd:complexType name="Customer">
> <xsd:sequence>
> <xsd:element minOccurs="0" name="email" nillable="true" type="xsd:string"/>
> <xsd:element minOccurs="0" name="name" nillable="true" type="xsd:string"/>
> <xsd:element minOccurs="0" name="phone" nillable="true" type="xsd:string"/>
> </xsd:sequence>
> </xsd:complexType>
> <xsd:complexType name="UserToken">
> <xsd:sequence>
> <xsd:element minOccurs="0" name="password" nillable="true" type="xsd:string"/>
> <xsd:element minOccurs="0" name="username" nillable="true" type="xsd:string"/>
> </xsd:sequence>
> </xsd:complexType>
> </xsd:schema>
>   </wsdl:types>
>   <wsdl:message name="addCustomerRequestHeaders">
>     <wsdl:part name="UserToken" element="tns:UserToken"/>
>   </wsdl:message>
>   <wsdl:message name="getCustomersResponse">
>     <wsdl:part name="parameters" element="tns:getCustomersResponse"/>
>   </wsdl:message>
>   <wsdl:message name="getCustomersRequest">
>     <wsdl:part name="parameters" element="tns:getCustomers"/>
>   </wsdl:message>
>   <wsdl:message name="addCustomerRequest">
>     <wsdl:part name="parameters" element="tns:addCustomer"/>
>   </wsdl:message>
>   <wsdl:message name="addCustomerResponse">
>     <wsdl:part name="parameters" element="tns:addCustomerResponse"/>
>   </wsdl:message>
>   <wsdl:message name="getCustomersRequestHeaders">
>     <wsdl:part name="UserToken" element="tns:UserToken"/>
>   </wsdl:message>
>   <wsdl:portType name="CustomerService">
>     <wsdl:operation name="getCustomers">
>       <wsdl:input name="getCustomersRequest" 
> message="tns:getCustomersRequest"/>
>       <wsdl:output name="getCustomersResponse" 
> message="tns:getCustomersResponse"/>
>     </wsdl:operation>
>     <wsdl:operation name="addCustomer">
>       <wsdl:input name="addCustomerRequest" message="tns:addCustomerRequest"/>
>       <wsdl:output name="addCustomerResponse" 
> message="tns:addCustomerResponse"/>
>     </wsdl:operation>
>   </wsdl:portType>
>   <wsdl:binding name="CustomerServiceHttpBinding" type="tns:CustomerService">
>     <wsdlsoap:binding style="document" 
> transport="http://schemas.xmlsoap.org/soap/http"/>
>     <wsdl:operation name="getCustomers">
>       <wsdlsoap:operation soapAction=""/>
>       <wsdl:input name="getCustomersRequest">
>         <wsdlsoap:body use="literal"/>
>         <wsdlsoap:header message="tns:getCustomersRequestHeaders" 
> part="UserToken" use="literal">
>         </wsdlsoap:header>
>       </wsdl:input>
>       <wsdl:output name="getCustomersResponse">
>         <wsdlsoap:body use="literal"/>
>       </wsdl:output>
>     </wsdl:operation>
>     <wsdl:operation name="addCustomer">
>       <wsdlsoap:operation soapAction=""/>
>       <wsdl:input name="addCustomerRequest">
>         <wsdlsoap:body use="literal"/>
>         <wsdlsoap:header message="tns:addCustomerRequestHeaders" 
> part="UserToken" use="literal">
>         </wsdlsoap:header>
>       </wsdl:input>
>       <wsdl:output name="addCustomerResponse">
>         <wsdlsoap:body use="literal"/>
>       </wsdl:output>
>     </wsdl:operation>
>   </wsdl:binding>
>   <wsdl:service name="CustomerService">
>     <wsdl:port name="CustomerServiceHttpPort" 
> binding="tns:CustomerServiceHttpBinding">
>       <wsdlsoap:address 
> location="http://localhost:19991/xylos-soa/services/CustomerService"/>
>     </wsdl:port>
>   </wsdl:service>
> </wsdl:definitions>

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

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to