Hi, I generated a WSDL for a java class that I wish to expose as a wrapped web service. The class has a public int add(int i1, int i2) method being exposed. Here's the WSDL generated by Java2WSDL: Notice the highlighted tag <import namespace= > which talks about encoding. I believe this would be a bug. Can anyone confirm? thanks.
<?xml version="1.0" encoding="UTF-8" ?> - <wsdl:definitions targetNamespace="MathService" xmlns:impl="MathService" xmlns:intf="MathService" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/"> - <wsdl:types> - <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="MathService"> <import namespace="http://schemas.xmlsoap.org/soap/encoding/" /> - <element name="add"> - <complexType> - <sequence> <element name="in0" type="xsd:int" /> <element name="in1" type="xsd:int" /> </sequence> </complexType> </element> - <element name="addResponse"> - <complexType> - <sequence> <element name="addReturn" type="xsd:int" /> </sequence> </complexType> </element> </schema> </wsdl:types> - <wsdl:message name="addResponse"> <wsdl:part name="parameters" element="impl:addResponse" /> </wsdl:message> - <wsdl:message name="addRequest"> <wsdl:part name="parameters" element="impl:add" /> </wsdl:message> - <wsdl:portType name="MathService"> - <wsdl:operation name="add" parameterOrder=""> <wsdl:input name="addRequest" message="impl:addRequest" /> <wsdl:output name="addResponse" message="impl:addResponse" /> </wsdl:operation> </wsdl:portType> - <wsdl:binding name="MathServiceSoapBinding" type="impl:MathService"> <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" /> - <wsdl:operation name="add"> <wsdlsoap:operation soapAction="" /> - <wsdl:input name="addRequest"> <wsdlsoap:body use="literal" namespace="MathService" /> </wsdl:input> - <wsdl:output name="addResponse"> <wsdlsoap:body use="literal" namespace="MathService" /> </wsdl:output> </wsdl:operation> </wsdl:binding> - <wsdl:service name="MathServiceService"> - <wsdl:port name="MathService" binding="impl:MathServiceSoapBinding"> <wsdlsoap:address location="http://localhost:8080/axis/services/MathService" /> </wsdl:port> </wsdl:service> </wsdl:definitions>
<<attachment: winmail.dat>>