axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Raghu Upadhyayula (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AXIS2-2352) invoking webservices client from another environment is getting org.apache.axis2.AxisFault: First Element must contain the local name, Envelope
Date Tue, 07 Aug 2007 17:43:59 GMT

    [ https://issues.apache.org/jira/browse/AXIS2-2352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12518201
] 

Raghu Upadhyayula commented on AXIS2-2352:
------------------------------------------

Hi Dims,

              I've tried accessing my webservices on our test server using Axis2 1.3 SNAPSHOT
(nightly build as of yesterday).  This time I didn't get the HTML response, I got a SOAP Envelope
as a response, but I'm still a NPE.

             Below I'm giving you the SOAP Request & Response for this & also the
log statements from axis2.log.

SOAP Request
------------
POST /webservices/services/ResponsysWSService HTTP/1.1
Content-Type: text/xml; charset=UTF-8
SOAPAction: ""
User-Agent: Axis2
Host: flooz.qa.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

SOAP Response
-------------
Content-Type: text/xml;charset=UTF-8
Transfer-Encoding: chunked
Date: Tue, 07 Aug 2007 16:22:56 GMT
Connection: close

129
<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
        <soapenv:Fault>
            <faultcode>soapenv:Server</faultcode>
            <faultstring>java.lang.NullPointerException</faultstring
            ><detail />
        </soapenv:Fault>
    </soapenv:Body>
</soapenv:Envelope>
0
********************************************************************************************
axis2.log file
--------------
2007-08-07 09:22:55,525 [http-0.0.0.0-8080-1] DEBUG org.apache.axis2.builder.BuilderUtil 
- CharSetEncoding from content-type (UTF-8)
2007-08-07 09:22:55,542 [http-0.0.0.0-8080-1] DEBUG org.apache.axis2.transport.TransportUtils
 - createSOAPEnvelope using Builder (class org.apache.axis2.builder.SOAPBuilder) selected
from type (text/xml)
2007-08-07 09:22:55,543 [http-0.0.0.0-8080-1] DEBUG org.apache.axis2.builder.BuilderUtil 
- char set encoding set from default =UTF-8
2007-08-07 09:22:55,565 [http-0.0.0.0-8080-1] DEBUG org.apache.axiom.om.util.StAXUtils  -
XMLStreamReader is com.ctc.wstx.sr.ValidatingStreamReader
2007-08-07 09:22:55,653 [http-0.0.0.0-8080-1] DEBUG org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder
 - Starting to process SOAP 1.1 message
2007-08-07 09:22:55,670 [http-0.0.0.0-8080-1] DEBUG org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder
 - Build the OMElelment EnvelopeBy the StaxSOAPModelBuilder
2007-08-07 09:22:55,688 [http-0.0.0.0-8080-1] DEBUG org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder
 - Build the OMElelment BodyBy the StaxSOAPModelBuilder
2007-08-07 09:22:55,689 [http-0.0.0.0-8080-1] DEBUG org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder
 - Build the OMElelment loginBy the StaxSOAPModelBuilder
2007-08-07 09:22:55,691 [http-0.0.0.0-8080-1] DEBUG org.apache.axis2.engine.Phase  - [MessageContext:
logID=urn:uuid:4E6BDFA81F1A9C678E1186503775725] Checking pre-condition for Phase "Transport"
2007-08-07 09:22:55,692 [http-0.0.0.0-8080-1] DEBUG org.apache.axis2.engine.Phase  - [MessageContext:
logID=urn:uuid:4E6BDFA81F1A9C678E1186503775725] Invoking phase "Transport"
2007-08-07 09:22:55,692 [http-0.0.0.0-8080-1] DEBUG org.apache.axis2.engine.Phase  - [MessageContext:
logID=urn:uuid:4E6BDFA81F1A9C678E1186503775725] Invoking Handler 'RequestURIBasedDispatcher'
in Phase 'Transport'
2007-08-07 09:22:55,692 [http-0.0.0.0-8080-1] DEBUG org.apache.axis2.dispatchers.RequestURIBasedServiceDispatcher
 - [MessageContext: logID=urn:uuid:4E6BDFA81F1A9C678E1186503775725] Checking for Service using
