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 "Raghu (JIRA)" <ji...@apache.org> on 2007/03/20 03:10:32 UTC

[jira] Created: (AXIS2-2352) XMLBeans client getting org.apache.axis2.AxisFault: First Element must contain the local name, Envelope

XMLBeans client 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.1.1
         Environment: Windows XP, JDK 1.4.2_09
            Reporter: Raghu


 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


[jira] Commented: (AXIS2-2352) XMLBeans client getting org.apache.axis2.AxisFault: First Element must contain the local name, Envelope

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12509232 ] 

Davanum Srinivas commented on AXIS2-2352:
-----------------------------------------

I believe the server is probably throwing up a html error page. Please use tcpmon to capture the soap request response:
http://ws.apache.org/commons/tcpmon/

or use this tip to capture the request response.
http://wso2.org/blog/dims/1554

thanks,
dims

> XMLBeans client 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.1.1
>         Environment: Windows XP, JDK 1.4.2_09
>            Reporter: Raghu
>            Assignee: Davanum Srinivas
>            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


[jira] Commented: (AXIS2-2352) XMLBeans client getting org.apache.axis2.AxisFault: First Element must contain the local name, Envelope

Posted by "Raghu Upadhyayula (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12509934 ] 

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

Hi Dims,

         I'm using Axis2 1.2 version not 1.1.1

thanks
Raghu

> XMLBeans client 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.1.1
>         Environment: Windows XP, JDK 1.4.2_09
>            Reporter: Raghu
>            Assignee: Davanum Srinivas
>            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


[jira] Resolved: (AXIS2-2352) XMLBeans client getting org.apache.axis2.AxisFault: First Element must contain the local name, Envelope

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2352?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Davanum Srinivas resolved AXIS2-2352.
-------------------------------------

    Resolution: Invalid

> XMLBeans client 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.1.1
>         Environment: Windows XP, JDK 1.4.2_09
>            Reporter: Raghu
>            Assignee: Davanum Srinivas
>            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


[jira] Commented: (AXIS2-2352) XMLBeans client getting org.apache.axis2.AxisFault: First Element must contain the local name, Envelope

Posted by "Raghu Upadhyayula (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12507932 ] 

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

Hi,

            When I deploy my webservices on my localhost (desktop) and 
test it using a java client, it is working fine.

            But when the same webservices project is built & deployed 
on our development server and tested using java client, I'm getting 
the below exception.

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(TransportUtils.java:81)
        at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:356)
        at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:294)
        at com.rsys.ws.client.ResponsysWSServiceStub.login(ResponsysWSServiceStub.java: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.java: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(StAXSOAPModelBuilder.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:135)
        at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope(StAXSOAPModelBuilder.java:163)
        at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.<init>(StAXSOAPModelBuilder.java:111)
        at org.apache.axis2.builder.BuilderUtil.getSOAPBuilder(BuilderUtil.java:474)
        at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:142)
        at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:77)
        ... 6 more

            Does anyone tell me why this is happening?

            I'm using Axis2 deployed in Jboss.

Thanks
Raghu


> XMLBeans client 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.1.1
>         Environment: Windows XP, JDK 1.4.2_09
>            Reporter: Raghu
>            Assignee: Davanum Srinivas
>            Priority: Blocker
>             Fix For: 1.3
>
>
>  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


[jira] Updated: (AXIS2-2352) XMLBeans client getting org.apache.axis2.AxisFault: First Element must contain the local name, Envelope

Posted by "Raghu Upadhyayula (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2352?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Raghu Upadhyayula updated AXIS2-2352:
-------------------------------------

    Comment: was deleted

> XMLBeans client 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.1.1
>         Environment: Windows XP, JDK 1.4.2_09
>            Reporter: Raghu
>            Assignee: Davanum Srinivas
>            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


[jira] Assigned: (AXIS2-2352) XMLBeans client getting org.apache.axis2.AxisFault: First Element must contain the local name, Envelope

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2352?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Davanum Srinivas reassigned AXIS2-2352:
---------------------------------------

    Assignee: Davanum Srinivas

> XMLBeans client 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.1.1
>         Environment: Windows XP, JDK 1.4.2_09
>            Reporter: Raghu
>         Assigned To: Davanum Srinivas
>
>  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


[jira] Commented: (AXIS2-2352) invoking webservices client from another environment is getting org.apache.axis2.AxisFault: First Element must contain the local name, Envelope

Posted by "Raghu Upadhyayula (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12517978 ] 

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

