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 BJuma <be...@injazatdatasystems.com> on 2007/11/19 13:53:56 UTC

First Element must contain the local name, Envelope , but found HTML

Hi,
We have developed some webservices in OracleAS 10g. I can check from the
axis2 web administration console that all of them are depoloyed successfully
and I can view their WSDL. I auto-generated axis2 java client to access
those webservices. when trying to run them, I got the following exception. I
really appreciate your urgent help.

 Nov 19, 2007 4:09:30 PM org.apache.axis2.builder.BuilderUtil getSOAPBuilder
INFO: OMException in getSOAPBuilder
org.apache.axiom.soap.SOAPProcessingException: First Element must contain
the local name, Envelope , but found HTML
        at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.constructNode(StAXSOAPModelBuilder.java:219)
        at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.createOMElement(StAXSOAPModelBuilder.java:177)
        at
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:163)
        at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope(StAXSOAPModelBuilder.java:161)
        at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.<init>(StAXSOAPModelBuilder.java:110)
        at
org.apache.axis2.builder.BuilderUtil.getSOAPBuilder(BuilderUtil.java:609)
        at
org.apache.axis2.transport.TransportUtils.createDocumentElement(TransportUtils.java:178)
        at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:111)
        at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:87)
        at
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:326)
        at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:389)
        at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211)
        at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
        at
ae.ead.egovernment.core.webservice.LookupDataServiceStub.getCountries(LookupDataServiceStub.java:385)
        at
ae.ead.egovernment.core.webservice.TestClient.main(TestClient.java:19)
Nov 19, 2007 4:09:30 PM org.apache.axis2.builder.BuilderUtil getSOAPBuilder
INFO: Remaining input stream :[]
Exception in thread "main" org.apache.axis2.AxisFault: First Element must
contain the local name, Envelope , but found HTML
        at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
        at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:89)
        at
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:326)
        at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:389)
        at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211)
        at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
        at
ae.ead.egovernment.core.webservice.LookupDataServiceStub.getCountries(LookupDataServiceStub.java:385)
        at
ae.ead.egovernment.core.webservice.TestClient.main(TestClient.java:19)
Caused by: org.apache.axiom.soap.SOAPProcessingException: First Element must
contain the local name, Envelope , but found HTML
        at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.constructNode(StAXSOAPModelBuilder.java:219)
        at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.createOMElement(StAXSOAPModelBuilder.java:177)
        at
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:163)
        at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope(StAXSOAPModelBuilder.java:161)
        at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.<init>(StAXSOAPModelBuilder.java:110)
        at
org.apache.axis2.builder.BuilderUtil.getSOAPBuilder(BuilderUtil.java:609)
        at
org.apache.axis2.transport.TransportUtils.createDocumentElement(TransportUtils.java:178)
        at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:111)
        at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:87)
        ... 6 more

-- 
View this message in context: http://www.nabble.com/First-Element-must-contain-the-local-name%2C-Envelope-%2C-but-found-HTML-tf4836093.html#a13835421
Sent from the Axis - Dev mailing list archive at Nabble.com.


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


Re: First Element must contain the local name, Envelope , but found HTML

Posted by BJuma <be...@injazatdatasystems.com>.
This line in the client code solves the problem:

stub._getServiceClient().getOptions().
	       setProperty(org.apache.axis2.transport.http.HTTPConstants.CHUNKED,
Boolean.FALSE);




