You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Denis Orlov (JIRA)" <ji...@apache.org> on 2006/06/04 08:57:35 UTC

[jira] Created: (AXIS2-802) Possible header formation bug

Possible header formation bug
-----------------------------

         Key: AXIS2-802
         URL: http://issues.apache.org/jira/browse/AXIS2-802
     Project: Apache Axis 2.0 (Axis2)
        Type: Bug

  Components: core  
    Versions: 1.0    
 Environment: Linux Fedora Core 5, JBoss 4.1
    Reporter: Denis Orlov


I am trying to test a service with the header. I auto generated stubs
and every time I invoke the service it returns the following message:

org.apache.axis2.AxisFault: SOAPEnvelope must contain a body element
which is either first or second child element of the SOAPEnvelope.

The service works fine if the header is not set. The header is a simple
object with 3 string fields. I do not have a header handler on the
server side.

Here is the SOAP message:

<?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header><ns1:ProcessFlowContext xmlns:ns1="http://tests.ws.dbvr.com/types"><id>111111111</id><user>ege</user><pswd>hh</pswd></ns1:ProcessFlowContext></soapenv:Header><soapenv:Body><ns1:msg xmlns:ns1="http://tests.ws.dbvr.com/types"><token>erewtr4</token><phone>sfddffcew</phone><message>efewfde</message></ns1:msg></soapenv:Body></soapenv:Envelope>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Commented: (AXIS2-802) Possible header formation bug

Posted by "Matthias Göttler (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-802?page=comments#action_12421813 ] 
            
Matthias Göttler commented on AXIS2-802:
----------------------------------------

Maybe not really fitting to the situation explained in the original description, but we experienced the named exception ("org.apache.axis2.AxisFault: SOAPEnvelope must contain a body element which is either first or second child element of the SOAPEnvelope.") when using an Axis2 host with JMeter as a client.
The solution was that JMeter as a default set the "Content-Type" for the SOAP-Request-Header to "text/html". Manually setting it to "text/xml" in JMeter fixed the problem.

Greetings,
Matthias

> Possible header formation bug
> -----------------------------
>
>                 Key: AXIS2-802
>                 URL: http://issues.apache.org/jira/browse/AXIS2-802
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.0
>         Environment: Linux Fedora Core 5, JBoss 4.1
>            Reporter: Denis Orlov
>
> I am trying to test a service with the header. I auto generated stubs
> and every time I invoke the service it returns the following message:
> org.apache.axis2.AxisFault: SOAPEnvelope must contain a body element
> which is either first or second child element of the SOAPEnvelope.
> The service works fine if the header is not set. The header is a simple
> object with 3 string fields. I do not have a header handler on the
> server side.
> Here is the SOAP message:
> <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header><ns1:ProcessFlowContext xmlns:ns1="http://tests.ws.dbvr.com/types"><id>111111111</id><user>ege</user><pswd>hh</pswd></ns1:ProcessFlowContext></soapenv:Header><soapenv:Body><ns1:msg xmlns:ns1="http://tests.ws.dbvr.com/types"><token>erewtr4</token><phone>sfddffcew</phone><message>efewfde</message></ns1:msg></soapenv:Body></soapenv:Envelope>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

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


[jira] Updated: (AXIS2-802) Possible header formation bug

Posted by "Eran Chinthaka (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-802?page=all ]

Eran Chinthaka updated AXIS2-802:
---------------------------------

    Comment: was deleted

> Possible header formation bug
> -----------------------------
>
>                 Key: AXIS2-802
>                 URL: http://issues.apache.org/jira/browse/AXIS2-802
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.0
>         Environment: Linux Fedora Core 5, JBoss 4.1
>            Reporter: Denis Orlov
>
> I am trying to test a service with the header. I auto generated stubs
> and every time I invoke the service it returns the following message:
> org.apache.axis2.AxisFault: SOAPEnvelope must contain a body element
> which is either first or second child element of the SOAPEnvelope.
> The service works fine if the header is not set. The header is a simple
> object with 3 string fields. I do not have a header handler on the
> server side.
> Here is the SOAP message:
> <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header><ns1:ProcessFlowContext xmlns:ns1="http://tests.ws.dbvr.com/types"><id>111111111</id><user>ege</user><pswd>hh</pswd></ns1:ProcessFlowContext></soapenv:Header><soapenv:Body><ns1:msg xmlns:ns1="http://tests.ws.dbvr.com/types"><token>erewtr4</token><phone>sfddffcew</phone><message>efewfde</message></ns1:msg></soapenv:Body></soapenv:Envelope>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Commented: (AXIS2-802) Possible header formation bug

Posted by "Eran Chinthaka (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-802?page=comments#action_12422618 ] 
            
Eran Chinthaka commented on AXIS2-802:
--------------------------------------

Seems the issue is fixed once user sets the current content type