Dims,

    I've checked JBoss logs i didn't find anything about the NPE.  Where can i get the nightly dist of 1.3-SNAPSHOT?  As  you suggested I want to try with the nightly 1.3-SNAPSHOT

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


[jira] Updated: (AXIS2-2352) XMLBeans client getting org.apache.axis2.AxisFault: First Element must contain the local name, Envelope

Posted by "Raghu Upadhyayula (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2352?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Raghu Upadhyayula updated AXIS2-2352:
-------------------------------------

    Attachment:     (was: axis2.log)

> XMLBeans client 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.1.1
>         Environment: Windows XP, JDK 1.4.2_09
>            Reporter: Raghu
>            Assignee: Davanum Srinivas
>            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


[jira] Commented: (AXIS2-2352) XMLBeans client getting org.apache.axis2.AxisFault: First Element must contain the local name, Envelope

Posted by "Jay Howard (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12510499 ] 

Jay Howard commented on AXIS2-2352:
-----------------------------------

I'm seeing the same thing with a client generated via wsdl2java.  Client code is run on OSX w/ Java 1.5.  The remote service uses Axis2 1.2 inside Tomcat 5.5 on Linux w/ Java 6.

> XMLBeans client 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.2
>         Environment: Windows XP, JDK 1.4.2_09
>            Reporter: Raghu
>            Assignee: Davanum Srinivas
>            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


[jira] Commented: (AXIS2-2352) invoking webservices client from another environment is getting org.apache.axis2.AxisFault: First Element must contain the local name, Envelope

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12517684 ] 

Davanum Srinivas commented on AXIS2-2352:
-----------------------------------------

Can you please check your tomcat logs for any additional information regarding the NPE?

thanks,
dims

> 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


[jira] Commented: (AXIS2-2352) XMLBeans client getting org.apache.axis2.AxisFault: First Element must contain the local name, Envelope

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12516340 ] 

Amila Chinthaka Suriarachchi commented on AXIS2-2352:
-----------------------------------------------------

I tested this with the current code base in branch. (please use a nighly build) and it worked fine with you given client. I used the following code to generate the response.

EchoMeResponseDocument echoMeResponseDocument = EchoMeResponseDocument.Factory.newInstance();
                EchoMeResponseDocument.EchoMeResponse echoMeResponse = echoMeResponseDocument.addNewEchoMeResponse();
                EchoMeResponseDocument.EchoMeResponse.AuthorName authorName = echoMeResponse.addNewAuthorName();
                authorName.setValue("amila");
                EchoMeResponseDocument.EchoMeResponse.BookName bookName =  echoMeResponse.addNewBookName();
                bookName.setValue("java");
                return echoMeResponseDocument;

if the problme still exists please attach the wsdl, client and skelton.

> XMLBeans client 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.2
>         Environment: Windows XP, JDK 1.4.2_09
>            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


[jira] Updated: (AXIS2-2352) XMLBeans client getting org.apache.axis2.AxisFault: First Element must contain the local name, Envelope

Posted by "Raghu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2352?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Raghu updated AXIS2-2352:
-------------------------


Then I tried the AXIOM model for the client (server is still non-Axiom):

  public static void tryAxiomClient()
  {
    try {
      OMElement getBookPayload = getBookPayload("Imauthor", "ImTitle");
      Options options = new Options();
      options.setTo(targetEPR);
      options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
      
      ServiceClient sender = new ServiceClient();
      sender.setOptions(options);
      System.err.println("payload: " + getBookPayload.toString());      
      OMElement result = sender.sendReceive(getBookPayload);
      
      //String response = result.getFirstElement().getText();
      System.err.println("Response: " + result.toString());
      
    } catch (Exception e) {
      e.printStackTrace();
    }
  }
  
  public static OMElement getBookPayload(String author, String title) 
  {
    OMFactory fac = OMAbstractFactory.getOMFactory();
    OMNamespace omNs = fac.createOMNamespace(
            "bookstore", "tns");
    
    OMElement method = fac.createOMElement("echoMe", omNs);
    
    OMElement authorElement = fac.createOMElement("AuthorName", omNs);
    authorElement.addAttribute("Value", author, omNs);
    method.addChild(authorElement);
    
    OMElement titleElement = fac.createOMElement("TitleName", omNs);
    titleElement.addAttribute("Value", title, omNs);
    method.addChild(titleElement);
    return method;
  }

Here is the output of println of the payload:

payload: <tns:ehcoMe xmlns:tns="bookstore"><tns:AuthorName tns:Value="Imauthor" /><tns:TitleName tns:Value="ImTitle" /></tns:ehcoMe>