target endpoint address : http://flooz.qa.responsys.com:1234/webservices/services/ResponsysWSService
2007-08-07 09:22:55,693 [http-0.0.0.0-8080-1] DEBUG org.apache.axis2.util.Utils  - parseRequestURLForServiceAndOperation
: [http://flooz.qa.responsys.com:1234/webservices/services/ResponsysWSService][/webservices/services]
2007-08-07 09:22:55,694 [http-0.0.0.0-8080-1] DEBUG org.apache.axis2.i18n.ProjectResourceBundle
 - org.apache.axis2.i18n.resource::handleGetObject(servicefound)
2007-08-07 09:22:55,694 [http-0.0.0.0-8080-1] DEBUG org.apache.axis2.engine.AbstractDispatcher
 - [MessageContext: logID=urn:uuid:4E6BDFA81F1A9C678E1186503775725] Found AxisService : ResponsysWSService
2007-08-07 09:22:55,694 [http-0.0.0.0-8080-1] DEBUG org.apache.axis2.engine.Phase  - [MessageContext:
logID=urn:uuid:4E6BDFA81F1A9C678E1186503775725] Invoking Handler 'SOAPActionBasedDispatcher'
in Phase 'Transport'
2007-08-07 09:22:55,695 [http-0.0.0.0-8080-1] DEBUG org.apache.axis2.dispatchers.ActionBasedOperationDispatcher
 - [MessageContext: logID=urn:uuid:4E6BDFA81F1A9C678E1186503775725] Checking for Operation
using Action : 
2007-08-07 09:22:55,695 [http-0.0.0.0-8080-1] DEBUG org.apache.axis2.engine.Phase  - [MessageContext:
logID=urn:uuid:4E6BDFA81F1A9C678E1186503775725] Checking post-conditions for phase "Transport"
2007-08-07 09:22:55,695 [http-0.0.0.0-8080-1] DEBUG org.apache.axis2.engine.Phase  - [MessageContext:
logID=urn:uuid:4E6BDFA81F1A9C678E1186503775725] Checking pre-condition for Phase "Security"
2007-08-07 09:22:55,695 [http-0.0.0.0-8080-1] DEBUG org.apache.axis2.engine.Phase  - [MessageContext:
logID=urn:uuid:4E6BDFA81F1A9C678E1186503775725] Invoking phase "Security"
2007-08-07 09:22:55,696 [http-0.0.0.0-8080-1] DEBUG org.apache.axis2.engine.Phase  - [MessageContext:
logID=urn:uuid:4E6BDFA81F1A9C678E1186503775725] Checking post-conditions for phase "Security"
2007-08-07 09:22:55,696 [http-0.0.0.0-8080-1] DEBUG org.apache.axis2.engine.Phase  - [MessageContext:
logID=urn:uuid:4E6BDFA81F1A9C678E1186503775725] Checking pre-condition for Phase "PreDispatch"
2007-08-07 09:22:55,696 [http-0.0.0.0-8080-1] DEBUG org.apache.axis2.engine.Phase  - [MessageContext:
logID=urn:uuid:4E6BDFA81F1A9C678E1186503775725] Invoking phase "PreDispatch"
2007-08-07 09:22:55,696 [http-0.0.0.0-8080-1] DEBUG org.apache.axis2.engine.Phase  - [MessageContext:
logID=urn:uuid:4E6BDFA81F1A9C678E1186503775725] Invoking Handler 'AddressingFinalInHandler'
in Phase 'PreDispatch'
2007-08-07 09:22:55,697 [http-0.0.0.0-8080-1] DEBUG org.apache.axis2.engine.Phase  - [MessageContext:
logID=urn:uuid:4E6BDFA81F1A9C678E1186503775725] Invoking Handler 'AddressingSubmissionInHandler'
in Phase 'PreDispatch'
2007-08-07 09:22:55,697 [http-0.0.0.0-8080-1] DEBUG org.apache.axis2.engine.Phase  - [MessageContext:
logID=urn:uuid:4E6BDFA81F1A9C678E1186503775725] Checking post-conditions for phase "PreDispatch"
2007-08-07 09:22:55,698 [http-0.0.0.0-8080-1] DEBUG org.apache.axis2.engine.Phase  - [MessageContext:
logID=urn:uuid:4E6BDFA81F1A9C678E1186503775725] Checking pre-condition for Phase "Dispatch"
2007-08-07 09:22:55,698 [http-0.0.0.0-8080-1] DEBUG org.apache.axis2.engine.Phase  - [MessageContext:
logID=urn:uuid:4E6BDFA81F1A9C678E1186503775725] Invoking phase "Dispatch"
2007-08-07 09:22:55,698 [http-0.0.0.0-8080-1] DEBUG org.apache.axis2.engine.Phase  - [MessageContext:
logID=urn:uuid:4E6BDFA81F1A9C678E1186503775725] Invoking Handler 'AddressingBasedDispatcher'
in Phase 'Dispatch'
2007-08-07 09:22:55,698 [http-0.0.0.0-8080-1] DEBUG org.apache.axis2.dispatchers.ActionBasedOperationDispatcher
 - [MessageContext: logID=urn:uuid:4E6BDFA81F1A9C678E1186503775725] Checking for Operation
using Action : 
2007-08-07 09:22:55,698 [http-0.0.0.0-8080-1] DEBUG org.apache.axis2.engine.Phase  - [MessageContext:
logID=urn:uuid:4E6BDFA81F1A9C678E1186503775725] Invoking Handler 'RequestURIOperationDispatcher'
in Phase 'Dispatch'
2007-08-07 09:22:55,698 [http-0.0.0.0-8080-1] DEBUG org.apache.axis2.util.Utils  - parseRequestURLForServiceAndOperation
: [http://flooz.qa.responsys.com:1234/webservices/services/ResponsysWSService][/webservices/services]
2007-08-07 09:22:55,699 [http-0.0.0.0-8080-1] DEBUG org.apache.axis2.dispatchers.RequestURIBasedOperationDispatcher
 - [MessageContext: logID=urn:uuid:4E6BDFA81F1A9C678E1186503775725] Attempted to check for
Operation using target endpoint URI, but the operation fragment was missing
2007-08-07 09:22:55,699 [http-0.0.0.0-8080-1] DEBUG org.apache.axis2.engine.Phase  - [MessageContext:
logID=urn:uuid:4E6BDFA81F1A9C678E1186503775725] Invoking Handler 'SOAPMessageBodyBasedDispatcher'
in Phase 'Dispatch'
2007-08-07 09:22:55,700 [http-0.0.0.0-8080-1] DEBUG org.apache.axis2.i18n.ProjectResourceBundle
 - org.apache.axis2.i18n.resource::handleGetObject(operationfound)
2007-08-07 09:22:55,700 [http-0.0.0.0-8080-1] DEBUG org.apache.axis2.engine.AbstractDispatcher
 - [MessageContext: logID=urn:uuid:4E6BDFA81F1A9C678E1186503775725] Found AxisOperation :
login
2007-08-07 09:22:55,700 [http-0.0.0.0-8080-1] DEBUG org.apache.axis2.engine.Phase  - [MessageContext:
logID=urn:uuid:4E6BDFA81F1A9C678E1186503775725] Invoking Handler 'HTTPLocationBasedDispatcher'
in Phase 'Dispatch'
2007-08-07 09:22:55,701 [http-0.0.0.0-8080-1] DEBUG org.apache.axis2.engine.Phase  - [MessageContext:
logID=urn:uuid:4E6BDFA81F1A9C678E1186503775725] Invoking Handler 'InstanceDispatcher' in Phase
'Dispatch'
2007-08-07 09:22:55,701 [http-0.0.0.0-8080-1] DEBUG org.apache.axis2.engine.Phase  - [MessageContext:
logID=urn:uuid:4E6BDFA81F1A9C678E1186503775725] Invoking Handler 'AddressingValidationHandler'
in Phase 'Dispatch'
2007-08-07 09:22:55,702 [http-0.0.0.0-8080-1] DEBUG org.apache.axis2.engine.Phase  - [MessageContext:
logID=urn:uuid:4E6BDFA81F1A9C678E1186503775725] Checking post-conditions for phase "Dispatch"
2007-08-07 09:22:55,722 [http-0.0.0.0-8080-1] DEBUG org.apache.axis2.engine.Phase  - [MessageContext:
logID=urn:uuid:4E6BDFA81F1A9C678E1186503775725] Checking pre-condition for Phase "OperationInPhase"
2007-08-07 09:22:55,722 [http-0.0.0.0-8080-1] DEBUG org.apache.axis2.engine.Phase  - [MessageContext:
logID=urn:uuid:4E6BDFA81F1A9C678E1186503775725] Invoking phase "OperationInPhase"
2007-08-07 09:22:55,722 [http-0.0.0.0-8080-1] DEBUG org.apache.axis2.engine.Phase  - [MessageContext:
logID=urn:uuid:4E6BDFA81F1A9C678E1186503775725] Checking post-conditions for phase "OperationInPhase"
2007-08-07 09:22:55,723 [http-0.0.0.0-8080-1] DEBUG org.apache.axis2.engine.Phase  - [MessageContext:
logID=urn:uuid:4E6BDFA81F1A9C678E1186503775725] Checking pre-condition for Phase "soapmonitorPhase"
2007-08-07 09:22:55,723 [http-0.0.0.0-8080-1] DEBUG org.apache.axis2.engine.Phase  - [MessageContext:
logID=urn:uuid:4E6BDFA81F1A9C678E1186503775725] Invoking phase "soapmonitorPhase"
2007-08-07 09:22:55,723 [http-0.0.0.0-8080-1] DEBUG org.apache.axis2.engine.Phase  - [MessageContext:
logID=urn:uuid:4E6BDFA81F1A9C678E1186503775725] Checking post-conditions for phase "soapmonitorPhase"
2007-08-07 09:22:56,030 [http-0.0.0.0-8080-1] DEBUG org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder
 - Build the OMElelment usernameBy the StaxSOAPModelBuilder

2007-08-07 09:22:56,274 [http-0.0.0.0-8080-1] ERROR org.apache.axis2.transport.http.AxisServlet
 - 
java.lang.NullPointerException
	at com.rsys.ws.ResponsysWSServiceMessageReceiverInOut.toOM(ResponsysWSServiceMessageReceiverInOut.java:369)
	at com.rsys.ws.ResponsysWSServiceMessageReceiverInOut.invokeBusinessLogic(ResponsysWSServiceMessageReceiverInOut.java:284)
	at org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.invokeBusinessLogic(AbstractInOutSyncMessageReceiver.java:42)
	at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:96)
	at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145)
	at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
	at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:120)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
	at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
	at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
	at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
	at org.apache.catalina.valves.FastCommonAccessLogValve.invoke(FastCommonAccessLogValve.java:495)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
	at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
	at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
	at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
	at java.lang.Thread.run(Thread.java:595)

