You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user-ja@axis.apache.org by babraa <h....@sheffield.ac.uk> on 2006/05/23 12:49:44 UTC
Qname prefixs
Hello
My first post as a newbie. I have searched the forums and was suprised I
couldn't find an answer. Makes me think I am doing something dim.
I am trying to a add a header to a soap call using
the following
......
.......
QName qNameHeader = new QName ("http://soap-authentication.org/2002/01",
"BasicAuth", "auth"); //uri,local part, prefix
SOAPHeaderElement header = new SOAPHeaderElement(qNameHeader);
call.addHeader(header);
however when I check out the msg being sent the header is as such:
<soapenv:Header>
<ns1:BasicAuth soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next"
soapenv:mustUnderstand="0"
xmlns:ns1="http://soap-authentication.org/2002/01"/>
</soapenv:Header>
I'm not sure why the ns1 is not being substituted with a "auth".
Are there more steps involved in setting a prefix?
Cheers
Nomit
--
View this message in context: http://www.nabble.com/Qname+prefixs-t1668189.html#a4520846
Sent from the Axis - User - Java forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-ja-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-ja-help@ws.apache.org
Re: Qname prefixs
Posted by Toshiyuki Kimura <to...@apache.org>.
Hello,
This is a wrong list to ask questions
in English. It's for Japanese. So, please
go to "axis-user@ws.apache.org".
Thanks,
Toshi <to...@apache.org>
On Tue, 23 May 2006, babraa wrote:
>
> Hello
>
> My first post as a newbie. I have searched the forums and was suprised I
> couldn't find an answer. Makes me think I am doing something dim.
>
> I am trying to a add a header to a soap call using
>
> the following
>
> ......
> .......
> QName qNameHeader = new QName ("http://soap-authentication.org/2002/01",
> "BasicAuth", "auth"); //uri,local part, prefix
> SOAPHeaderElement header = new SOAPHeaderElement(qNameHeader);
> call.addHeader(header);
>
> however when I check out the msg being sent the header is as such:
> <soapenv:Header>
> <ns1:BasicAuth soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next"
> soapenv:mustUnderstand="0"
> xmlns:ns1="http://soap-authentication.org/2002/01"/>
> </soapenv:Header>
>
> I'm not sure why the ns1 is not being substituted with a "auth".
>
> Are there more steps involved in setting a prefix?
>
> Cheers
>
> Nomit
> --
> View this message in context: http://www.nabble.com/Qname+prefixs-t1668189.html#a4520846
> Sent from the Axis - User - Java forum at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-ja-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-ja-help@ws.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-ja-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-ja-help@ws.apache.org