and the exception:

org.apache.axis2.AxisFault: Software caused connection abort: recv failed; nested exception is: 
	java.net.SocketException: Software caused connection abort: recv failed; nested exception is: 
	org.apache.axis2.AxisFault: Software caused connection abort: recv failed; nested exception is: 
	java.net.SocketException: Software caused connection abort: recv failed
	at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:227)
	at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:674)
	at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:237)
	at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:202)
	at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:579)
	at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:508)
	at client_pkg.ABPPAxisClient.tryAxiomClient(ABPPAxisClient.java:49)
	at client_pkg.ABPPAxisClient.main(ABPPAxisClient.java:35)
	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.axis2.AxisFault: Software caused connection abort: recv failed; nested exception is: 
	java.net.SocketException: Software caused connection abort: recv failed
	at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:344)
	at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:204)
	... 12 more
Caused by: java.net.SocketException: Software caused connection abort: recv failed
	at java.net.SocketInputStream.socketRead0(Native Method)
	at java.net.SocketInputStream.read(SocketInputStream.java:129)
	at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
	at java.io.BufferedInputStream.read(BufferedInputStream.java:201)
	at org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:77)
	at org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:105)
	at org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1115)
	at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1832)
	at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1590)
	at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:995)
	at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397)
	at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
	at org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:541)
	at org.apache.axis2.transport.http.SOAPOverHTTPSender.send(SOAPOverHTTPSender.java:119)
	at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:335)
	... 13 more





> XMLBeans client 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.1.1
>         Environment: Windows XP, JDK 1.4.2_09
>            Reporter: Raghu
>
>  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


[jira] Resolved: (AXIS2-2352) XMLBeans client getting org.apache.axis2.AxisFault: First Element must contain the local name, Envelope

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2352?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Davanum Srinivas resolved AXIS2-2352.
-------------------------------------

    Resolution: Fixed

> XMLBeans client 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.2
>         Environment: Windows XP, JDK 1.4.2_09
>            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


[jira] Commented: (AXIS2-2352) invoking webservices client from another environment is getting org.apache.axis2.AxisFault: First Element must contain the local name, Envelope

Posted by "Raghu Upadhyayula (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12518571 ] 

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

Hi Dims,

                Good News.  My web services is working in all the other environments.  It was my mistake that I thought it was an Axis issue, because the exception we were getting back was a NullPointerException in AxisServlet.java, and also I've seen couple other members on the forum having the same issue.

         The actual problem is that, one of my methods, was failing and was throwing a LoginFaultExceptino (my custom fault) which has an ExceptionCode & ExceptionMessage that are null.

         I'm not sure why this is throwing an NPE in AxisServlet.java (Axis2 1.2) and an NPE in ResponsysWSServiceMessageReceiverInOut.java(Axis2 1.3 SNAPSHOT)

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


[jira] Updated: (AXIS2-2352) XMLBeans client getting org.apache.axis2.AxisFault: First Element must contain the local name, Envelope

Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2352?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Deepal Jayasinghe updated AXIS2-2352:
-------------------------------------

    Priority: Blocker  (was: Major)

> XMLBeans client 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.1.1
>         Environment: Windows XP, JDK 1.4.2_09
>            Reporter: Raghu
>            Assignee: Davanum Srinivas
>            Priority: Blocker
>
>  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


[jira] Commented: (AXIS2-2352) invoking webservices client from another environment is getting org.apache.axis2.AxisFault: First Element must contain the local name, Envelope

Posted by "Raghu Upadhyayula (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12517982 ] 

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

Dims,

           I found the 1.3-SNAPSHOT distribution.  I will try it and post the results.

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


[jira] Reopened: (AXIS2-2352) XMLBeans client getting org.apache.axis2.AxisFault: First Element must contain the local name, Envelope

Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2352?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Deepal Jayasinghe reopened AXIS2-2352:
--------------------------------------

      Assignee: Amila Chinthaka Suriarachchi  (was: Davanum Srinivas)

Seems like we still have the issue, Amila any idea abt this ?

Thanks
Deepal

> XMLBeans client 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.2
>         Environment: Windows XP, JDK 1.4.2_09
>            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


[jira] Updated: (AXIS2-2352) XMLBeans client getting org.apache.axis2.AxisFault: First Element must contain the local name, Envelope

Posted by "Raghu Upadhyayula (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2352?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Raghu Upadhyayula updated AXIS2-2352:
-------------------------------------

    Attachment: axis2.log