WJ Krpelan wrote:
> 
> Hello,
> mere guess: are you using xhtml in the error-case?
> pls send a soap-trace
> Cheers
> 
> 
> --- BJuma <be...@injazatdatasystems.com> wrote:
> 
>> 
>> 
>> Belal wrote:
>> > 
>> > The strange thing is if it is OC4J alone, the
>> auto-generated java client
>> > is working fine as expected. but on the Oracle AS
>> it is not working.
>> > 
>> 
>> pzfreo wrote:
>> > 
>> > WSDL2Java is pretty reliable.
>> > 
>> > To debug the next step is to see a trace of your
>> message.
>> > 
>> > Paul
>> > 
>> > On Nov 19, 2007 3:08 PM, BJuma
>> <be...@injazatdatasystems.com> wrote:
>> > 
>> >>
>> >>
>> >> Belal wrote:
>> >> >
>> >> > using SOAPUI it is working perfectly. I can see
>> the soap respnse as
>> >> > expected. but why using the generated java
>> client (wsdl2java) i got
>> >> such
>> >> > an exception. is axis2 "wsdl2java" not reliable
>> or I am doing some
>> >> thing
>> >> > wrong!
>> >> >
>> >>
>> >> pzfreo wrote:
>> >> >
>> >> > It seems like maybe the URL is incorrect.
>> Basically the call is
>> >> returning
>> >> > a
>> >> > HTML page instead of a SOAP document.
>> >> >
>> >> > The best way to trace this is to use TCPMON or
>> another network sniffer
>> >> to
>> >> > see what is happening. Another approach is to
>> try SOAPUI to make a call
>> >> > and
>> >> > test the service is working properly.
>> >> >
>> >> > Paul
>> >> >
>> >> > On Nov 19, 2007 12:53 PM, BJuma
>> <be...@injazatdatasystems.com>
>> >> wrote:
>> >> >
>> >> >>
>> >> >> Hi,
>> >> >> We have developed some webservices in OracleAS
>> 10g. I can check from
>> >> the
>> >> >> axis2 web administration console that all of
>> them are depoloyed
>> >> >> successfully
>> >> >> and I can view their WSDL. I auto-generated
>> axis2 java client to
>> >> access
>> >> >> those webservices. when trying to run them, I
>> got the following
>> >> >> exception.
>> >> >> I
>> >> >> really appreciate your urgent help.
>> >> >>
>> >> >>  Nov 19, 2007 4:09:30 PM
>> >> >>
>> org.apache.axis2.builder.BuilderUtilgetSOAPBuilder
>> >> >> INFO: OMException in getSOAPBuilder
>> >> >> org.apache.axiom.soap.SOAPProcessingException:
>> First Element must
>> >> contain
>> >> >> the local name, Envelope , but found HTML
>> >> >>        at
>> >> >>
>>
> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.constructNode(
>> >> >> StAXSOAPModelBuilder.java:219)
>> >> >>        at
>> >> >>
>> >>
>>
> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.createOMElement
>> >> (
>> >> >> StAXSOAPModelBuilder.java:177)
>> >> >>        at
>> >> >>
>>
> org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java
>> >> >> :163)
>> >> >>        at
>> >> >>
>> >>
>>
> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope
>> >> (
>> >> >> StAXSOAPModelBuilder.java:161)
>> >> >>        at
>> >> >>
>>
> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.<init>(
>> >> >> StAXSOAPModelBuilder.java:110)
>> >> >>        at
>> >> >>
>>
> org.apache.axis2.builder.BuilderUtil.getSOAPBuilder(BuilderUtil.java
>> >> :609)
>> >> >>        at
>> >> >>
>>
> org.apache.axis2.transport.TransportUtils.createDocumentElement(
>> >> >> TransportUtils.java:178)
>> >> >>        at
>> >> >>
>>
> org.apache.axis2.transport.TransportUtils.createSOAPMessage(
>> >> >> TransportUtils.java:111)
>> >> >>        at
>> >> >>
>>
> org.apache.axis2.transport.TransportUtils.createSOAPMessage(
>> >> >> TransportUtils.java:87)
>> >> >>        at
>> >> >>
>>
> org.apache.axis2.description.OutInAxisOperationClient.handleResponse(
>> >> >> OutInAxisOperation.java:326)
>> >> >>        at
>> >> >>
>>
> org.apache.axis2.description.OutInAxisOperationClient.send(
>> >> >> OutInAxisOperation.java:389)
>> >> >>        at
>> >> >>
>>
> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(
>> >> >> OutInAxisOperation.java:211)
>> >> >>        at
>> >> >>
>>
> org.apache.axis2.client.OperationClient.execute(OperationClient.java
>> >> :163)
>> >> >>        at
>> >> >>
>>
> ae.ead.egovernment.core.webservice.LookupDataServiceStub.getCountries(
>> >> >> LookupDataServiceStub.java:385)
>> >> >>        at
>> >> >>
>>
> ae.ead.egovernment.core.webservice.TestClient.main(TestClient.java:19)
>> >> >> Nov 19, 2007 4:09:30 PM
>> >> >>
>> org.apache.axis2.builder.BuilderUtilgetSOAPBuilder
>> >> >> INFO: Remaining input stream :[]
>> >> >> Exception in thread "main"
>> org.apache.axis2.AxisFault: First Element
>> >> must
>> >> >> contain the local name, Envelope , but found
>> HTML
>> >> >>        at
>>
> org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
>> >> >>        at
>> >> >>
>>
> org.apache.axis2.transport.TransportUtils.createSOAPMessage(
>> >> >> TransportUtils.java:89)
>> >> >>        at
>> >> >>
>>
> org.apache.axis2.description.OutInAxisOperationClient.handleResponse(
>> >> >> OutInAxisOperation.java:326)
>> >> >>        at
>> >> >>
>>
> org.apache.axis2.description.OutInAxisOperationClient.send(
>> >> >> OutInAxisOperation.java:389)
>> >> >>        at
>> >> >>
>>
> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(
>> >> >> OutInAxisOperation.java:211)
>> >> >>        at
>> >> >>
>>
> org.apache.axis2.client.OperationClient.execute(OperationClient.java
>> >> :163)
>> >> >>        at
>> >> >>
>>
> ae.ead.egovernment.core.webservice.LookupDataServiceStub.getCountries(
>> >> >> LookupDataServiceStub.java:385)
>> >> >>        at
>> >> >>
>>
> ae.ead.egovernment.core.webservice.TestClient.main(TestClient.java:19)
>> >> >> Caused by:
>> org.apache.axiom.soap.SOAPProcessingException: First
>> >> Element
>> >> >> must
>> >> >> contain the local name, Envelope , but found
>> HTML
>> >> >>        at
>> >> >>
>>
> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.constructNode(
>> >> >> StAXSOAPModelBuilder.java:219)
>> >> >>        at
>> >> >>
>> >>
>>
> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.createOMElement
>> >> (
>> >> >> StAXSOAPModelBuilder.java:177)
>> 
> === message truncated ===
> 
> 
> 
>      
> ____________________________________________________________________________________
> Get easy, one-click access to your favorites. 
> Make Yahoo! your homepage.
> http://www.yahoo.com/r/hs 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-dev-help@ws.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/First-Element-must-contain-the-local-name%2C-Envelope-%2C-but-found-HTML-tp13835421p14235905.html
Sent from the Axis - Dev mailing list archive at Nabble.com.


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


