axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mehta, Saurabh" <>
Subject Setting SOAP:Header in Doc/Literal service
Date Thu, 13 Nov 2003 23:25:32 GMT
Currently, I am trying to consume a service using WSDL2Java tool in Axis. We have a document
based service using EbXML Message. We have certain authentication details that we send through
the SOAP Headers. However, I could not find a way to set the SOAP:Headers in the generated
Proxy class when I use WSDL2Java provided by Axis.

The WSDL file is given below:

<definitions xmlns:soap="" xmlns:xs=""
xmlns:xsd1="" xmlns:xsd2=""
xmlns:xsd3="" xmlns:tns=""
xmlns:eb="" xmlns=""
targetNamespace="" xmlns:wsse="">
	<import namespace="" location="OTA_AirAvailRQRS.xsd"/>
	<import namespace="" location="msg-header-2_0.xsd"/>
	<import namespace="" location="xmldsig-core-schema.xsd"/>
	<import namespace="" location="xlink.xsd"/>
	<import namespace="" location="envelope.xsd"/>
	<import namespace="" location="xml.xsd"/>
	<import namespace="" location="wsse.xsd"/>
	<message name="GetAirAvailInputHeader">
		<part name="header" element="eb:MessageHeader"/>
	<message name="GetAirAvailInputHeader2">
		<part name="header2" element="wsse:Security"/>
	<message name="GetAirAvailInput">
		<part name="body" element="xsd1:OTA_AirAvailRQ"/>
	<message name="GetAirAvailOutputHeader">
		<part name="header" element="eb:MessageHeader"/>
	<message name="GetAirAvailOutputHeader2">
		<part name="header2" element="wsse:Security"/>
	<message name="GetAirAvailOutput">
		<part name="body" element="xsd2:OTA_AirAvailRS"/>
	<portType name="OTA_AirAvailPortType">
		<operation name="OTA_AirAvailRQ">
			<input message="tns:GetAirAvailInput"/>
			<output message="tns:GetAirAvailOutput"/>
	<binding name="OTA_AirAvailSoapBinding" type="tns:OTA_AirAvailPortType">
		<soap:binding style="document" transport=""/>
		<operation name="OTA_AirAvailRQ">
			<soap:operation soapAction="OTA"/>
				<soap:header message="tns:GetAirAvailInputHeader" part="header" use="literal"/>
				<soap:header message="tns:GetAirAvailInputHeader2" part="header2" use="literal"/>
				<soap:body parts="body" use="literal"/>
				<soap:header message="tns:GetAirAvailOutputHeader" part="header" use="literal"/>
				<soap:header message="tns:GetAirAvailOutputHeader2" part="header2" use="literal"/>
				<soap:body parts="body" use="literal"/>
	<service name="OTA_AirAvailRQService">
		<port name="OTA_AirAvailPortType" binding="tns:OTA_AirAvailSoapBinding">
			<soap:address location=""/>

Are there any specific parameters that I need to use when I run WSDL2Java? If Handlers is
the only method, any code snippets on it would work the best.


View raw message