Hi,

 

            I'm using Axis2 1.2 version.  My webservices are working
fine on my desktop, but when I deploy it into our development server
(which is a Linux machine & App. Server is JBoss), the application was
deployed correctly, but when I try to access those webservices from my
desktop I'm getting the following error.

 

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

First Element must contain the local name, Envelope

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

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

        at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOper
ation.java:356)

        at
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisO
peration.java:294)

        at
com.rsys.ws.client.ResponsysWSServiceStub.login(ResponsysWSServiceStub.j
ava:276)

        at
com.rsys.ws.samples.TestRILoginCmd.execute(TestRILoginCmd.java:29)

        at
com.rsys.ws.samples.TestRILoginCmd.execute(TestRILoginCmd.java:16)

        at
com.rsys.ws.samples.TestResponsysWSClient.main(TestResponsysWSClient.jav
a:40)

Caused by: org.apache.axiom.soap.SOAPProcessingException: First Element
must contain the local name, Envelope

        at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.constructNode(St
AXSOAPModelBuilder.java:221)

        at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.createOMElement(
StAXSOAPModelBuilder.java:179)

        at
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:1
35)

        at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope(
StAXSOAPModelBuilder.java:163)

        at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.<init>(StAXSOAPM
odelBuilder.java:111)

        at
org.apache.axis2.builder.BuilderUtil.getSOAPBuilder(BuilderUtil.java:474
)

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

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

        ... 6 more

            

            I've tried to get the SOAP Request & Responses and here are
those (I'm getting a NullPointerException in AxisServlet.java).

 

Login SOAP Request

 

POST /webservices/services/ResponsysWSService HTTP/1.1

Content-Type: text/xml; charset=UTF-8

SOAPAction: ""

User-Agent: Axis2

Host: dev-orion.corp.responsys.com:1234

Transfer-Encoding: chunked

 

119

<?xml version='1.0' encoding='UTF-8'?>

<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>

    <soapenv:Body>

        <ns1:login xmlns:ns1="urn:ws.rsys.com">

            <ns1:username>raghu</ns1:username>

            <ns1:password>raghu</ns1:password>

        </ns1:login>

    </soapenv:Body>

</soapenv:Envelope>

0

 

Login SOAP Response

 

HTTP/1.1 500 Internal Server Error

Server: Apache-Coyote/1.1

Content-Type: text/html;charset=utf-8

Content-Length: 1453

Date: Mon, 25 Jun 2007 18:06:51 GMT

Connection: close

 

<html>

    <head>

        <title>JBossWeb/2.0.0.GA - Error report</title>

        <style>

            <!--

            H1
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D7
6;font-size:22px;} 

            H2
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D7
6;font-size:16px;} 

            H3
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D7
6;font-size:14px;} 

            BODY
{font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;
} 

            B
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D7
6;} 

            P
{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-s
ize:12px;}

            A {color : black;}A.name {color : black;}HR {color :
#525D76;}

            -->

        </style>

    </head>

    <body>

        <h1>HTTP Status 500 - </h1>

        <HR size="1" noshade="noshade">

        <p><b>type</b> Exception report</p>

        <p><b>message</b> <u></u></p>

        <p>

            <b>description</b> 

            <u>The server encountered an internal error () that
prevented it from fulfilling this request.</u>

        </p>

        <p>

            <b>exception</b>

            <pre>

            java.lang.NullPointerException

 
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:170)

 
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)

 
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilte
r.java:96)

            </pre>

        </p>

        <p>

        <b>note</b> 

        <u>The full stack trace of the root cause is available in the
JBossWeb/2.0.0.GA logs.</u>

        </p>

        <HR size="1" noshade="noshade">

        <h3>JBossWeb/2.0.0.GA</h3>

    </body>

</html>

 

            Could anyone let me know how I can debug this issue?

 

Thanks

Raghu

Reply via email to