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 Anthoni Tom <To...@cronos.be> on 2005/08/10 10:44:43 UTC

[axis2] invoking webservice

I'm invoking a webservice I deployed.

This is the error:

 

org.apache.axis2.engine.AxisFault: First Element must contain the local
name, Envelope; nested exception is: 

            org.apache.axis2.om.OMException: First Element must contain
the local name, Envelope

            at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUti
ls.java:83)

            at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUti
ls.java:44)

            at
org.apache.axis2.clientapi.TwoChannelBasedSender.send(TwoChannelBasedSen
der.java:49)

            at
org.apache.axis2.clientapi.InOutMEPClient$NonBlockingInvocationWorker.do
Work(InOutMEPClient.java:338)

            at
org.apache.axis2.util.threadpool.ThreadWorker.run(ThreadWorker.java:34)

Caused by: org.apache.axis2.om.OMException: First Element must contain
the local name, Envelope

            at
org.apache.axis2.soap.impl.llom.builder.StAXSOAPModelBuilder.constructNo
de(StAXSOAPModelBuilder.java:193)

            at
org.apache.axis2.soap.impl.llom.builder.StAXSOAPModelBuilder.createOMEle
ment(StAXSOAPModelBuilder.java:164)

            at
org.apache.axis2.soap.impl.llom.builder.StAXSOAPModelBuilder.next(StAXSO
APModelBuilder.java:302)

            at
org.apache.axis2.soap.impl.llom.builder.StAXSOAPModelBuilder.getSOAPEnve
lope(StAXSOAPModelBuilder.java:149)

            at
org.apache.axis2.soap.impl.llom.builder.StAXSOAPModelBuilder.identifySOA
PVersion(StAXSOAPModelBuilder.java:104)

            at
org.apache.axis2.soap.impl.llom.builder.StAXSOAPModelBuilder.<init>(StAX
SOAPModelBuilder.java:91)

            at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUti
ls.java:78)

            ... 4 more

 

Sounds familiar for anyone?

 

(I'm invokingnonblocking)

 

Kind regards,

Tom Anthoni


RE: [axis2] invoking webservice

Posted by Eran Chinthaka <ch...@opensource.lk>.
Sounds familiar.

 

Seems like the envelope element is missing from the OUT message.

 

If you generated the code from WSDL2JAVA, send us the WSDL

Else if you wrote the client yourself, send the client code.

 

-- Chinthaka

  _____  

From: Anthoni Tom [mailto:Tom.Anthoni@cronos.be] 
Sent: Wednesday, August 10, 2005 2:45 PM
To: axis-user@ws.apache.org
Subject: [axis2] invoking webservice

 

I'm invoking a webservice I deployed.

This is the error:

 

org.apache.axis2.engine.AxisFault: First Element must contain the local
name, Envelope; nested exception is: 

            org.apache.axis2.om.OMException: First Element must contain the
local name, Envelope

            at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.j
ava:83)

            at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.j
ava:44)

            at
org.apache.axis2.clientapi.TwoChannelBasedSender.send(TwoChannelBasedSender.
java:49)

            at
org.apache.axis2.clientapi.InOutMEPClient$NonBlockingInvocationWorker.doWork
(InOutMEPClient.java:338)

            at
org.apache.axis2.util.threadpool.ThreadWorker.run(ThreadWorker.java:34)

Caused by: org.apache.axis2.om.OMException: First Element must contain the
local name, Envelope

            at
org.apache.axis2.soap.impl.llom.builder.StAXSOAPModelBuilder.constructNode(S
tAXSOAPModelBuilder.java:193)

            at
org.apache.axis2.soap.impl.llom.builder.StAXSOAPModelBuilder.createOMElement
(StAXSOAPModelBuilder.java:164)

            at
org.apache.axis2.soap.impl.llom.builder.StAXSOAPModelBuilder.next(StAXSOAPMo
delBuilder.java:302)

            at
org.apache.axis2.soap.impl.llom.builder.StAXSOAPModelBuilder.getSOAPEnvelope
(StAXSOAPModelBuilder.java:149)

            at
org.apache.axis2.soap.impl.llom.builder.StAXSOAPModelBuilder.identifySOAPVer
sion(StAXSOAPModelBuilder.java:104)

            at
org.apache.axis2.soap.impl.llom.builder.StAXSOAPModelBuilder.<init>(StAXSOAP
ModelBuilder.java:91)

            at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.j
ava:78)

            ... 4 more

 

Sounds familiar for anyone?

 

(I'm invokingnonblocking)

 

Kind regards,

Tom Anthoni