Re: First Element must contain the local name, Envelope , but found HTML

Posted by WJ Krpelan <kr...@yahoo.com>.
Hello,
mere guess: are you using xhtml in the error-case?
pls send a soap-trace
Cheers


--- BJuma <be...@injazatdatasystems.com> wrote:

> 
> 
> Belal wrote:
> > 
> > The strange thing is if it is OC4J alone, the
> auto-generated java client
> > is working fine as expected. but on the Oracle AS
> it is not working.
> > 
> 
> pzfreo wrote:
> > 
> > WSDL2Java is pretty reliable.
> > 
> > To debug the next step is to see a trace of your
> message.
> > 
> > Paul
> > 
> > On Nov 19, 2007 3:08 PM, BJuma
> <be...@injazatdatasystems.com> wrote:
> > 
> >>
> >>
> >> Belal wrote:
> >> >
> >> > using SOAPUI it is working perfectly. I can see
> the soap respnse as
> >> > expected. but why using the generated java
> client (wsdl2java) i got
> >> such
> >> > an exception. is axis2 "wsdl2java" not reliable
> or I am doing some
> >> thing
> >> > wrong!
> >> >
> >>
> >> pzfreo wrote:
> >> >
> >> > It seems like maybe the URL is incorrect.
> Basically the call is
> >> returning
> >> > a
> >> > HTML page instead of a SOAP document.
> >> >
> >> > The best way to trace this is to use TCPMON or
> another network sniffer
> >> to
> >> > see what is happening. Another approach is to
> try SOAPUI to make a call
> >> > and
> >> > test the service is working properly.
> >> >
> >> > Paul
> >> >
> >> > On Nov 19, 2007 12:53 PM, BJuma
> <be...@injazatdatasystems.com>
> >> wrote:
> >> >
> >> >>
> >> >> Hi,
> >> >> We have developed some webservices in OracleAS
> 10g. I can check from
> >> the
> >> >> axis2 web administration console that all of
> them are depoloyed
> >> >> successfully
> >> >> and I can view their WSDL. I auto-generated
> axis2 java client to
> >> access
> >> >> those webservices. when trying to run them, I
> got the following
> >> >> exception.
> >> >> I
> >> >> really appreciate your urgent help.
> >> >>
> >> >>  Nov 19, 2007 4:09:30 PM
> >> >>
> org.apache.axis2.builder.BuilderUtilgetSOAPBuilder
> >> >> INFO: OMException in getSOAPBuilder
> >> >> org.apache.axiom.soap.SOAPProcessingException:
> First Element must
> >> contain
> >> >> the local name, Envelope , but found HTML
> >> >>        at
> >> >>
>
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.constructNode(
> >> >> StAXSOAPModelBuilder.java:219)
> >> >>        at
> >> >>
> >>
>
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.createOMElement
> >> (
> >> >> StAXSOAPModelBuilder.java:177)
> >> >>        at
> >> >>
>
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java
> >> >> :163)
> >> >>        at
> >> >>
> >>
>
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope
> >> (
> >> >> StAXSOAPModelBuilder.java:161)
> >> >>        at
> >> >>
>
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.<init>(
> >> >> StAXSOAPModelBuilder.java:110)
> >> >>        at
> >> >>
>
org.apache.axis2.builder.BuilderUtil.getSOAPBuilder(BuilderUtil.java
> >> :609)
> >> >>        at
> >> >>
>
org.apache.axis2.transport.TransportUtils.createDocumentElement(
> >> >> TransportUtils.java:178)
> >> >>        at
> >> >>
>
org.apache.axis2.transport.TransportUtils.createSOAPMessage(
> >> >> TransportUtils.java:111)
> >> >>        at
> >> >>
>
org.apache.axis2.transport.TransportUtils.createSOAPMessage(
> >> >> TransportUtils.java:87)
> >> >>        at
> >> >>
>
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(
> >> >> OutInAxisOperation.java:326)
> >> >>        at
> >> >>
>
org.apache.axis2.description.OutInAxisOperationClient.send(
> >> >> OutInAxisOperation.java:389)
> >> >>        at
> >> >>
>
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(
> >> >> OutInAxisOperation.java:211)
> >> >>        at
> >> >>
>
org.apache.axis2.client.OperationClient.execute(OperationClient.java
> >> :163)
> >> >>        at
> >> >>
>
ae.ead.egovernment.core.webservice.LookupDataServiceStub.getCountries(
> >> >> LookupDataServiceStub.java:385)
> >> >>        at
> >> >>
>
ae.ead.egovernment.core.webservice.TestClient.main(TestClient.java:19)
> >> >> Nov 19, 2007 4:09:30 PM
> >> >>
> org.apache.axis2.builder.BuilderUtilgetSOAPBuilder
> >> >> INFO: Remaining input stream :[]
> >> >> Exception in thread "main"
> org.apache.axis2.AxisFault: First Element
> >> must
> >> >> contain the local name, Envelope , but found
> HTML
> >> >>        at
>
org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
> >> >>        at
> >> >>
>
org.apache.axis2.transport.TransportUtils.createSOAPMessage(
> >> >> TransportUtils.java:89)
> >> >>        at
> >> >>
>
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(
> >> >> OutInAxisOperation.java:326)
> >> >>        at
> >> >>
>
org.apache.axis2.description.OutInAxisOperationClient.send(
> >> >> OutInAxisOperation.java:389)
> >> >>        at
> >> >>
>
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(
> >> >> OutInAxisOperation.java:211)
> >> >>        at
> >> >>
>
org.apache.axis2.client.OperationClient.execute(OperationClient.java
> >> :163)
> >> >>        at
> >> >>
>
ae.ead.egovernment.core.webservice.LookupDataServiceStub.getCountries(
> >> >> LookupDataServiceStub.java:385)
> >> >>        at
> >> >>
>
ae.ead.egovernment.core.webservice.TestClient.main(TestClient.java:19)
> >> >> Caused by:
> org.apache.axiom.soap.SOAPProcessingException: First
> >> Element
> >> >> must
> >> >> contain the local name, Envelope , but found
> HTML
> >> >>        at
> >> >>
>
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.constructNode(
> >> >> StAXSOAPModelBuilder.java:219)
> >> >>        at
> >> >>
> >>
>
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.createOMElement
> >> (
> >> >> StAXSOAPModelBuilder.java:177)
> 
=== message truncated ===



      ____________________________________________________________________________________