2007-08-07 09:22:56,294 [http-0.0.0.0-8080-1] DEBUG org.apache.axis2.addressing.AddressingHelper
 - [MessageContext: logID=urn:uuid:4E6BDFA81F1A9C678E1186503775725] isReplyRedirected: FaultTo
is null. Returning isReplyRedirected
2007-08-07 09:22:56,294 [http-0.0.0.0-8080-1] DEBUG org.apache.axis2.addressing.AddressingHelper
 - [MessageContext: logID=urn:uuid:4E6BDFA81F1A9C678E1186503775725] isReplyRedirected: ReplyTo
is null. Returning false
2007-08-07 09:22:56,397 [http-0.0.0.0-8080-1] DEBUG org.apache.axis2.engine.Phase  - [MessageContext:
logID=urn:uuid:4E6BDFA81F1A9C678E1186503776433] Checking pre-condition for Phase "soapmonitorPhase"
2007-08-07 09:22:56,397 [http-0.0.0.0-8080-1] DEBUG org.apache.axis2.engine.Phase  - [MessageContext:
logID=urn:uuid:4E6BDFA81F1A9C678E1186503776433] Invoking phase "soapmonitorPhase"
2007-08-07 09:22:56,397 [http-0.0.0.0-8080-1] DEBUG org.apache.axis2.engine.Phase  - [MessageContext:
logID=urn:uuid:4E6BDFA81F1A9C678E1186503776433] Checking post-conditions for phase "soapmonitorPhase"
2007-08-07 09:22:56,397 [http-0.0.0.0-8080-1] DEBUG org.apache.axis2.engine.Phase  - [MessageContext:
logID=urn:uuid:4E6BDFA81F1A9C678E1186503776433] Checking pre-condition for Phase "OperationOutFaultPhase"
2007-08-07 09:22:56,397 [http-0.0.0.0-8080-1] DEBUG org.apache.axis2.engine.Phase  - [MessageContext:
logID=urn:uuid:4E6BDFA81F1A9C678E1186503776433] Invoking phase "OperationOutFaultPhase"
2007-08-07 09:22:56,397 [http-0.0.0.0-8080-1] DEBUG org.apache.axis2.engine.Phase  - [MessageContext:
logID=urn:uuid:4E6BDFA81F1A9C678E1186503776433] Checking post-conditions for phase "OperationOutFaultPhase"
2007-08-07 09:22:56,398 [http-0.0.0.0-8080-1] DEBUG org.apache.axis2.engine.Phase  - [MessageContext:
logID=urn:uuid:4E6BDFA81F1A9C678E1186503776433] Checking pre-condition for Phase "PolicyDetermination"
2007-08-07 09:22:56,398 [http-0.0.0.0-8080-1] DEBUG org.apache.axis2.engine.Phase  - [MessageContext:
logID=urn:uuid:4E6BDFA81F1A9C678E1186503776433] Invoking phase "PolicyDetermination"
2007-08-07 09:22:56,398 [http-0.0.0.0-8080-1] DEBUG org.apache.axis2.engine.Phase  - [MessageContext:
logID=urn:uuid:4E6BDFA81F1A9C678E1186503776433] Checking post-conditions for phase "PolicyDetermination"
2007-08-07 09:22:56,398 [http-0.0.0.0-8080-1] DEBUG org.apache.axis2.engine.Phase  - [MessageContext:
logID=urn:uuid:4E6BDFA81F1A9C678E1186503776433] Checking pre-condition for Phase "MessageOut"
2007-08-07 09:22:56,398 [http-0.0.0.0-8080-1] DEBUG org.apache.axis2.engine.Phase  - [MessageContext:
logID=urn:uuid:4E6BDFA81F1A9C678E1186503776433] Invoking phase "MessageOut"
2007-08-07 09:22:56,399 [http-0.0.0.0-8080-1] DEBUG org.apache.axis2.engine.Phase  - [MessageContext:
logID=urn:uuid:4E6BDFA81F1A9C678E1186503776433] Invoking Handler 'AddressingOutHandler' in
Phase 'MessageOut'
2007-08-07 09:22:56,399 [http-0.0.0.0-8080-1] DEBUG org.apache.axis2.engine.Phase  - [MessageContext:
logID=urn:uuid:4E6BDFA81F1A9C678E1186503776433] Checking post-conditions for phase "MessageOut"
2007-08-07 09:22:56,421 [http-0.0.0.0-8080-1] DEBUG org.apache.axis2.transport.http.SOAPMessageFormatter
 - contentType from the OMOutputFormat =text/xml
