Hi Asmita,
Is it mandatory for you to specify service endpoint as the
targetnamespace in your services.xml?
Regards
Charitha
http://charithaka.blogspot.com
Attharkar, Asmita wrote:
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
------------------------------------------------------------------------
No virus found in this incoming message.
Checked by AVG.
Version: 7.5.549 / Virus Database: 270.8.6/1768 - Release Date: 11/4/2008 9:38 PM
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]