Hi Dims,

        I've attached the axis2.log by enabling the log4j.  Please take a look at it and let me know, if you see any issues or need more info.


Thanks
Raghu

> XMLBeans client 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.1.1
>         Environment: Windows XP, JDK 1.4.2_09
>            Reporter: Raghu
>            Assignee: Davanum Srinivas
>            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


[jira] Updated: (AXIS2-2352) XMLBeans client getting org.apache.axis2.AxisFault: First Element must contain the local name, Envelope

Posted by "Raghu Upadhyayula (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2352?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Raghu Upadhyayula updated AXIS2-2352:
-------------------------------------

    Attachment: axis2.log

Hi Dims,

        I've attached the axis2.log by enabling the log4j.  Please take a look at it and let me know, if you see any issues or need more info.


Thanks
Raghu

> XMLBeans client 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.1.1
>         Environment: Windows XP, JDK 1.4.2_09
>            Reporter: Raghu
>            Assignee: Davanum Srinivas
>            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


[jira] Commented: (AXIS2-2352) XMLBeans client getting org.apache.axis2.AxisFault: First Element must contain the local name, Envelope

Posted by "Raghu Upadhyayula (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12509720 ] 

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

Hi Dims,

             I've captured the SOAP Request & Response using tcpmon.  Here is the request & Response.  It is throwing a NPE in AxisServlet.

Dev-Orion 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

Dev-Orion 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:#525D76;font-size:22px;} 
            H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} 
            H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;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:#525D76;} 
            P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size: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(ReplyHeaderFilter.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>


thanks
Raghu

> XMLBeans client 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.1.1
>         Environment: Windows XP, JDK 1.4.2_09
>            Reporter: Raghu
>            Assignee: Davanum Srinivas
>            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


[jira] Updated: (AXIS2-2352) invoking webservices client from another environment is getting org.apache.axis2.AxisFault: First Element must contain the local name, Envelope

Posted by "Raghu Upadhyayula (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2352?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Raghu Upadhyayula updated AXIS2-2352:
-------------------------------------

          Environment: Linux, JDK 1.5.0_06, JBoss App Server.  (was: Windows XP, JDK 1.4.2_09)
    Affects Version/s:     (was: 1.2)
                       1.3
              Summary: invoking webservices client from another environment is getting org.apache.axis2.AxisFault: First Element must contain the local name, Envelope  (was: XMLBeans client getting org.apache.axis2.AxisFault: First Element must contain the local name, Envelope)

Hi, 

           I tried this with Axis2 1.3 RC3 release jars.

            When I deploy my webservices on my desktop(windows xp) and test it using a java client, it is working fine. 

            But when the same webservices project is built & deployed in our test environment (linux) and tested using java client, I'm getting the below exception. 
           
           This AxisFault is thrown because the SOAP response is a html which says that there is a NullPointerException in AxisServlet.java : 171

        I'm attaching the zip file which contains the client code & the wsdl file. 

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(TransportUtils.java:81) 
        at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:356) 
        at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:294) 
        at com.rsys.ws.client.ResponsysWSServiceStub.login(ResponsysWSServiceStub.java: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.java: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(StAXSOAPModelBuilder.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:135) 
        at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope(StAXSOAPModelBuilder.java:163) 
        at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.<init>(StAXSOAPModelBuilder.java:111) 
        at org.apache.axis2.builder.BuilderUtil.getSOAPBuilder(BuilderUtil.java:474) 
        at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:142) 
        at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:77) 
        ... 6 more 

            I'm using Axis2 deployed in Jboss. 
            
            Here is the SOAP request & response to & from the test environment.


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
*******************
HTTP/1.1 500 Internal Server Error
Server: Apache-Coyote/1.1
Content-Type: text/html;charset=utf-8
Content-Length: 1462
Date: Fri, 03 Aug 2007 20:48:18 GMT
Connection: close

<html>
    <head>
        <title>Apache Tomcat/5.5.20 - Error report</title>
        <style>
            <!--
                H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} 
                H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} 
                H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;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:#525D76;} 
                P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size: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:171)
                    javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
                    javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
                    org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
            </pre>
        </p>
        <p>
            <b>note</b> 
            <u>The full stack trace of the root cause is available in the Apache Tomcat/5.5.20 logs.</u>
        </p>
        <HR size="1" noshade="noshade">
        <h3>Apache Tomcat/5.5.20</h3>
    </body>
</html>
           
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


