You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Lou Fox <fo...@yahoo.com> on 2003/05/08 02:09:28 UTC

Newbie: Client Application: Custom Header

I need to create a client application that has the following custom 
information in the header, there is no WSDL, so I need to write the java 
by hand, what classes and methods should I be looking at?

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:tns="salesforce"
xmlns:types="salesforce/encodedTypes"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">

Sorry for the newbie question, but I've been hunting for the answer for 
several days without any luck.


Re: Newbie: Client Application: Custom Header

Posted by Lou Fox <fo...@yahoo.com>.
Thanks for the reply manuela, but if I'm not mistaking 
call.addHeader(SOAPHeaderElement) adds a header, and I need to add 
namespaces.  I got it working, but I had to create the entire envelope 
by hand by using org.apache.axis.message.SOAPEnvelope, SOAPBody, and 
SOAPBodyElement and then once the entire envelope was created I called 
call.invoke(SOAPEnvelope).  It felt like a roundabout way of doing 
things.  I wish call had the ability to add, and delete namespaces.

Manuela Cirronis wrote:

>Lou,
>you can manipolate the header using the SOAPHeaderElement()
>then  call.addHeader(soapHeaderElem) ...
>
>Hope this help,
>
>~manux
> 
>----- Original Message ----- 
>From: "Lou Fox" <fo...@yahoo.com>
>To: <ax...@ws.apache.org>
>Sent: Thursday, May 08, 2003 2:09 AM
>Subject: Newbie: Client Application: Custom Header
>
>
>  
>
>>I need to create a client application that has the following custom 
>>information in the header, there is no WSDL, so I need to write the java 
>>by hand, what classes and methods should I be looking at?
>>
>><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
>>xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
>>xmlns:tns="salesforce"
>>xmlns:types="salesforce/encodedTypes"
>>xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>xmlns:xsd="http://www.w3.org/2001/XMLSchema">
>>
>>Sorry for the newbie question, but I've been hunting for the answer for 
>>several days without any luck.
>>
>>
>>    
>>



Re: Newbie: Client Application: Custom Header

Posted by Manuela Cirronis <ma...@gruppoatlantis.com>.
Lou,
you can manipolate the header using the SOAPHeaderElement()
then  call.addHeader(soapHeaderElem) ...

Hope this help,

~manux
 
----- Original Message ----- 
From: "Lou Fox" <fo...@yahoo.com>
To: <ax...@ws.apache.org>
Sent: Thursday, May 08, 2003 2:09 AM
Subject: Newbie: Client Application: Custom Header


> I need to create a client application that has the following custom 
> information in the header, there is no WSDL, so I need to write the java 
> by hand, what classes and methods should I be looking at?
> 
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
> xmlns:tns="salesforce"
> xmlns:types="salesforce/encodedTypes"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> 
> Sorry for the newbie question, but I've been hunting for the answer for 
> several days without any luck.
> 
>