You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by feh <ra...@berbee.com> on 2007/03/22 22:14:01 UTC

Java2WSDL created invalid file?


Using most recent version of Axis2...

I created a WSDL file from a class. When I try to view the service WSDL from
a browser (whether it be firefox or IE), the browser is unhappy, because the
"wsaw" namespace referenced in an <wsdl:input> tag has not been defined.

I manually added the wsaw namespace to the <wsdl:definitions> tag, and all
is well.

But why did this happen? Is it a bug? Do I have something misconfigured? I
obviously don't want to have to manually edit a wsdl file after it's been
generated.

Thanks!
-- 
View this message in context: http://www.nabble.com/Java2WSDL-created-invalid-file--tf3450416.html#a9624257
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Java2WSDL created invalid file?

Posted by feh <ra...@berbee.com>.

Bump - anybody know why the xsaw namespace is not being defined?

Thanks.



feh wrote:
> 
> Here it is Deepal; Thanks!
> 
> <wsdl:definitions xmlns:axis2="http://services.hp.ippaging.berbee.com"
> xmlns:ns="http://services.hp.ippaging.berbee.com/xsd"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
> xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
> xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
> targetNamespace="http://services.hp.ippaging.berbee.com">
>  <wsdl:types>
>   <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
> attributeFormDefault="qualified" elementFormDefault="qualified"
> targetNamespace="http://services.hp.ippaging.berbee.com/xsd">
>    <xs:element name="getZone">
>     <xs:complexType>
>      <xs:sequence>
>       <xs:element name="number" nillable="true" type="xs:string">
>       </xs:element>
>      </xs:sequence>
>     </xs:complexType>
>    </xs:element>
>    <xs:element name="getZoneResponse">
>     <xs:complexType>
>      <xs:sequence>
>       <xs:element name="return" nillable="true" type="xs:double">
>       </xs:element>
>      </xs:sequence>
>     </xs:complexType>
>    </xs:element>
>   </xs:schema>
>  </wsdl:types>
>  <wsdl:message name="getZoneMessage">
>   <wsdl:part name="part1" element="ns:getZone">
>   </wsdl:part>
>  </wsdl:message>
>  <wsdl:message name="getZoneResponseMessage">
>   <wsdl:part name="part1" element="ns:getZoneResponse">
>   </wsdl:part>
>  </wsdl:message>
>  <wsdl:portType name="ZoneServicePortType">
>   <wsdl:operation name="getZone">
>    <wsdl:input message="axis2:getZoneMessage">
>    </wsdl:input>
>    <wsdl:output message="axis2:getZoneResponseMessage">
>    </wsdl:output>
>   </wsdl:operation>
>  </wsdl:portType>
>  <wsdl:binding name="ZoneServiceSOAP11Binding"
> type="axis2:ZoneServicePortType">
>   <soap:binding transport="http://schemas.xmlsoap.org/soap/http"
> style="document">
>   </soap:binding>
>   <wsdl:operation name="getZone">
>    <soap:operation soapAction="urn:getZone" style="document">
>    </soap:operation>
>    <wsdl:input>
>     <soap:body use="literal"
> namespace="http://services.hp.ippaging.berbee.com">
>     </soap:body>
>    </wsdl:input>
>    <wsdl:output>
>     <soap:body use="literal"
> namespace="http://services.hp.ippaging.berbee.com">
>     </soap:body>
>    </wsdl:output>
>   </wsdl:operation>
>  </wsdl:binding>
>  <wsdl:binding name="ZoneServiceSOAP12Binding"
> type="axis2:ZoneServicePortType">
>   <soap12:binding transport="http://schemas.xmlsoap.org/soap/http"
> style="document">
>   </soap12:binding>
>   <wsdl:operation name="getZone">
>    <soap12:operation soapAction="urn:getZone" style="document">
>    </soap12:operation>
>    <wsdl:input>
>     <soap12:body use="literal"
> namespace="http://services.hp.ippaging.berbee.com">
>     </soap12:body>
>    </wsdl:input>
>    <wsdl:output>
>     <soap12:body use="literal"
> namespace="http://services.hp.ippaging.berbee.com">
>     </soap12:body>
>    </wsdl:output>
>   </wsdl:operation>
>  </wsdl:binding>
>  <wsdl:service name="ZoneService">
>   <wsdl:port name="ZoneServiceSOAP11port"
> binding="axis2:ZoneServiceSOAP11Binding">
>    <soap:address
> location="http://localhost:8080/axis2/services/ZoneService">
>    </soap:address>
>   </wsdl:port>
>   <wsdl:port name="ZoneServiceSOAP12port"
> binding="axis2:ZoneServiceSOAP12Binding">
>    <soap12:address
> location="http://localhost:8080/axis2/services/ZoneService">
>    </soap12:address>
>   </wsdl:port>
>  </wsdl:service>
> </wsdl:definitions>
> 
> 
> 
> Deepal Jayasinghe wrote:
>> 
>> hi   feh ;
>> could you please post your wsdl.
>> 
>> Thanks
>> Deepal
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Java2WSDL-created-invalid-file--tf3450416.html#a9714249
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Java2WSDL created invalid file?

