Hello, I have a problem while developing a web service client in Eclipse, using axis1.
As long as I rely only on the generated code (from the "New Web Service Client") I can happily use the service from my client app, but as soon as I set the endpoint URL manually I get the following exception: org.xml.sax.SAXException: Bad envelope tag: definitions org.apache.axis.AxisFault.makeFault(AxisFault.java:101) org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:701) org.apache.axis.Message.getSOAPEnvelope(Message.java:435) org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62) org.apache.axis.client.AxisClient.invoke(AxisClient.java:206) org.apache.axis.client.Call.invokeEngine(Call.java:2784) org.apache.axis.client.Call.invoke(Call.java:2767) org.apache.axis.client.Call.invoke(Call.java:2443) org.apache.axis.client.Call.invoke(Call.java:2366) org.apache.axis.client.Call.invoke(Call.java:1812) lu.mine.ws.IITestWSbindingStub.hello(IITestWSbindingStub.java:245) lu.mine.ws.IITestWSProxy.hello(IITestWSProxy.java:50) TestWS.doGet(TestWS.java:70) javax.servlet.http.HttpServlet.service(HttpServlet.java:627) javax.servlet.http.HttpServlet.service(HttpServlet.java:729) From my test servlet, this works: IITestWSProxy ws = new IITestWSProxy(); out.println(ws.hello("myName")); and this does not: IITestWSProxy ws = new IITestWSProxy("url to wsdl"); out.println(ws.hello("myName")); "url to wsdl" is exactly the same value as it was generated in IITestWSserviceLocator.java. Later I will need to set the url from a properties file (which I wanted to test new) since I will have different urls for development and test/prod environments. What goes wrong here? Thanks in advance for any suggestion, Yves