> Possible header formation bug
> -----------------------------
>
>                 Key: AXIS2-802
>                 URL: http://issues.apache.org/jira/browse/AXIS2-802
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.0
>         Environment: Linux Fedora Core 5, JBoss 4.1
>            Reporter: Denis Orlov
>
> I am trying to test a service with the header. I auto generated stubs
> and every time I invoke the service it returns the following message:
> org.apache.axis2.AxisFault: SOAPEnvelope must contain a body element
> which is either first or second child element of the SOAPEnvelope.
> The service works fine if the header is not set. The header is a simple
> object with 3 string fields. I do not have a header handler on the
> server side.
> Here is the SOAP message:
> <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header><ns1:ProcessFlowContext xmlns:ns1="http://tests.ws.dbvr.com/types"><id>111111111</id><user>ege</user><pswd>hh</pswd></ns1:ProcessFlowContext></soapenv:Header><soapenv:Body><ns1:msg xmlns:ns1="http://tests.ws.dbvr.com/types"><token>erewtr4</token><phone>sfddffcew</phone><message>efewfde</message></ns1:msg></soapenv:Body></soapenv:Envelope>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Commented: (AXIS2-802) Possible header formation bug

Posted by "Eran Chinthaka (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-802?page=comments#action_12422619 ] 
            
Eran Chinthaka commented on AXIS2-802:
--------------------------------------

Seems the issue is fixed once user sets the correct content type

> Possible header formation bug
> -----------------------------
>
>                 Key: AXIS2-802
>                 URL: http://issues.apache.org/jira/browse/AXIS2-802
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.0
>         Environment: Linux Fedora Core 5, JBoss 4.1
>            Reporter: Denis Orlov
>
> I am trying to test a service with the header. I auto generated stubs
> and every time I invoke the service it returns the following message:
> org.apache.axis2.AxisFault: SOAPEnvelope must contain a body element
> which is either first or second child element of the SOAPEnvelope.
> The service works fine if the header is not set. The header is a simple
> object with 3 string fields. I do not have a header handler on the
> server side.
> Here is the SOAP message:
> <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header><ns1:ProcessFlowContext xmlns:ns1="http://tests.ws.dbvr.com/types"><id>111111111</id><user>ege</user><pswd>hh</pswd></ns1:ProcessFlowContext></soapenv:Header><soapenv:Body><ns1:msg xmlns:ns1="http://tests.ws.dbvr.com/types"><token>erewtr4</token><phone>sfddffcew</phone><message>efewfde</message></ns1:msg></soapenv:Body></soapenv:Envelope>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Updated: (AXIS2-802) Possible header formation bug

Posted by "Eran Chinthaka (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-802?page=all ]

Eran Chinthaka updated AXIS2-802:
---------------------------------

    Comment: was deleted

> Possible header formation bug
> -----------------------------
>
>                 Key: AXIS2-802
>                 URL: http://issues.apache.org/jira/browse/AXIS2-802
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.0
>         Environment: Linux Fedora Core 5, JBoss 4.1
>            Reporter: Denis Orlov
>
> I am trying to test a service with the header. I auto generated stubs
> and every time I invoke the service it returns the following message:
> org.apache.axis2.AxisFault: SOAPEnvelope must contain a body element
> which is either first or second child element of the SOAPEnvelope.
> The service works fine if the header is not set. The header is a simple
> object with 3 string fields. I do not have a header handler on the
> server side.
> Here is the SOAP message:
> <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header><ns1:ProcessFlowContext xmlns:ns1="http://tests.ws.dbvr.com/types"><id>111111111</id><user>ege</user><pswd>hh</pswd></ns1:ProcessFlowContext></soapenv:Header><soapenv:Body><ns1:msg xmlns:ns1="http://tests.ws.dbvr.com/types"><token>erewtr4</token><phone>sfddffcew</phone><message>efewfde</message></ns1:msg></soapenv:Body></soapenv:Envelope>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Updated: (AXIS2-802) Possible header formation bug

Posted by "Eran Chinthaka (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-802?page=all ]

Eran Chinthaka updated AXIS2-802:
---------------------------------

    Comment: was deleted

> Possible header formation bug
> -----------------------------
>
>                 Key: AXIS2-802
>                 URL: http://issues.apache.org/jira/browse/AXIS2-802
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.0
>         Environment: Linux Fedora Core 5, JBoss 4.1
>            Reporter: Denis Orlov
>
> I am trying to test a service with the header. I auto generated stubs
> and every time I invoke the service it returns the following message:
> org.apache.axis2.AxisFault: SOAPEnvelope must contain a body element
> which is either first or second child element of the SOAPEnvelope.
> The service works fine if the header is not set. The header is a simple
> object with 3 string fields. I do not have a header handler on the
> server side.
> Here is the SOAP message:
> <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header><ns1:ProcessFlowContext xmlns:ns1="http://tests.ws.dbvr.com/types"><id>111111111</id><user>ege</user><pswd>hh</pswd></ns1:ProcessFlowContext></soapenv:Header><soapenv:Body><ns1:msg xmlns:ns1="http://tests.ws.dbvr.com/types"><token>erewtr4</token><phone>sfddffcew</phone><message>efewfde</message></ns1:msg></soapenv:Body></soapenv:Envelope>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Commented: (AXIS2-802) Possible header formation bug

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-802?page=comments#action_12415932 ] 

