axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mehta, Saurabh" <Saurabh.Me...@sabre-holdings.com>
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="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsd1="http://www.opentravel.org/OTA/2002/11" xmlns:xsd2="http://www.opentravel.org/OTA/2002/11"
xmlns:xsd3="http://www.opentravel.org/OTA/2002/08" xmlns:tns="https://webservices.sabre.com/websvc"
xmlns:eb="http://www.ebxml.org/namespaces/messageHeader" xmlns="http://schemas.xmlsoap.org/wsdl/"
targetNamespace="https://webservices.sabre.com/websvc" xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/12/secext">
	<import namespace="http://www.opentravel.org/OTA/2002/11" location="OTA_AirAvailRQRS.xsd"/>
	<import namespace="http://www.ebxml.org/namespaces/messageHeader" location="msg-header-2_0.xsd"/>
	<import namespace="http://www.w3.org/2000/09/xmldsig#" location="xmldsig-core-schema.xsd"/>
	<import namespace="http://www.w3.org/1999/xlink" location="xlink.xsd"/>
	<import namespace="http://schemas.xmlsoap.org/soap/envelope/" location="envelope.xsd"/>
	<import namespace="http://www.w3.org/XML/1998/namespace" location="xml.xsd"/>
	<import namespace="http://schemas.xmlsoap.org/ws/2002/12/secext" location="wsse.xsd"/>
	<message name="GetAirAvailInputHeader">
		<part name="header" element="eb:MessageHeader"/>
	</message>
	<message name="GetAirAvailInputHeader2">
		<part name="header2" element="wsse:Security"/>
	</message>
	<message name="GetAirAvailInput">
		<part name="body" element="xsd1:OTA_AirAvailRQ"/>
	</message>
	<message name="GetAirAvailOutputHeader">
		<part name="header" element="eb:MessageHeader"/>
	</message>
	<message name="GetAirAvailOutputHeader2">
		<part name="header2" element="wsse:Security"/>
	</message>
	<message name="GetAirAvailOutput">
		<part name="body" element="xsd2:OTA_AirAvailRS"/>
	</message>
	<portType name="OTA_AirAvailPortType">
		<operation name="OTA_AirAvailRQ">
			<input message="tns:GetAirAvailInput"/>
			<output message="tns:GetAirAvailOutput"/>
		</operation>
	</portType>
	<binding name="OTA_AirAvailSoapBinding" type="tns:OTA_AirAvailPortType">
		<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
		<operation name="OTA_AirAvailRQ">
			<soap:operation soapAction="OTA"/>
			<input>
				<soap:header message="tns:GetAirAvailInputHeader" part="header" use="literal"/>
				<soap:header message="tns:GetAirAvailInputHeader2" part="header2" use="literal"/>
				<soap:body parts="body" use="literal"/>
			</input>
			<output>
				<soap:header message="tns:GetAirAvailOutputHeader" part="header" use="literal"/>
				<soap:header message="tns:GetAirAvailOutputHeader2" part="header2" use="literal"/>
				<soap:body parts="body" use="literal"/>
			</output>
		</operation>
	</binding>
	<service name="OTA_AirAvailRQService">
		<port name="OTA_AirAvailPortType" binding="tns:OTA_AirAvailSoapBinding">
			<soap:address location="https://webservices.sabre.com/cat"/>
		</port>
	</service>
</definitions>


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.

Thanks,
Saurabh


Mime
View raw message