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 D P <de...@gmail.com> on 2006/08/12 00:40:49 UTC

Axis2 v1.0: Namespace prefix error

Hello everyone:

Axis2 v1.0
CF 7.0

I'm attempting to send the following SOAP message through cold fusion to a
service I've written.

SOAP message:

<?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="
http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header><ns1:credential
xmlns:ns1="http://webservices.company.com/credential" xmlns="
http://webservices.company.com/credential" soapenv:mustUnderstand="0"
soapenv:actor=""><token>872)(@nNjDU{</token></ns1:credential></soapenv:Header><soapenv:Body><ns2:notifyOfErrorOptions
xmlns:ns2="http://webservices.company.com/notification/
"><dateTime>2006-08-09T11:09:29.809Z</dateTime><serverName>Server Name:
testStartnotifyOfError()</serverName><operationDesc>Operation Description:
testStartnotifyOfError()</operationDesc><message>Here is a message:
testStartnotifyOfError()</message></ns2:notifyOfErrorOptions></soapenv:Body></soapenv:Envelope>

When axis2 attempts to parse the credential element into an object, I get
the following error:

com.ctc.wstx.exc.WstxParsingException: Undeclared namespace prefix "soapenv"
(for attribute "actor")

The problem goes away when I add the soapenv namespace declaration on the
credential element. I don't understand why I need to, since I thought the
actor attribute would inherit its namespace from the soapenv namespace
declared on the soap:Envelope element. Can someone please explain, as I feel
I'm missing something here?

TIA.

Re: Axis2 v1.0: Namespace prefix error

Posted by D P <de...@gmail.com>.
Thanks for the feedback. I will check in on the wstx mailing list. Do you
know the version of WSTX that Axis2 uses?
TIA.

On 8/12/06, Ajith Ranabahu <aj...@gmail.com> wrote:
>
> Hi,
> Hmm.. the error popped up from the underlying pull parser ! A WSTX
> implementation issue   perhaps ?
>
> Ajith
>
> On 8/11/06, D P <de...@gmail.com> wrote:
> > Hello everyone:
> >
> > Axis2 v1.0
> > CF 7.0
> >
> > I'm attempting to send the following SOAP message through cold fusion to
> a
> > service I've written.
> >
> > SOAP message:
> >
> > <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope
> > xmlns:soapenv="
> > http://schemas.xmlsoap.org/soap/envelope/
> "><soapenv:Header><ns1:credential
> > xmlns:ns1="http://webservices.company.com/credential "
> > xmlns="http://webservices.company.com/credential"
> > soapenv:mustUnderstand="0"
> >
> soapenv:actor=""><token>872)(@nNjDU{</token></ns1:credential></soapenv:Header><soapenv:Body><ns2:notifyOfErrorOptions
> > xmlns:ns2="
> > http://webservices.company.com/notification/
> "><dateTime>2006-08-09T11:09:29.809Z</dateTime><serverName>Server
> > Name:
> > testStartnotifyOfError()</serverName><operationDesc>Operation
> > Description:
> > testStartnotifyOfError()</operationDesc><message>Here is a
> > message:
> >
> testStartnotifyOfError()</message></ns2:notifyOfErrorOptions></soapenv:Body></soapenv:Envelope>
> >
> > When axis2 attempts to parse the credential element into an object, I
> get
> > the following error:
> >
> > com.ctc.wstx.exc.WstxParsingException: Undeclared namespace
> > prefix "soapenv" (for attribute "actor")
> >
> > The problem goes away when I add the soapenv namespace declaration on
> the
> > credential element. I don't understand why I need to, since I thought
> the
> > actor attribute would inherit its namespace from the soapenv namespace
> > declared on the soap:Envelope element. Can someone please explain, as I
> feel
> > I'm missing something here?
> >
> > TIA.
>
>
> --
> Ajith Ranabahu
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>

Re: Axis2 v1.0: Namespace prefix error

Posted by Ajith Ranabahu <aj...@gmail.com>.
Hi,
Hmm.. the error popped up from the underlying pull parser ! A WSTX
implementation issue   perhaps ?

Ajith

On 8/11/06, D P <de...@gmail.com> wrote:
> Hello everyone:
>
> Axis2 v1.0
> CF 7.0
>
> I'm attempting to send the following SOAP message through cold fusion to a
> service I've written.
>
> SOAP message:
>
> <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope
> xmlns:soapenv="
> http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header><ns1:credential
> xmlns:ns1="http://webservices.company.com/credential "
> xmlns="http://webservices.company.com/credential"
> soapenv:mustUnderstand="0"
> soapenv:actor=""><token>872)(@nNjDU{</token></ns1:credential></soapenv:Header><soapenv:Body><ns2:notifyOfErrorOptions
> xmlns:ns2="
> http://webservices.company.com/notification/"><dateTime>2006-08-09T11:09:29.809Z</dateTime><serverName>Server
> Name:
> testStartnotifyOfError()</serverName><operationDesc>Operation
> Description:
> testStartnotifyOfError()</operationDesc><message>Here is a
> message:
> testStartnotifyOfError()</message></ns2:notifyOfErrorOptions></soapenv:Body></soapenv:Envelope>
>
> When axis2 attempts to parse the credential element into an object, I get
> the following error:
>
> com.ctc.wstx.exc.WstxParsingException: Undeclared namespace
> prefix "soapenv" (for attribute "actor")
>
> The problem goes away when I add the soapenv namespace declaration on the
> credential element. I don't understand why I need to, since I thought the
> actor attribute would inherit its namespace from the soapenv namespace
> declared on the soap:Envelope element. Can someone please explain, as I feel
> I'm missing something here?
>
> TIA.


-- 
Ajith Ranabahu

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org