Davanum Srinivas commented on AXIS2-802:
----------------------------------------

Can u please post the whole stack trace? may be a test case for us to recreate the problem as well? Alternatively, please try the nightly builds (http://people.apache.org/dist/axis2/nightly/)

thanks,
dims

> Possible header formation bug
> -----------------------------
>
>          Key: AXIS2-802
>          URL: http://issues.apache.org/jira/browse/AXIS2-802
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug

>   Components: core
>     Versions: 1.0
>  Environment: Linux Fedora Core 5, JBoss 4.1
>     Reporter: Denis Orlov

>
> I am trying to test a service with the header. I auto generated stubs
> and every time I invoke the service it returns the following message:
> org.apache.axis2.AxisFault: SOAPEnvelope must contain a body element
> which is either first or second child element of the SOAPEnvelope.
> The service works fine if the header is not set. The header is a simple
> object with 3 string fields. I do not have a header handler on the
> server side.
> Here is the SOAP message:
> <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header><ns1:ProcessFlowContext xmlns:ns1="http://tests.ws.dbvr.com/types"><id>111111111</id><user>ege</user><pswd>hh</pswd></ns1:ProcessFlowContext></soapenv:Header><soapenv:Body><ns1:msg xmlns:ns1="http://tests.ws.dbvr.com/types"><token>erewtr4</token><phone>sfddffcew</phone><message>efewfde</message></ns1:msg></soapenv:Body></soapenv:Envelope>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Resolved: (AXIS2-802) Possible header formation bug

Posted by "Eran Chinthaka (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-802?page=all ]

Eran Chinthaka resolved AXIS2-802.
----------------------------------

    Resolution: Fixed

Seems the issue is fixed once user sets the current content type

> Possible header formation bug
> -----------------------------
>
>                 Key: AXIS2-802
>                 URL: http://issues.apache.org/jira/browse/AXIS2-802
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.0
>         Environment: Linux Fedora Core 5, JBoss 4.1
>            Reporter: Denis Orlov
>
> I am trying to test a service with the header. I auto generated stubs
> and every time I invoke the service it returns the following message:
> org.apache.axis2.AxisFault: SOAPEnvelope must contain a body element
> which is either first or second child element of the SOAPEnvelope.
> The service works fine if the header is not set. The header is a simple
> object with 3 string fields. I do not have a header handler on the
> server side.
> Here is the SOAP message:
> <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header><ns1:ProcessFlowContext xmlns:ns1="http://tests.ws.dbvr.com/types"><id>111111111</id><user>ege</user><pswd>hh</pswd></ns1:ProcessFlowContext></soapenv:Header><soapenv:Body><ns1:msg xmlns:ns1="http://tests.ws.dbvr.com/types"><token>erewtr4</token><phone>sfddffcew</phone><message>efewfde</message></ns1:msg></soapenv:Body></soapenv:Envelope>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Commented: (AXIS2-802) Possible header formation bug

Posted by "Eran Chinthaka (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-802?page=comments#action_12422615 ] 
            
Eran Chinthaka commented on AXIS2-802:
--------------------------------------

s/current/correct

> Possible header formation bug
> -----------------------------
>
>                 Key: AXIS2-802
>                 URL: http://issues.apache.org/jira/browse/AXIS2-802
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.0
>         Environment: Linux Fedora Core 5, JBoss 4.1
>            Reporter: Denis Orlov
>
> I am trying to test a service with the header. I auto generated stubs
> and every time I invoke the service it returns the following message:
> org.apache.axis2.AxisFault: SOAPEnvelope must contain a body element
> which is either first or second child element of the SOAPEnvelope.
> The service works fine if the header is not set. The header is a simple
> object with 3 string fields. I do not have a header handler on the
> server side.
> Here is the SOAP message:
> <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header><ns1:ProcessFlowContext xmlns:ns1="http://tests.ws.dbvr.com/types"><id>111111111</id><user>ege</user><pswd>hh</pswd></ns1:ProcessFlowContext></soapenv:Header><soapenv:Body><ns1:msg xmlns:ns1="http://tests.ws.dbvr.com/types"><token>erewtr4</token><phone>sfddffcew</phone><message>efewfde</message></ns1:msg></soapenv:Body></soapenv:Envelope>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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