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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> >> 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: [EMAIL PROTECTED] >> >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> >> > >> > >> > -- >> > Paul Fremantle >> > Co-Founder and VP of Technical Sales, WSO2 >> > OASIS WS-RX TC Co-chair >> > >> > blog: http://pzf.fremantle.org >> > [EMAIL PROTECTED] >> > >> > "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: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > -- > Paul Fremantle > Co-Founder and VP of Technical Sales, WSO2 > OASIS WS-RX TC Co-chair > > blog: http://pzf.fremantle.org > [EMAIL PROTECTED] > > "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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