2007-08-07 09:22:56,424 [http-0.0.0.0-8080-1] DEBUG org.apache.axis2.transport.http.SOAPMessageFormatter
 - contentType returned =text/xml; charset=UTF-8
2007-08-07 09:22:56,425 [http-0.0.0.0-8080-1] DEBUG org.apache.axis2.transport.http.SOAPMessageFormatter
 - start writeTo()
2007-08-07 09:22:56,426 [http-0.0.0.0-8080-1] DEBUG org.apache.axis2.transport.http.SOAPMessageFormatter
 -   preserve=false
2007-08-07 09:22:56,428 [http-0.0.0.0-8080-1] DEBUG org.apache.axis2.transport.http.SOAPMessageFormatter
 -   isOptimized=false
2007-08-07 09:22:56,429 [http-0.0.0.0-8080-1] DEBUG org.apache.axis2.transport.http.SOAPMessageFormatter
 -   isDoingSWA=false
2007-08-07 09:22:56,492 [http-0.0.0.0-8080-1] DEBUG org.apache.axiom.om.util.StAXUtils  -
XMLStreamWriter is com.ctc.wstx.sw.SimpleNsStreamWriter
2007-08-07 09:22:56,537 [http-0.0.0.0-8080-1] DEBUG org.apache.axis2.transport.http.SOAPMessageFormatter
 - end writeTo()
