Hi, I'm pretty new to axis, so I'd appreciate any help available.
I'm using axis 1.4. In the FAQ under "How do I set a header when using WSDL2Java stubs?" it says "Explicit headers are defined in the WSDL of the service. The WSDL2Java generation tool will recognize these headers in most cases and emit stub class methods that include the headers as arguments to the methods." However, I am having great difficulty making WSDL2Java emit any code of that sort. I've attached a Test.wsdl that I'm trying to run WSDL2Java on. I based the Test.wsdl on the output of Java2WSDL, in hope that it would work best in reverse. But I've got no luck in producing the code for the TestHeader or anything that "include the headers as arguments to the methods." Anyone tell me where I'm going wrong? Thanks greatly in advance, Ian.
<?xml version="1.0" encoding="UTF-8"?> <wsdl:definitions targetNamespace="http://test" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://test" xmlns:intf="http://test" 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.4 Built on Apr 22, 2006 (06:55:48 PDT)--> <wsdl:types> <schema elementFormDefault="qualified" targetNamespace="http://test" xmlns="http://www.w3.org/2001/XMLSchema"> <element name="GetIntReturn" type="xsd:int"/> <element name="TestHeader" type="xsd:int"/> </schema> </wsdl:types> <wsdl:message name="GetIntRequest"> </wsdl:message> <wsdl:message name="GetIntResponse"> <wsdl:part element="impl:GetIntReturn" name="GetIntReturn"/> </wsdl:message> <wsdl:message name="GetIntHeader"> <wsdl:part element="impl:TestHeader" name="TestHeader"/> </wsdl:message> <wsdl:portType name="Test"> <wsdl:operation name="GetInt"> <wsdl:input message="impl:GetIntRequest" name="GetIntRequest"/> <wsdl:output message="impl:GetIntResponse" name="GetIntResponse"/> </wsdl:operation> </wsdl:portType> <wsdl:binding name="TestSoapBinding" type="impl:Test"> <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/> <wsdl:operation name="GetInt"> <wsdlsoap:operation soapAction=""/> <wsdl:input name="GetIntRequest"> <wsdlsoap:body use="literal"/> <wsdlsoap:header use="literal" message="impl:GetIntHeader" part="TestHeader"/> </wsdl:input> <wsdl:output name="GetIntResponse"> <wsdlsoap:body use="literal"/> <wsdlsoap:header use="literal" message="impl:GetIntHeader" part="TestHeader"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="TestService"> <wsdl:port binding="impl:TestSoapBinding" name="Test"> <wsdlsoap:address location="http://localhost:8080/axis/services/Test"/> </wsdl:port> </wsdl:service> </wsdl:definitions>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