Get easy, one-click access to your favorites. 
Make Yahoo! your homepage.
http://www.yahoo.com/r/hs 

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


Re: First Element must contain the local name, Envelope , but found HTML

Posted by BJuma <be...@injazatdatasystems.com>.

Belal wrote:
> 
> The strange thing is if it is OC4J alone, the auto-generated java client
> is working fine as expected. but on the Oracle AS it is not working.
> 

pzfreo wrote:
> 
> WSDL2Java is pretty reliable.
> 
> To debug the next step is to see a trace of your message.
> 
> Paul
> 
> On Nov 19, 2007 3:08 PM, BJuma <be...@injazatdatasystems.com> wrote:
> 
>>
>>
>> Belal wrote:
>> >
>> > using SOAPUI it is working perfectly. I can see the soap respnse as
>> > expected. but why using the generated java client (wsdl2java) i got
>> such
>> > an exception. is axis2 "wsdl2java" not reliable or I am doing some
>> thing
>> > wrong!
>> >
>>
>> pzfreo wrote:
>> >
>> > It seems like maybe the URL is incorrect. Basically the call is
>> returning
>> > a
>> > HTML page instead of a SOAP document.
>> >
>> > The best way to trace this is to use TCPMON or another network sniffer
>> to
>> > see what is happening. Another approach is to try SOAPUI to make a call
>> > and
>> > test the service is working properly.
>> >
>> > Paul
>> >
>> > On Nov 19, 2007 12:53 PM, BJuma <be...@injazatdatasystems.com>
>> wrote:
>> >
>> >>
>> >> Hi,
>> >> We have developed some webservices in OracleAS 10g. I can check from
>> the
>> >> axis2 web administration console that all of them are depoloyed
>> >> successfully
>> >> and I can view their WSDL. I auto-generated axis2 java client to
>> access
>> >> those webservices. when trying to run them, I got the following
>> >> exception.
>> >> I
>> >> really appreciate your urgent help.
>> >>
>> >>  Nov 19, 2007 4:09:30 PM
>> >> org.apache.axis2.builder.BuilderUtilgetSOAPBuilder
>> >> INFO: OMException in getSOAPBuilder
>> >> org.apache.axiom.soap.SOAPProcessingException: First Element must
>> contain
>> >> the local name, Envelope , but found HTML
>> >>        at
>> >> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.constructNode(
>> >> StAXSOAPModelBuilder.java:219)
>> >>        at
>> >>
>> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.createOMElement
>> (
>> >> StAXSOAPModelBuilder.java:177)
>> >>        at
>> >> org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java
>> >> :163)
>> >>        at
>> >>
>> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope
>> (
>> >> StAXSOAPModelBuilder.java:161)
>> >>        at
>> >> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.<init>(
>> >> StAXSOAPModelBuilder.java:110)
>> >>        at
>> >> org.apache.axis2.builder.BuilderUtil.getSOAPBuilder(BuilderUtil.java
>> :609)
>> >>        at
>> >> org.apache.axis2.transport.TransportUtils.createDocumentElement(
>> >> TransportUtils.java:178)
>> >>        at
>> >> org.apache.axis2.transport.TransportUtils.createSOAPMessage(
>> >> TransportUtils.java:111)
>> >>        at
>> >> org.apache.axis2.transport.TransportUtils.createSOAPMessage(
>> >> TransportUtils.java:87)
>> >>        at
>> >> org.apache.axis2.description.OutInAxisOperationClient.handleResponse(
>> >> OutInAxisOperation.java:326)
>> >>        at
>> >> org.apache.axis2.description.OutInAxisOperationClient.send(
>> >> OutInAxisOperation.java:389)
>> >>        at
>> >> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(
>> >> OutInAxisOperation.java:211)
>> >>        at
>> >> org.apache.axis2.client.OperationClient.execute(OperationClient.java
>> :163)
>> >>        at
>> >> ae.ead.egovernment.core.webservice.LookupDataServiceStub.getCountries(
>> >> LookupDataServiceStub.java:385)
>> >>        at
>> >> ae.ead.egovernment.core.webservice.TestClient.main(TestClient.java:19)
>> >> Nov 19, 2007 4:09:30 PM
>> >> org.apache.axis2.builder.BuilderUtilgetSOAPBuilder
>> >> INFO: Remaining input stream :[]
>> >> Exception in thread "main" org.apache.axis2.AxisFault: First Element
>> must
>> >> contain the local name, Envelope , but found HTML
>> >>        at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
>> >>        at
>> >> org.apache.axis2.transport.TransportUtils.createSOAPMessage(
>> >> TransportUtils.java:89)
>> >>        at
>> >> org.apache.axis2.description.OutInAxisOperationClient.handleResponse(
>> >> OutInAxisOperation.java:326)
>> >>        at
>> >> org.apache.axis2.description.OutInAxisOperationClient.send(
>> >> OutInAxisOperation.java:389)
>> >>        at
>> >> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(
>> >> OutInAxisOperation.java:211)
>> >>        at
>> >> org.apache.axis2.client.OperationClient.execute(OperationClient.java
>> :163)
>> >>        at
>> >> ae.ead.egovernment.core.webservice.LookupDataServiceStub.getCountries(
>> >> LookupDataServiceStub.java:385)
>> >>        at
>> >> ae.ead.egovernment.core.webservice.TestClient.main(TestClient.java:19)
>> >> Caused by: org.apache.axiom.soap.SOAPProcessingException: First
>> Element
>> >> must
>> >> contain the local name, Envelope , but found HTML
>> >>        at
>> >> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.constructNode(
>> >> StAXSOAPModelBuilder.java:219)
>> >>        at
>> >>
>> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.createOMElement
>> (
>> >> StAXSOAPModelBuilder.java:177)
>> >>        at
>> >> org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java
>> >> :163)
>> >>        at
>> >>
>> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope
>> (
>> >> StAXSOAPModelBuilder.java:161)
>> >>        at
>> >> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.<init>(
>> >> StAXSOAPModelBuilder.java:110)
>> >>        at
>> >> org.apache.axis2.builder.BuilderUtil.getSOAPBuilder(BuilderUtil.java
>> :609)
>> >>        at
>> >> org.apache.axis2.transport.TransportUtils.createDocumentElement(
>> >> TransportUtils.java:178)
>> >>        at
>> >> org.apache.axis2.transport.TransportUtils.createSOAPMessage(
>> >> TransportUtils.java:111)
>> >>        at
>> >> org.apache.axis2.transport.TransportUtils.createSOAPMessage(
>> >> TransportUtils.java:87)
>> >>        ... 6 more
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/First-Element-must-contain-the-local-name%2C-Envelope-%2C-but-found-HTML-tf4836093.html#a13835421
>> >> Sent from the Axis - Dev mailing list archive at Nabble.com.
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
>> >> For additional commands, e-mail: axis-dev-help@ws.apache.org
>> >>
>> >>
>> >
>> >
>> > --
>> > Paul Fremantle
>> > Co-Founder and VP of Technical Sales, WSO2
>> > OASIS WS-RX TC Co-chair
>> >
>> > blog: http://pzf.fremantle.org
>> > paul@wso2.com
>> >
>> > "Oxygenating the Web Service Platform", www.wso2.com
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/First-Element-must-contain-the-local-name%2C-Envelope-%2C-but-found-HTML-tf4836093.html#a13838039
>> Sent from the Axis - Dev mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-dev-help@ws.apache.org
>>
>>
> 
> 
> -- 
> Paul Fremantle
> Co-Founder and VP of Technical Sales, WSO2
> OASIS WS-RX TC Co-chair
> 
> blog: http://pzf.fremantle.org
> paul@wso2.com
> 
> "Oxygenating the Web Service Platform", www.wso2.com
> 
> 