2007-08-07 09:22:56,537 [http-0.0.0.0-8080-1] DEBUG org.apache.axis2.transport.TransportUtils
 - Found RequestResponseTransport setting response written
2007-08-07 09:22:56,538 [http-0.0.0.0-8080-1] DEBUG org.apache.axis2.engine.Phase  - [MessageContext:
logID=urn:uuid:4E6BDFA81F1A9C678E1186503776433] Invoking flowComplete() in Phase "MessageOut"
2007-08-07 09:22:56,538 [http-0.0.0.0-8080-1] DEBUG org.apache.axis2.engine.Phase  - [MessageContext:
logID=urn:uuid:4E6BDFA81F1A9C678E1186503776433] Invoking flowComplete() for Handler 'AddressingOutHandler'
in Phase 'MessageOut'
2007-08-07 09:22:56,538 [http-0.0.0.0-8080-1] DEBUG org.apache.axis2.engine.Phase  - [MessageContext:
logID=urn:uuid:4E6BDFA81F1A9C678E1186503776433] Invoking flowComplete() in Phase "PolicyDetermination"
2007-08-07 09:22:56,538 [http-0.0.0.0-8080-1] DEBUG org.apache.axis2.engine.Phase  - [MessageContext:
logID=urn:uuid:4E6BDFA81F1A9C678E1186503776433] Invoking flowComplete() in Phase "OperationOutFaultPhase"
2007-08-07 09:22:56,538 [http-0.0.0.0-8080-1] DEBUG org.apache.axis2.engine.Phase  - [MessageContext:
logID=urn:uuid:4E6BDFA81F1A9C678E1186503776433] Invoking flowComplete() in Phase "soapmonitorPhase"
2007-08-07 09:22:56,539 [http-0.0.0.0-8080-1] DEBUG org.apache.axis2.transport.TransportUtils
 - Entering deleteAttachments()