[jira] Updated: (AXIS2-2352) XMLBeans client getting org.apache.axis2.AxisFault: First Element must contain the local name, Envelope

Posted by "Raghu Upadhyayula (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2352?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Raghu Upadhyayula updated AXIS2-2352:
-------------------------------------

    Affects Version/s:     (was: 1.1.1)
                       1.2

> XMLBeans client 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.2
>         Environment: Windows XP, JDK 1.4.2_09
>            Reporter: Raghu
>            Assignee: Davanum Srinivas
>            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


[jira] Commented: (AXIS2-2352) XMLBeans client getting org.apache.axis2.AxisFault: First Element must contain the local name, Envelope

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12516421 ] 

Davanum Srinivas commented on AXIS2-2352:
-----------------------------------------

Please test with nightly and reopen if necessary.

thanks,
dims

> XMLBeans client 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.2
>         Environment: Windows XP, JDK 1.4.2_09
>            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


[jira] Commented: (AXIS2-2352) XMLBeans client getting org.apache.axis2.AxisFault: First Element must contain the local name, Envelope

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12509723 ] 

Davanum Srinivas commented on AXIS2-2352:
-----------------------------------------

Are u sure you are using 1.1.1? I don't see any executable code in line 170

http://svn.apache.org/viewvc/webservices/axis2/tags/java/v1.1.1/modules/kernel/src/org/apache/axis2/transport/http/AxisServlet.java?annotate=494782

thanks,
dims

> XMLBeans client 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.1.1
>         Environment: Windows XP, JDK 1.4.2_09
>            Reporter: Raghu
>            Assignee: Davanum Srinivas
>            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


[jira] Commented: (AXIS2-2352) invoking webservices client from another environment is getting org.apache.axis2.AxisFault: First Element must contain the local name, Envelope

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12517685 ] 

Davanum Srinivas commented on AXIS2-2352:
-----------------------------------------

Raghu,

Please pick up a nightly dist of 1.3-SNAPHOT and try. I think i found the potential source of the NPE. 

http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_3/modules/kernel/src/org/apache/axis2/transport/http/AxisServlet.java?r1=562650&r2=562649&pathrev=562650

thanks,
dims

> 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


[jira] Updated: (AXIS2-2352) XMLBeans client getting org.apache.axis2.AxisFault: First Element must contain the local name, Envelope

Posted by "Raghu Upadhyayula (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2352?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Raghu Upadhyayula updated AXIS2-2352:
-------------------------------------

    Attachment: TestWS.zip

Hi, 

            When I deploy my webservices on my localhost (desktop) and 
test it using a java client, it is working fine. 

            But when the same webservices project is built & deployed 
on our development server and tested using java client, I'm getting 
the below exception. 

        I'm attaching the zip file which contains the client code & the wsdl file.

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(TransportUtils.java:81) 
        at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:356) 
        at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:294) 
        at com.rsys.ws.client.ResponsysWSServiceStub.login(ResponsysWSServiceStub.java: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.java: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(StAXSOAPModelBuilder.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:135) 
        at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope(StAXSOAPModelBuilder.java:163) 
        at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.<init>(StAXSOAPModelBuilder.java:111) 
        at org.apache.axis2.builder.BuilderUtil.getSOAPBuilder(BuilderUtil.java:474) 
        at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:142) 
        at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:77) 
        ... 6 more 

            Does anyone tell me why this is happening? 

            I'm using Axis2 deployed in Jboss. 

Thanks 
Raghu 


> XMLBeans client 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.1.1
>         Environment: Windows XP, JDK 1.4.2_09
>            Reporter: Raghu
>            Assignee: Davanum Srinivas
>            Priority: Blocker
>             Fix For: 1.3
>
>         Attachments: 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


[jira] Updated: (AXIS2-2352) XMLBeans client getting org.apache.axis2.AxisFault: First Element must contain the local name, Envelope

Posted by "Raghu Upadhyayula (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2352?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Raghu Upadhyayula updated AXIS2-2352:
-------------------------------------

    Comment: was deleted

> XMLBeans client 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.1.1
>         Environment: Windows XP, JDK 1.4.2_09
>            Reporter: Raghu
>            Assignee: Davanum Srinivas
>            Priority: Blocker
>             Fix For: 1.3
>
>
>  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


[jira] Commented: (AXIS2-2352) invoking webservices client from another environment is getting org.apache.axis2.AxisFault: First Element must contain the local name, Envelope

Posted by "Raghu Upadhyayula (JIRA)" <ji...@apache.org>.
    [ 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