-- 
View this message in context: http://www.nabble.com/First-Element-must-contain-the-local-name%2C-Envelope-%2C-but-found-HTML-tf4836093.html#a13850957
Sent from the Axis - Dev mailing list archive at Nabble.com.


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


Re: First Element must contain the local name, Envelope , but found HTML

Posted by Paul Fremantle <pz...@gmail.com>.
WSDL2Java is pretty reliable.

To debug the next step is to see a trace of your message.

Paul

On Nov 19, 2007 3:08 PM, BJuma <be...@injazatdatasystems.com> wrote:

>
>
> Belal wrote:
> >
> > using SOAPUI it is working perfectly. I can see the soap respnse as
> > expected. but why using the generated java client (wsdl2java) i got such
> > an exception. is axis2 "wsdl2java" not reliable or I am doing some thing
> > wrong!
> >
>
> pzfreo wrote:
> >
> > It seems like maybe the URL is incorrect. Basically the call is
> returning
> > a
> > HTML page instead of a SOAP document.
> >
> > The best way to trace this is to use TCPMON or another network sniffer
> to
> > see what is happening. Another approach is to try SOAPUI to make a call
> > and
> > test the service is working properly.
> >
> > Paul
> >
> > On Nov 19, 2007 12:53 PM, BJuma <be...@injazatdatasystems.com>
> wrote:
> >
> >>
> >> Hi,
> >> We have developed some webservices in OracleAS 10g. I can check from
> the
> >> axis2 web administration console that all of them are depoloyed
> >> successfully
> >> and I can view their WSDL. I auto-generated axis2 java client to access
> >> those webservices. when trying to run them, I got the following
> >> exception.
> >> I
> >> really appreciate your urgent help.
> >>
> >>  Nov 19, 2007 4:09:30 PM
> >> org.apache.axis2.builder.BuilderUtilgetSOAPBuilder
> >> INFO: OMException in getSOAPBuilder
> >> org.apache.axiom.soap.SOAPProcessingException: First Element must
> contain
> >> the local name, Envelope , but found HTML
> >>        at
> >> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.constructNode(
> >> StAXSOAPModelBuilder.java:219)
> >>        at
> >> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.createOMElement
> (
> >> StAXSOAPModelBuilder.java:177)
> >>        at
> >> org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java
> >> :163)
> >>        at
> >> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope
> (
> >> StAXSOAPModelBuilder.java:161)
> >>        at
> >> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.<init>(
> >> StAXSOAPModelBuilder.java:110)
> >>        at
> >> org.apache.axis2.builder.BuilderUtil.getSOAPBuilder(BuilderUtil.java
> :609)
> >>        at
> >> org.apache.axis2.transport.TransportUtils.createDocumentElement(
> >> TransportUtils.java:178)
> >>        at
> >> org.apache.axis2.transport.TransportUtils.createSOAPMessage(
> >> TransportUtils.java:111)
> >>        at
> >> org.apache.axis2.transport.TransportUtils.createSOAPMessage(
> >> TransportUtils.java:87)
> >>        at
> >> org.apache.axis2.description.OutInAxisOperationClient.handleResponse(
> >> OutInAxisOperation.java:326)
> >>        at
> >> org.apache.axis2.description.OutInAxisOperationClient.send(
> >> OutInAxisOperation.java:389)
> >>        at
> >> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(
> >> OutInAxisOperation.java:211)
> >>        at
> >> org.apache.axis2.client.OperationClient.execute(OperationClient.java
> :163)
> >>        at
> >> ae.ead.egovernment.core.webservice.LookupDataServiceStub.getCountries(
> >> LookupDataServiceStub.java:385)
> >>        at
> >> ae.ead.egovernment.core.webservice.TestClient.main(TestClient.java:19)
> >> Nov 19, 2007 4:09:30 PM
> >> org.apache.axis2.builder.BuilderUtilgetSOAPBuilder
> >> INFO: Remaining input stream :[]
> >> Exception in thread "main" org.apache.axis2.AxisFault: First Element
> must
> >> contain the local name, Envelope , but found HTML
> >>        at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
> >>        at
> >> org.apache.axis2.transport.TransportUtils.createSOAPMessage(
> >> TransportUtils.java:89)
> >>        at
> >> org.apache.axis2.description.OutInAxisOperationClient.handleResponse(
> >> OutInAxisOperation.java:326)
> >>        at
> >> org.apache.axis2.description.OutInAxisOperationClient.send(
> >> OutInAxisOperation.java:389)
> >>        at
> >> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(
> >> OutInAxisOperation.java:211)
> >>        at
> >> org.apache.axis2.client.OperationClient.execute(OperationClient.java
> :163)
> >>        at
> >> ae.ead.egovernment.core.webservice.LookupDataServiceStub.getCountries(
> >> LookupDataServiceStub.java:385)
> >>        at
> >> ae.ead.egovernment.core.webservice.TestClient.main(TestClient.java:19)
> >> Caused by: org.apache.axiom.soap.SOAPProcessingException: First Element
> >> must
> >> contain the local name, Envelope , but found HTML
> >>        at
> >> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.constructNode(
> >> StAXSOAPModelBuilder.java:219)
> >>        at
> >> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.createOMElement
> (
> >> StAXSOAPModelBuilder.java:177)
> >>        at
> >> org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java
> >> :163)
> >>        at
> >> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope
> (
> >> StAXSOAPModelBuilder.java:161)
> >>        at
> >> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.<init>(
> >> StAXSOAPModelBuilder.java:110)
> >>        at
> >> org.apache.axis2.builder.BuilderUtil.getSOAPBuilder(BuilderUtil.java
> :609)
> >>        at
> >> org.apache.axis2.transport.TransportUtils.createDocumentElement(
> >> TransportUtils.java:178)
> >>        at
> >> org.apache.axis2.transport.TransportUtils.createSOAPMessage(
> >> TransportUtils.java:111)
> >>        at
> >> org.apache.axis2.transport.TransportUtils.createSOAPMessage(
> >> TransportUtils.java:87)
> >>        ... 6 more
> >>
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/First-Element-must-contain-the-local-name%2C-Envelope-%2C-but-found-HTML-tf4836093.html#a13835421
> >> Sent from the Axis - Dev mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
> >> For additional commands, e-mail: axis-dev-help@ws.apache.org
> >>
> >>
> >
> >
> > --
> > Paul Fremantle
> > Co-Founder and VP of Technical Sales, WSO2
> > OASIS WS-RX TC Co-chair
> >
> > blog: http://pzf.fremantle.org
> > paul@wso2.com
> >
> > "Oxygenating the Web Service Platform", www.wso2.com
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/First-Element-must-contain-the-local-name%2C-Envelope-%2C-but-found-HTML-tf4836093.html#a13838039
> Sent from the Axis - Dev mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-dev-help@ws.apache.org
>
>