2007-08-07 09:22:56,595 [http-0.0.0.0-8080-1] DEBUG org.apache.axis2.transport.TransportUtils
 - Exiting deleteAttachments()
2007-08-07 10:00:58,264 [pool-13-thread-42] INFO  org.hibernate.event.def.DefaultDeleteEventListener
 - handling transient entity in delete processing


Thanks
Raghu

> invoking webservices client from another environment is getting org.apache.axis2.AxisFault:
First Element must contain the local name, Envelope
> -----------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-2352
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2352
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: client-api, codegen, wsdl
>    Affects Versions: 1.3
>         Environment: Linux, JDK 1.5.0_06, JBoss App Server.
>            Reporter: Raghu
>            Assignee: Amila Chinthaka Suriarachchi
>            Priority: Blocker
>             Fix For: 1.3
>
>         Attachments: axis2.log, TestWS.zip
>
>
>  This does not seem to be related to the REST problem mentioned in some of the other
issues. since on the server side (a non-Axis server) I see the following:
>  POST / HTTP/1.1
> SOAPAction: "bookstore.echoMe"
> User-Agent: Axis2
> Host: localhost:4444
> Transfer-Encoding: chunked
> Content-Type: text/xml; charset=UTF-8
> [Fatal Error] :-1:-1: Premature end of file.
> This is the process I followed:
> I installed the said version of Axis2 today.
> I have my own wsdl (produced below).
> I set up JAVA_HOME, AXIS2_HOME.
> Then I ran:
> c:\axis2-1.1.1\bin\wsdl2java.bat -f -d xmlbeans -uri c:\wsdl\bookstore.wsdl
> which produced dirs/files under my current directory.
> Then I wrote a client class to invoke the operation (produced below).
> When I run it I get this exception on the client side I get the following exception.
> org.apache.axis2.AxisFault: First Element must contain the local name, Envelope; nested
exception is: 
> 	org.apache.axiom.soap.SOAPProcessingException: First Element must contain the local
name, Envelope
> 	at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:126)
> 	at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:67)
> 	at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:252)
> 	at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:202)
> 	at bookstore.BookstoreStub.echoMe(BookstoreStub.java:141)
> 	at client_pkg.MyAxisClient.thisEchoMe(MyAxisClient.java:43)
> 	at client_pkg.MyAxisClient.main(MyAxisClient.java:22)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:324)
> 	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:78)
> Caused by: org.apache.axiom.soap.SOAPProcessingException: First Element must contain
the local name, Envelope
> 	at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.constructNode(StAXSOAPModelBuilder.java:217)
> 	at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.createOMElement(StAXSOAPModelBuilder.java:175)
> 	at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:120)
> 	at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope(StAXSOAPModelBuilder.java:159)
> 	at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.identifySOAPVersion(StAXSOAPModelBuilder.java:133)
> 	at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.<init>(StAXSOAPModelBuilder.java:108)
> 	at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:120)
> 	... 11 more
> Here is the wsdl file:
> <definitions name="bookstoredefinitions" targetNamespace="bookstore" xmlns:tns="bookstore"
xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
>   <types>
>     <xsd:schema targetNamespace="bookstore"  elementFormDefault="qualified" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:tns="bookstore">
>       <xsd:element name="echoMe">
>         <xsd:complexType>
>           <xsd:sequence>
>             <xsd:element name="AuthorName">
>               <xsd:complexType>
> 	        <xsd:attribute name="Value" type="xsd:string"/>	                   
>               </xsd:complexType>
>             </xsd:element>
>             <xsd:element name="BookName">
>               <xsd:complexType>
>                 <xsd:attribute name="Value" type="xsd:string"/>               
>               </xsd:complexType>
>             </xsd:element>
>           </xsd:sequence>
>         </xsd:complexType>
>       </xsd:element>
>       <xsd:element name="echoMeResponse">
>         <xsd:complexType>
>           <xsd:sequence>
>             <xsd:element name="AuthorName">
>               <xsd:complexType>
> 	          <xsd:attribute name="Value" type="xsd:string"/>	                   