Posted by feh <ra...@berbee.com>.
Here it is Deepal; Thanks!

<wsdl:definitions xmlns:axis2="http://services.hp.ippaging.berbee.com"
xmlns:ns="http://services.hp.ippaging.berbee.com/xsd"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
targetNamespace="http://services.hp.ippaging.berbee.com">
 <wsdl:types>
  <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
attributeFormDefault="qualified" elementFormDefault="qualified"
targetNamespace="http://services.hp.ippaging.berbee.com/xsd">
   <xs:element name="getZone">
    <xs:complexType>
     <xs:sequence>
      <xs:element name="number" nillable="true" type="xs:string">
      </xs:element>
     </xs:sequence>
    </xs:complexType>
   </xs:element>
   <xs:element name="getZoneResponse">
    <xs:complexType>
     <xs:sequence>
      <xs:element name="return" nillable="true" type="xs:double">
      </xs:element>
     </xs:sequence>
    </xs:complexType>
   </xs:element>
  </xs:schema>
 </wsdl:types>
 <wsdl:message name="getZoneMessage">
  <wsdl:part name="part1" element="ns:getZone">
  </wsdl:part>
 </wsdl:message>
 <wsdl:message name="getZoneResponseMessage">
  <wsdl:part name="part1" element="ns:getZoneResponse">
  </wsdl:part>
 </wsdl:message>
 <wsdl:portType name="ZoneServicePortType">
  <wsdl:operation name="getZone">
   <wsdl:input message="axis2:getZoneMessage">
   </wsdl:input>
   <wsdl:output message="axis2:getZoneResponseMessage">
   </wsdl:output>
  </wsdl:operation>
 </wsdl:portType>
 <wsdl:binding name="ZoneServiceSOAP11Binding"
type="axis2:ZoneServicePortType">
  <soap:binding transport="http://schemas.xmlsoap.org/soap/http"
style="document">
  </soap:binding>
  <wsdl:operation name="getZone">
   <soap:operation soapAction="urn:getZone" style="document">
   </soap:operation>
   <wsdl:input>
    <soap:body use="literal"
namespace="http://services.hp.ippaging.berbee.com">
    </soap:body>
   </wsdl:input>
   <wsdl:output>
    <soap:body use="literal"
namespace="http://services.hp.ippaging.berbee.com">
    </soap:body>
   </wsdl:output>
  </wsdl:operation>
 </wsdl:binding>
 <wsdl:binding name="ZoneServiceSOAP12Binding"
type="axis2:ZoneServicePortType">
  <soap12:binding transport="http://schemas.xmlsoap.org/soap/http"
style="document">
  </soap12:binding>
  <wsdl:operation name="getZone">
   <soap12:operation soapAction="urn:getZone" style="document">
   </soap12:operation>
   <wsdl:input>
    <soap12:body use="literal"
namespace="http://services.hp.ippaging.berbee.com">
    </soap12:body>
   </wsdl:input>
   <wsdl:output>
    <soap12:body use="literal"
namespace="http://services.hp.ippaging.berbee.com">
    </soap12:body>
   </wsdl:output>
  </wsdl:operation>
 </wsdl:binding>
 <wsdl:service name="ZoneService">
  <wsdl:port name="ZoneServiceSOAP11port"
binding="axis2:ZoneServiceSOAP11Binding">
   <soap:address
location="http://localhost:8080/axis2/services/ZoneService">
   </soap:address>
  </wsdl:port>
  <wsdl:port name="ZoneServiceSOAP12port"
binding="axis2:ZoneServiceSOAP12Binding">
   <soap12:address
location="http://localhost:8080/axis2/services/ZoneService">
   </soap12:address>
  </wsdl:port>
 </wsdl:service>
</wsdl:definitions>



Deepal Jayasinghe wrote:
> 
> hi   feh ;
> could you please post your wsdl.
> 
> Thanks
> Deepal
> 

-- 
View this message in context: http://www.nabble.com/Java2WSDL-created-invalid-file--tf3450416.html#a9634423
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Java2WSDL created invalid file?

Posted by Deepal Jayasinghe <de...@opensource.lk>.
hi   feh ;
could you please post your wsdl.

Thanks
Deepal

>Using most recent version of Axis2...
>
>I created a WSDL file from a class. When I try to view the service WSDL from
>a browser (whether it be firefox or IE), the browser is unhappy, because the
>"wsaw" namespace referenced in an <wsdl:input> tag has not been defined.
>
>I manually added the wsaw namespace to the <wsdl:definitions> tag, and all
>is well.
>
>But why did this happen? Is it a bug? Do I have something misconfigured? I
>obviously don't want to have to manually edit a wsdl file after it's been
>generated.
>
>Thanks!
>  
>

-- 
Thanks,
Deepal
................................................................
"The highest tower is built one brick at a time"



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org