-- 
Paul Fremantle
Co-Founder and VP of Technical Sales, WSO2
OASIS WS-RX TC Co-chair

blog: http://pzf.fremantle.org
paul@wso2.com

"Oxygenating the Web Service Platform", www.wso2.com

Re: First Element must contain the local name, Envelope , but found HTML

Posted by BJuma <be...@injazatdatasystems.com>.

Belal wrote:
> 
> using SOAPUI it is working perfectly. I can see the soap respnse as
> expected. but why using the generated java client (wsdl2java) i got such
> an exception. is axis2 "wsdl2java" not reliable or I am doing some thing
> wrong!
> 

pzfreo wrote:
> 
> It seems like maybe the URL is incorrect. Basically the call is returning
> a
> HTML page instead of a SOAP document.
> 
> The best way to trace this is to use TCPMON or another network sniffer to
> see what is happening. Another approach is to try SOAPUI to make a call
> and
> test the service is working properly.
> 
> Paul
> 
> On Nov 19, 2007 12:53 PM, BJuma <be...@injazatdatasystems.com> wrote:
> 
>>
>> Hi,
>> We have developed some webservices in OracleAS 10g. I can check from the
>> axis2 web administration console that all of them are depoloyed
>> successfully
>> and I can view their WSDL. I auto-generated axis2 java client to access
>> those webservices. when trying to run them, I got the following
>> exception.
>> I
>> really appreciate your urgent help.
>>
>>  Nov 19, 2007 4:09:30 PM
>> org.apache.axis2.builder.BuilderUtilgetSOAPBuilder
>> INFO: OMException in getSOAPBuilder
>> org.apache.axiom.soap.SOAPProcessingException: First Element must contain
>> the local name, Envelope , but found HTML
>>        at
>> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.constructNode(
>> StAXSOAPModelBuilder.java:219)
>>        at
>> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.createOMElement(
>> StAXSOAPModelBuilder.java:177)
>>        at
>> org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java
>> :163)
>>        at
>> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope(
>> StAXSOAPModelBuilder.java:161)
>>        at
>> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.<init>(
>> StAXSOAPModelBuilder.java:110)
>>        at
>> org.apache.axis2.builder.BuilderUtil.getSOAPBuilder(BuilderUtil.java:609)
>>        at
>> org.apache.axis2.transport.TransportUtils.createDocumentElement(
>> TransportUtils.java:178)
>>        at
>> org.apache.axis2.transport.TransportUtils.createSOAPMessage(
>> TransportUtils.java:111)
>>        at
>> org.apache.axis2.transport.TransportUtils.createSOAPMessage(
>> TransportUtils.java:87)
>>        at
>> org.apache.axis2.description.OutInAxisOperationClient.handleResponse(
>> OutInAxisOperation.java:326)
>>        at
>> org.apache.axis2.description.OutInAxisOperationClient.send(
>> OutInAxisOperation.java:389)
>>        at
>> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(
>> OutInAxisOperation.java:211)
>>        at
>> org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
>>        at
>> ae.ead.egovernment.core.webservice.LookupDataServiceStub.getCountries(
>> LookupDataServiceStub.java:385)
>>        at
>> ae.ead.egovernment.core.webservice.TestClient.main(TestClient.java:19)
>> Nov 19, 2007 4:09:30 PM
>> org.apache.axis2.builder.BuilderUtilgetSOAPBuilder
>> INFO: Remaining input stream :[]
>> Exception in thread "main" org.apache.axis2.AxisFault: First Element must
>> contain the local name, Envelope , but found HTML
>>        at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
>>        at
>> org.apache.axis2.transport.TransportUtils.createSOAPMessage(
>> TransportUtils.java:89)
>>        at
>> org.apache.axis2.description.OutInAxisOperationClient.handleResponse(
>> OutInAxisOperation.java:326)
>>        at
>> org.apache.axis2.description.OutInAxisOperationClient.send(
>> OutInAxisOperation.java:389)
>>        at
>> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(
>> OutInAxisOperation.java:211)
>>        at
>> org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
>>        at
>> ae.ead.egovernment.core.webservice.LookupDataServiceStub.getCountries(
>> LookupDataServiceStub.java:385)
>>        at
>> ae.ead.egovernment.core.webservice.TestClient.main(TestClient.java:19)
>> Caused by: org.apache.axiom.soap.SOAPProcessingException: First Element
>> must
>> contain the local name, Envelope , but found HTML
>>        at
>> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.constructNode(
>> StAXSOAPModelBuilder.java:219)
>>        at
>> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.createOMElement(
>> StAXSOAPModelBuilder.java:177)
>>        at
>> org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java
>> :163)
>>        at
>> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope(
>> StAXSOAPModelBuilder.java:161)
>>        at
>> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.<init>(
>> StAXSOAPModelBuilder.java:110)
>>        at
>> org.apache.axis2.builder.BuilderUtil.getSOAPBuilder(BuilderUtil.java:609)
>>        at
>> org.apache.axis2.transport.TransportUtils.createDocumentElement(
>> TransportUtils.java:178)
>>        at
>> org.apache.axis2.transport.TransportUtils.createSOAPMessage(
>> TransportUtils.java:111)
>>        at
>> org.apache.axis2.transport.TransportUtils.createSOAPMessage(
>> TransportUtils.java:87)
>>        ... 6 more
>>
>> --
>> View this message in context:
>> http://www.nabble.com/First-Element-must-contain-the-local-name%2C-Envelope-%2C-but-found-HTML-tf4836093.html#a13835421
>> Sent from the Axis - Dev mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-dev-help@ws.apache.org
>>
>>
> 
> 
> -- 
> Paul Fremantle
> Co-Founder and VP of Technical Sales, WSO2
> OASIS WS-RX TC Co-chair
> 
> blog: http://pzf.fremantle.org
> paul@wso2.com
> 
> "Oxygenating the Web Service Platform", www.wso2.com
> 
> 