>               </xsd:complexType>
>             </xsd:element>
>             <xsd:element name="BookName">
>               <xsd:complexType>
> 	          <xsd:attribute name="Value" type="xsd:string"/>
>               </xsd:complexType>
>             </xsd:element>
>           </xsd:sequence>
>         </xsd:complexType>
>       </xsd:element>
>     </xsd:schema>
>   </types>
>   <message name="echoMe">
>     <part name="parameters" element="tns:echoMe"/>
>   </message>
>   <message name="echoMeResponse">
>     <part name="parameters" element="tns:echoMeResponse"/>
>   </message>
>   <portType name="bookstoreportType">
>     <operation name="echoMe">
>       <input message="tns:echoMe" />
>       <output message="tns:echoMeResponse" />
>     </operation>
>   </portType>
>   <binding name="bookstorebinding" type="tns:bookstoreportType">
>     <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
>     <operation name="echoMe">
>       <soap:operation soapAction="bookstore.echoMe"/>
>       <input>
>         <soap:body use="literal"/>
>       </input>
>       <output>
>         <soap:body use="literal"/>
>       </output>
>     </operation>
>   </binding>
>   <service name="bookstore">
>     <port binding="tns:bookstorebinding" name="bookstoreport">
>       <soap:address location="http://localhost:4444"/>
>     </port>
>   </service>
> </definitions>
> Is there a way I can include all the generated files?
> Here is the client code:
> package client_pkg;
> import bookstore.BookstoreStub;
> import bookstore.EchoMeDocument;
> import bookstore.EchoMeResponseDocument;
> import bookstore.impl.EchoMeDocumentImpl;
> import org.apache.xmlbeans.XmlOptions;
> public class MyAxisClient
> {
>   public static void main( String args[] ) throws Exception
>   {
>     BookstoreStub stub = new BookstoreStub();
>     
>     thisEchoMe(stub);
>   }
>   
>   public static void thisEchoMe(BookstoreStub stub)
>   {
>     try {
>       EchoMeDocument reqDoc = EchoMeDocument.Factory.newInstance();
>       EchoMeDocument.EchoMe req = reqDoc.addNewEchoMe();
>             
>       EchoMeDocument.EchoMe.AuthorName aname = req.addNewAuthorName();
>       aname.setValue("AuthorZ");
>       
>       EchoMeDocument.EchoMe.BookName bname = req.addNewBookName();
>       bname.setValue("BookZ");
>       
>       stub.echoMe(reqDoc);
>       
>     }
>     catch (Exception e)
>     {
>       e.printStackTrace();
>       System.out.println("\n\n\n");
>     }
>   }
>   
> }
> Please let me know if you need to know anything else.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


Mime
View raw message