[jboss-user] [JBossWS] - Re: how to set headers in JAX-WS

tpawankumar do-not-reply at jboss.com
Mon Dec 3 01:59:15 EST 2007


Hi Alessio,

This is the wsdl
<?xml version="1.0" encoding="utf-8" ?> 
  |  <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://McAfeeAsap.com" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="http://McAfeeAsap.com" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
  |  <wsdl:types>
  |  <s:schema elementFormDefault="qualified" targetNamespace="http://McAfeeAsap.com">
  |  <s:element name="ProcessOrder">
  |  <s:complexType>
  |  <s:sequence>
  |   <s:element minOccurs="0" maxOccurs="1" name="sOrderXML" type="s:string" /> 
  |   </s:sequence>
  |   </s:complexType>
  |   </s:element>
  |  <s:element name="ProcessOrderResponse">
  |  <s:complexType>
  |  <s:sequence>
  |   <s:element minOccurs="0" maxOccurs="1" name="ProcessOrderResult" type="s:string" /> 
  |   </s:sequence>
  |   </s:complexType>
  |   </s:element>
  |   <s:element name="AuthHeader" type="tns:AuthHeader" /> 
  |  <s:complexType name="AuthHeader">
  |  <s:sequence>
  |   <s:element minOccurs="0" maxOccurs="1" name="sToken" type="s:string" /> 
  |   </s:sequence>
  |   <s:anyAttribute /> 
  |   </s:complexType>
  |   </s:schema>
  |   </wsdl:types>
  |  <wsdl:message name="ProcessOrderSoapIn">
  |   <wsdl:part name="parameters" element="tns:ProcessOrder" /> 
  |   </wsdl:message>
  |  <wsdl:message name="ProcessOrderSoapOut">
  |   <wsdl:part name="parameters" element="tns:ProcessOrderResponse" /> 
  |   </wsdl:message>
  |  <wsdl:message name="ProcessOrderAuthHeader">
  |   <wsdl:part name="AuthHeader" element="tns:AuthHeader" /> 
  |   </wsdl:message>
  |  <wsdl:portType name="McAfee_x0020_Order_x0020_ProcessingSoap">
  |  <wsdl:operation name="ProcessOrder">
  |   <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">McAfee Order Processing</wsdl:documentation> 
  |   <wsdl:input message="tns:ProcessOrderSoapIn" /> 
  |   <wsdl:output message="tns:ProcessOrderSoapOut" /> 
  |   </wsdl:operation>
  |   </wsdl:portType>
  |  <wsdl:binding name="McAfee_x0020_Order_x0020_ProcessingSoap" type="tns:McAfee_x0020_Order_x0020_ProcessingSoap">
  |   <soap:binding transport="http://schemas.xmlsoap.org/soap/http" /> 
  |  <wsdl:operation name="ProcessOrder">
  |   <soap:operation soapAction="http://McAfeeAsap.com/ProcessOrder" style="document" /> 
  |  <wsdl:input>
  |   <soap:body use="literal" /> 
  |   <soap:header message="tns:ProcessOrderAuthHeader" part="AuthHeader" use="literal" /> 
  |   </wsdl:input>
  |  <wsdl:output>
  |   <soap:body use="literal" /> 
  |   </wsdl:output>
  |   </wsdl:operation>
  |   </wsdl:binding>
  |  <wsdl:binding name="McAfee_x0020_Order_x0020_ProcessingSoap12" type="tns:McAfee_x0020_Order_x0020_ProcessingSoap">
  |   <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" /> 
  |  <wsdl:operation name="ProcessOrder">
  |   <soap12:operation soapAction="http://McAfeeAsap.com/ProcessOrder" style="document" /> 
  |  <wsdl:input>
  |   <soap12:body use="literal" /> 
  |   <soap12:header message="tns:ProcessOrderAuthHeader" part="AuthHeader" use="literal" /> 
  |   </wsdl:input>
  |  <wsdl:output>
  |   <soap12:body use="literal" /> 
  |   </wsdl:output>
  |   </wsdl:operation>
  |   </wsdl:binding>
  |  <wsdl:service name="McAfee_x0020_Order_x0020_Processing">
  |  <wsdl:port name="McAfee_x0020_Order_x0020_ProcessingSoap" binding="tns:McAfee_x0020_Order_x0020_ProcessingSoap">
  |   <soap:address location="http://testdrive.mcafeeasap.com/ws/mop/mop.asmx" /> 
  |   </wsdl:port>
  |  <wsdl:port name="McAfee_x0020_Order_x0020_ProcessingSoap12" binding="tns:McAfee_x0020_Order_x0020_ProcessingSoap12">
  |   <soap12:address location="http://testdrive.mcafeeasap.com/ws/mop/mop.asmx" /> 
  |   </wsdl:port>
  |   </wsdl:service>
  |   </wsdl:definitions>

and on the server side i don't have the implementation,it is third party service we are using.

But i knew there is a method processOrder which takes two parameters one is xmlstring and the other is authheader object.

The Jboss server i am using is Jboss 4.2.1 GA and jbossws is 1.2.1GA.

Please let me know if you have any suggestions?

Thanks,
Pavan   

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109706#4109706

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4109706



More information about the jboss-user mailing list