Hi, I have a web service which is to be deployed on different machines. And should be ofcourse be accessible from anywhere. However I have to give the service targetNamespace in the services.xml - which is a URL for the webservice. For eg: <service targetNamespace="http://localhost:8081/MyWebApp/services/MyWebService"> <schema schemaNamespace="http://localhost:8081/MyWebApp/services/MyWebService/xsd"/> are the first two lines in my services.xml.
I have my service bundled in aar file and deployed in webapp. When I try to access it using http://128.90.190.123:8081/MyWebApp/services/MyWebService I get the following error: Unknown exception :::org.apache.axis2.AxisFault: namespace mismatch require http://localhost:8081/MyWebApp/services/MyWebService/xsd found http://128.90.190.123:8081/MyWebApp/services/MyWebService/xsd org.apache.axis2.AxisFault: namespace mismatch require http://localhost:8081/MyWebApp/services/MyWebService/xsd found http://128.90.190.123:8081/MyWebApp/services/MyWebService/xsd How is it possible for me to have webservice URL that can be modified based on the Ip address in the URL. Right now the only way I can access this web service is from the localhost. I should be able to access webservice from any machine and should be deployable on any machine irrespective of the URL. Can I edit this webservice URL without editing my services.xml and rebundling the aar file. Any help is appreciated! Thanks, Asmita ________________________________ (Tel) 732-699-4657 | 4B566 | Telcordia Technologies | Piscataway NJ 08854