-- 
View this message in context: http://www.nabble.com/First-Element-must-contain-the-local-name%2C-Envelope-%2C-but-found-HTML-tf4836093.html#a13838039
Sent from the Axis - Dev mailing list archive at Nabble.com.


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


Re: First Element must contain the local name, Envelope , but found HTML

Posted by Paul Fremantle <pz...@gmail.com>.
It seems like maybe the URL is incorrect. Basically the call is returning a
HTML page instead of a SOAP document.

The best way to trace this is to use TCPMON or another network sniffer to
see what is happening. Another approach is to try SOAPUI to make a call and
test the service is working properly.

Paul

On Nov 19, 2007 12:53 PM, BJuma <be...@injazatdatasystems.com> wrote:

>
> Hi,
> We have developed some webservices in OracleAS 10g. I can check from the
> axis2 web administration console that all of them are depoloyed
> successfully
> and I can view their WSDL. I auto-generated axis2 java client to access
> those webservices. when trying to run them, I got the following exception.
> I
> really appreciate your urgent help.
>
>  Nov 19, 2007 4:09:30 PM org.apache.axis2.builder.BuilderUtilgetSOAPBuilder
> INFO: OMException in getSOAPBuilder
> org.apache.axiom.soap.SOAPProcessingException: First Element must contain
> the local name, Envelope , but found HTML
>        at
> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.constructNode(
> StAXSOAPModelBuilder.java:219)
>        at
> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.createOMElement(
> StAXSOAPModelBuilder.java:177)
>        at
> org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java
> :163)
>        at
> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope(
> StAXSOAPModelBuilder.java:161)
>        at
> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.<init>(
> StAXSOAPModelBuilder.java:110)
>        at
> org.apache.axis2.builder.BuilderUtil.getSOAPBuilder(BuilderUtil.java:609)
>        at
> org.apache.axis2.transport.TransportUtils.createDocumentElement(
> TransportUtils.java:178)
>        at
> org.apache.axis2.transport.TransportUtils.createSOAPMessage(
> TransportUtils.java:111)
>        at
> org.apache.axis2.transport.TransportUtils.createSOAPMessage(
> TransportUtils.java:87)
>        at
> org.apache.axis2.description.OutInAxisOperationClient.handleResponse(
> OutInAxisOperation.java:326)
>        at
> org.apache.axis2.description.OutInAxisOperationClient.send(
> OutInAxisOperation.java:389)
>        at
> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(
> OutInAxisOperation.java:211)
>        at
> org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
>        at
> ae.ead.egovernment.core.webservice.LookupDataServiceStub.getCountries(
> LookupDataServiceStub.java:385)
>        at
> ae.ead.egovernment.core.webservice.TestClient.main(TestClient.java:19)
> Nov 19, 2007 4:09:30 PM org.apache.axis2.builder.BuilderUtilgetSOAPBuilder
> INFO: Remaining input stream :[]
> Exception in thread "main" org.apache.axis2.AxisFault: First Element must
> contain the local name, Envelope , but found HTML
>        at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
>        at
> org.apache.axis2.transport.TransportUtils.createSOAPMessage(
> TransportUtils.java:89)
>        at
> org.apache.axis2.description.OutInAxisOperationClient.handleResponse(
> OutInAxisOperation.java:326)
>        at
> org.apache.axis2.description.OutInAxisOperationClient.send(
> OutInAxisOperation.java:389)
>        at
> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(
> OutInAxisOperation.java:211)
>        at
> org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
>        at
> ae.ead.egovernment.core.webservice.LookupDataServiceStub.getCountries(
> LookupDataServiceStub.java:385)
>        at
> ae.ead.egovernment.core.webservice.TestClient.main(TestClient.java:19)
> Caused by: org.apache.axiom.soap.SOAPProcessingException: First Element
> must
> contain the local name, Envelope , but found HTML
>        at
> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.constructNode(
> StAXSOAPModelBuilder.java:219)
>        at
> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.createOMElement(
> StAXSOAPModelBuilder.java:177)
>        at
> org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java
> :163)
>        at
> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope(
> StAXSOAPModelBuilder.java:161)
>        at
> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.<init>(
> StAXSOAPModelBuilder.java:110)
>        at
> org.apache.axis2.builder.BuilderUtil.getSOAPBuilder(BuilderUtil.java:609)
>        at
> org.apache.axis2.transport.TransportUtils.createDocumentElement(
> TransportUtils.java:178)
>        at
> org.apache.axis2.transport.TransportUtils.createSOAPMessage(
> TransportUtils.java:111)
>        at
> org.apache.axis2.transport.TransportUtils.createSOAPMessage(
> TransportUtils.java:87)
>        ... 6 more
>
> --
> View this message in context:
> http://www.nabble.com/First-Element-must-contain-the-local-name%2C-Envelope-%2C-but-found-HTML-tf4836093.html#a13835421
> Sent from the Axis - Dev mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-dev-help@ws.apache.org
>
>


-- 
Paul Fremantle
Co-Founder and VP of Technical Sales, WSO2
OASIS WS-RX TC Co-chair

blog: http://pzf.fremantle.org
paul@wso2.com

"Oxygenating the Web Service Platform", www.wso2.com