Re: How to change the webservices URL (remove /services from the URL)
You can modify the wsdl in generation resources fase. Using Axis2 contract first approach you start with the wsdl (which also be generated with axis starting of a interface in java). Modify the wsdl and execute wsdl2java for service generation, execute ant build task generated and your obtain a *.aar archive ready to deploy. 2007/10/18, [EMAIL PROTECTED] [EMAIL PROTECTED]: portType name=ResponsysWS service name=ResponsysWSService soap:address location=http://10.5.2.182:80/webservices/ResponsysWSService/ResponsysW SService / Thanks Raghu From: Walker, Jeff [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 17, 2007 12:19 PM To: axis-user@ws.apache.org Subject: RE: How to change the webservices URL (remove /services from the URL) Also, what is the name of your service, and what is the name of your portType? I suspect they are both the same name. -jeff From: Walker, Jeff Sent: Wednesday, October 17, 2007 3:16 PM To: 'axis-user@ws.apache.org' Subject: RE: How to change the webservices URL (remove /services from the URL) What's in your wsdl? ie. what is soap:address location=?/ equal to? -jeff à à à à à àFrom: Raghu Upadhyayula [mailto:[EMAIL PROTECTED] à àSent: Wednesday, October 17, 2007 3:04 PM à àTo: axis-user@ws.apache.org à àSubject: RE: How to change the webservices URL (remove /services from the URL) à àHi Jeff, à à à àI did change my web.xml servlet mapping to look for URL pattern /* instead of /services/* à à à àBut the soap end point is pointing to http://localhost/webservices/myServiceName/myServiceName (myServiceName repeated twice). à à à àThanks à àRaghu à à à à à àFrom: Walker, Jeff [mailto:[EMAIL PROTECTED] à àSent: Wednesday, October 17, 2007 11:50 AM à àTo: axis-user@ws.apache.org à àSubject: RE: How to change the webservices URL (remove /services from the URL) à à à àEdit your web.xml file to change the servlet mapping. à àSeach for url-pattern then edit the services/service_name and replace it with just a /service_name. It's very easy to screw this sort of thing up and take hours to get back to where you were. If you can live with the services/, I would leave it alone. à à-jeff à à à à à àFrom: Raghu Upadhyayula [mailto:[EMAIL PROTECTED] à àSent: Wednesday, October 17, 2007 2:36 PM à àTo: axis-user@ws.apache.org à àSubject: How to change the webservices URL (remove /services from the URL) à àHi, à à à àI want to change my webservice URL from à à http://localhost/webservices/services/myServiceName à à à àTo à à à àhttp://localhost/webservices/myServiceName (Remove /services from the URL) à à à àI've changed the following 2 parameters in axis2.xml à à à àparameter name=contextRoot/webservices/parameter à àparameter name=servicePathmyServiceName/parameter à à à àAfter changing this I can access my WSDL using the URL http://localhost/webservices/myServiceName?wsdl successfully. à à à àBut my End Point Reference is pointing (soap:address location in the WSDL) to http://localhost/webservices/myServiceName/myServiceName (Observe that myServiceName is repeated twice). à à à àNow when I try to access the webservice from the client for End Point http://localhost/webservice/myServiceName I'm getting an exception saying EPR (End Point Reference) not found). à à à àCan anyone tell me if I'm missing anything? à à à àThanks in advance à àRaghu à à à à à àFrom: Raghu Upadhyayula [mailto:[EMAIL PROTECTED] à àSent: Thursday, October 11, 2007 9:23 PM à àTo: axis-user@ws.apache.org à àSubject: RE: [AXIS2] Simple (?) config question à à à àHi Zhang, à à à à I've tried changing the contextRoot servicePath in axis2.xml. After changing that, I'm able to see the WSDL correctly in the browser (http://localhost/webservices/myService?wsdl ), but when I try to access the service from the client it is not working. à à à à When I observed the SOAP Address in the WSDL it is showing the address as http://localhost/webservices/myService/myService (service name is repeated twice) because of which when I give the end point as http://localhost/webservices/myService i'm getting a EPR not found exception. à à à àThanks à àRaghu à à à à-Original Message- à àFrom: zhongliang zhang [mailto:[EMAIL PROTECTED] à àSent: Thursday, October 11, 2007 9:05 PM à àTo: axis-user@ws.apache.org à àSubject: Re: [AXIS2] Simple (?) config question à à à àMaybe you can do that by adding following two parameters into axis2.xml à
RE: How to change the webservices URL (remove /services from the URL)
Edit your web.xml file to change the servlet mapping. Seach for url-pattern then edit the services/service_name and replace it with just a /service_name. It's very easy to screw this sort of thing up and take hours to get back to where you were. If you can live with the services/, I would leave it alone. -jeff _ From: Raghu Upadhyayula [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 17, 2007 2:36 PM To: axis-user@ws.apache.org Subject: How to change the webservices URL (remove /services from the URL) Hi, I want to change my webservice URL from http://localhost/webservices/services/myServiceName To http://localhost/webservices/myServiceName (Remove /services from the URL) I've changed the following 2 parameters in axis2.xml parameter name=contextRoot/webservices/parameter parameter name=servicePathmyServiceName/parameter After changing this I can access my WSDL using the URL http://localhost/webservices/myServiceName?wsdl successfully. But my End Point Reference is pointing (soap:address location in the WSDL) to http://localhost/webservices/myServiceName/myServiceName (Observe that myServiceName is repeated twice). Now when I try to access the webservice from the client for End Point http://localhost/webservice/myServiceName I'm getting an exception saying EPR (End Point Reference) not found). Can anyone tell me if I'm missing anything? Thanks in advance Raghu _ From: Raghu Upadhyayula [mailto:[EMAIL PROTECTED] Sent: Thursday, October 11, 2007 9:23 PM To: axis-user@ws.apache.org Subject: RE: [AXIS2] Simple (?) config question Hi Zhang, I've tried changing the contextRoot servicePath in axis2.xml. After changing that, I'm able to see the WSDL correctly in the browser (http://localhost/webservices/myService?wsdl ), but when I try to access the service from the client it is not working. When I observed the SOAP Address in the WSDL it is showing the address as http://localhost/webservices/myService/myService (service name is repeated twice) because of which when I give the end point as http://localhost/webservices/myService i'm getting a EPR not found exception. Thanks Raghu -Original Message- From: zhongliang zhang [mailto:[EMAIL PROTECTED] Sent: Thursday, October 11, 2007 9:05 PM To: axis-user@ws.apache.org Subject: Re: [AXIS2] Simple (?) config question Maybe you can do that by adding following two parameters into axis2.xml parameter name=contextRoot//parameter parameter name=servicePathaxis2/parameter I did not try it myself,maybe you can have a try. On 11/10/2007, Raghu Upadhyayula [EMAIL PROTECTED] wrote: Hi Deepal, According to what you said I've changed the contextRoot servicePath in axis2.xml. I've changed it like this. parameter name=contextRoot/webservices/parameter parameter name=servicePathmyService/parameter And when I go to http://localhost/webservices/myService?wsdl I'm able to see the WSDL. But in the WSDL the end point address is shown as soap:address location=http://10.5.1.241:80/webservices/myService/myService; / Because of this when I'm trying to run the client and access my webservice, I'm getting an exception The service cannot be found for the endpoint reference (EPR) http://localhost/webservices/myService Thanks Raghu -Original Message- From: Deepal jayasinghe [mailto:[EMAIL PROTECTED] Sent: Monday, October 08, 2007 8:27 AM To: axis-user@ws.apache.org Subject: Re: [AXIS2] Simple (?) config question Lorenzo wrote: Hi all, i need to change axis2 services path from http://localhost:8080/axis2/services/myService to http://localhost:8080/axis2/myService (possibly without move .aar archives) but i didn't find where to do it.. You can do that by adding following two parameters into axis2.xml parameter name=contextRoot/axis2/parameter parameter name=servicePathmyService/parameter Thanks Deepal
RE: How to change the webservices URL (remove /services from the URL)
Hi Jeff, I did change my web.xml servlet mapping to look for URL pattern /* instead of /services/* But the soap end point is pointing to http://localhost/webservices/myServiceName/myServiceName (myServiceName repeated twice). Thanks Raghu From: Walker, Jeff [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 17, 2007 11:50 AM To: axis-user@ws.apache.org Subject: RE: How to change the webservices URL (remove /services from the URL) Edit your web.xml file to change the servlet mapping. Seach for url-pattern then edit the services/service_name and replace it with just a /service_name. It's very easy to screw this sort of thing up and take hours to get back to where you were. If you can live with the services/, I would leave it alone. -jeff From: Raghu Upadhyayula [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 17, 2007 2:36 PM To: axis-user@ws.apache.org Subject: How to change the webservices URL (remove /services from the URL) Hi, I want to change my webservice URL from http://localhost/webservices/services/myServiceName To http://localhost/webservices/myServiceName (Remove /services from the URL) I've changed the following 2 parameters in axis2.xml parameter name=contextRoot/webservices/parameter parameter name=servicePathmyServiceName/parameter After changing this I can access my WSDL using the URL http://localhost/webservices/myServiceName?wsdl successfully. But my End Point Reference is pointing (soap:address location in the WSDL) to http://localhost/webservices/myServiceName/myServiceName (Observe that myServiceName is repeated twice). Now when I try to access the webservice from the client for End Point http://localhost/webservice/myServiceName I'm getting an exception saying EPR (End Point Reference) not found). Can anyone tell me if I'm missing anything? Thanks in advance Raghu From: Raghu Upadhyayula [mailto:[EMAIL PROTECTED] Sent: Thursday, October 11, 2007 9:23 PM To: axis-user@ws.apache.org Subject: RE: [AXIS2] Simple (?) config question Hi Zhang, I've tried changing the contextRoot servicePath in axis2.xml. After changing that, I'm able to see the WSDL correctly in the browser (http://localhost/webservices/myService?wsdl ), but when I try to access the service from the client it is not working. When I observed the SOAP Address in the WSDL it is showing the address as http://localhost/webservices/myService/myService (service name is repeated twice) because of which when I give the end point as http://localhost/webservices/myService i'm getting a EPR not found exception. Thanks Raghu -Original Message- From: zhongliang zhang [mailto:[EMAIL PROTECTED] Sent: Thursday, October 11, 2007 9:05 PM To: axis-user@ws.apache.org Subject: Re: [AXIS2] Simple (?) config question Maybe you can do that by adding following two parameters into axis2.xml parameter name=contextRoot//parameter parameter name=servicePathaxis2/parameter I did not try it myself,maybe you can have a try. On 11/10/2007, Raghu Upadhyayula [EMAIL PROTECTED] wrote: Hi Deepal, According to what you said I've changed the contextRoot servicePath in axis2.xml. I've changed it like this. parameter name=contextRoot/webservices/parameter parameter name=servicePathmyService/parameter And when I go to http://localhost/webservices/myService?wsdl I'm able to see the WSDL. But in the WSDL the end point address is shown as soap:address location=http://10.5.1.241:80/webservices/myService/myService; / Because of this when I'm trying to run the client and access my webservice, I'm getting an exception The service cannot be found for the endpoint reference (EPR) http://localhost/webservices/myService Thanks Raghu -Original Message- From: Deepal jayasinghe [mailto:[EMAIL PROTECTED] Sent: Monday, October 08, 2007 8:27 AM To: axis-user@ws.apache.org Subject: Re: [AXIS2] Simple (?) config question Lorenzo wrote: Hi all
RE: How to change the webservices URL (remove /services from the URL)
What's in your wsdl? ie. what is soap:address location=?/ equal to? -jeff _ From: Raghu Upadhyayula [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 17, 2007 3:04 PM To: axis-user@ws.apache.org Subject: RE: How to change the webservices URL (remove /services from the URL) Hi Jeff, I did change my web.xml servlet mapping to look for URL pattern /* instead of /services/* But the soap end point is pointing to http://localhost/webservices/myServiceName/myServiceName (myServiceName repeated twice). Thanks Raghu _ From: Walker, Jeff [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 17, 2007 11:50 AM To: axis-user@ws.apache.org Subject: RE: How to change the webservices URL (remove /services from the URL) Edit your web.xml file to change the servlet mapping. Seach for url-pattern then edit the services/service_name and replace it with just a /service_name. It's very easy to screw this sort of thing up and take hours to get back to where you were. If you can live with the services/, I would leave it alone. -jeff _ From: Raghu Upadhyayula [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 17, 2007 2:36 PM To: axis-user@ws.apache.org Subject: How to change the webservices URL (remove /services from the URL) Hi, I want to change my webservice URL from http://localhost/webservices/services/myServiceName To http://localhost/webservices/myServiceName (Remove /services from the URL) I've changed the following 2 parameters in axis2.xml parameter name=contextRoot/webservices/parameter parameter name=servicePathmyServiceName/parameter After changing this I can access my WSDL using the URL http://localhost/webservices/myServiceName?wsdl successfully. But my End Point Reference is pointing (soap:address location in the WSDL) to http://localhost/webservices/myServiceName/myServiceName (Observe that myServiceName is repeated twice). Now when I try to access the webservice from the client for End Point http://localhost/webservice/myServiceName I'm getting an exception saying EPR (End Point Reference) not found). Can anyone tell me if I'm missing anything? Thanks in advance Raghu _ From: Raghu Upadhyayula [mailto:[EMAIL PROTECTED] Sent: Thursday, October 11, 2007 9:23 PM To: axis-user@ws.apache.org Subject: RE: [AXIS2] Simple (?) config question Hi Zhang, I've tried changing the contextRoot servicePath in axis2.xml. After changing that, I'm able to see the WSDL correctly in the browser (http://localhost/webservices/myService?wsdl ), but when I try to access the service from the client it is not working. When I observed the SOAP Address in the WSDL it is showing the address as http://localhost/webservices/myService/myService (service name is repeated twice) because of which when I give the end point as http://localhost/webservices/myService i'm getting a EPR not found exception. Thanks Raghu -Original Message- From: zhongliang zhang [mailto:[EMAIL PROTECTED] Sent: Thursday, October 11, 2007 9:05 PM To: axis-user@ws.apache.org Subject: Re: [AXIS2] Simple (?) config question Maybe you can do that by adding following two parameters into axis2.xml parameter name=contextRoot//parameter parameter name=servicePathaxis2/parameter I did not try it myself,maybe you can have a try. On 11/10/2007, Raghu Upadhyayula [EMAIL PROTECTED] wrote: Hi Deepal, According to what you said I've changed the contextRoot servicePath in axis2.xml. I've changed it like this. parameter name=contextRoot/webservices/parameter
RE: How to change the webservices URL (remove /services from the URL)
Also, what is the name of your service, and what is the name of your portType? I suspect they are both the same name. -jeff _ From: Walker, Jeff Sent: Wednesday, October 17, 2007 3:16 PM To: 'axis-user@ws.apache.org' Subject: RE: How to change the webservices URL (remove /services from the URL) What's in your wsdl? ie. what is soap:address location=?/ equal to? -jeff _ From: Raghu Upadhyayula [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 17, 2007 3:04 PM To: axis-user@ws.apache.org Subject: RE: How to change the webservices URL (remove /services from the URL) Hi Jeff, I did change my web.xml servlet mapping to look for URL pattern /* instead of /services/* But the soap end point is pointing to http://localhost/webservices/myServiceName/myServiceName (myServiceName repeated twice). Thanks Raghu _ From: Walker, Jeff [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 17, 2007 11:50 AM To: axis-user@ws.apache.org Subject: RE: How to change the webservices URL (remove /services from the URL) Edit your web.xml file to change the servlet mapping. Seach for url-pattern then edit the services/service_name and replace it with just a /service_name. It's very easy to screw this sort of thing up and take hours to get back to where you were. If you can live with the services/, I would leave it alone. -jeff _ From: Raghu Upadhyayula [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 17, 2007 2:36 PM To: axis-user@ws.apache.org Subject: How to change the webservices URL (remove /services from the URL) Hi, I want to change my webservice URL from http://localhost/webservices/services/myServiceName To http://localhost/webservices/myServiceName (Remove /services from the URL) I've changed the following 2 parameters in axis2.xml parameter name=contextRoot/webservices/parameter parameter name=servicePathmyServiceName/parameter After changing this I can access my WSDL using the URL http://localhost/webservices/myServiceName?wsdl successfully. But my End Point Reference is pointing (soap:address location in the WSDL) to http://localhost/webservices/myServiceName/myServiceName (Observe that myServiceName is repeated twice). Now when I try to access the webservice from the client for End Point http://localhost/webservice/myServiceName I'm getting an exception saying EPR (End Point Reference) not found). Can anyone tell me if I'm missing anything? Thanks in advance Raghu _ From: Raghu Upadhyayula [mailto:[EMAIL PROTECTED] Sent: Thursday, October 11, 2007 9:23 PM To: axis-user@ws.apache.org Subject: RE: [AXIS2] Simple (?) config question Hi Zhang, I've tried changing the contextRoot servicePath in axis2.xml. After changing that, I'm able to see the WSDL correctly in the browser (http://localhost/webservices/myService?wsdl ), but when I try to access the service from the client it is not working. When I observed the SOAP Address in the WSDL it is showing the address as http://localhost/webservices/myService/myService (service name is repeated twice) because of which when I give the end point as http://localhost/webservices/myService i'm getting a EPR not found exception. Thanks Raghu -Original Message- From: zhongliang
RE: How to change the webservices URL (remove /services from the URL)
portType name=ResponsysWS service name=ResponsysWSService soap:address location=http://10.5.2.182:80/webservices/ResponsysWSService/ResponsysW SService / Thanks Raghu From: Walker, Jeff [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 17, 2007 12:19 PM To: axis-user@ws.apache.org Subject: RE: How to change the webservices URL (remove /services from the URL) Also, what is the name of your service, and what is the name of your portType? I suspect they are both the same name. -jeff From: Walker, Jeff Sent: Wednesday, October 17, 2007 3:16 PM To: 'axis-user@ws.apache.org' Subject: RE: How to change the webservices URL (remove /services from the URL) What's in your wsdl? ie. what is soap:address location=?/ equal to? -jeff From: Raghu Upadhyayula [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 17, 2007 3:04 PM To: axis-user@ws.apache.org Subject: RE: How to change the webservices URL (remove /services from the URL) Hi Jeff, I did change my web.xml servlet mapping to look for URL pattern /* instead of /services/* But the soap end point is pointing to http://localhost/webservices/myServiceName/myServiceName (myServiceName repeated twice). Thanks Raghu From: Walker, Jeff [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 17, 2007 11:50 AM To: axis-user@ws.apache.org Subject: RE: How to change the webservices URL (remove /services from the URL) Edit your web.xml file to change the servlet mapping. Seach for url-pattern then edit the services/service_name and replace it with just a /service_name. It's very easy to screw this sort of thing up and take hours to get back to where you were. If you can live with the services/, I would leave it alone. -jeff From: Raghu Upadhyayula [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 17, 2007 2:36 PM To: axis-user@ws.apache.org Subject: How to change the webservices URL (remove /services from the URL) Hi, I want to change my webservice URL from http://localhost/webservices/services/myServiceName To http://localhost/webservices/myServiceName (Remove /services from the URL) I've changed the following 2 parameters in axis2.xml parameter name=contextRoot/webservices/parameter parameter name=servicePathmyServiceName/parameter After changing this I can access my WSDL using the URL http://localhost/webservices/myServiceName?wsdl successfully. But my End Point Reference is pointing (soap:address location in the WSDL) to http://localhost/webservices/myServiceName/myServiceName (Observe that myServiceName is repeated twice). Now when I try to access the webservice from the client for End Point http://localhost/webservice/myServiceName I'm getting an exception saying EPR (End Point Reference) not found). Can anyone tell me if I'm missing anything? Thanks in advance Raghu From: Raghu Upadhyayula [mailto:[EMAIL PROTECTED] Sent: Thursday, October 11, 2007 9:23 PM To: axis-user@ws.apache.org Subject: RE: [AXIS2] Simple (?) config question Hi Zhang, I've tried changing the contextRoot servicePath in axis2.xml. After changing that, I'm able to see the WSDL correctly in the browser (http://localhost/webservices/myService?wsdl ), but when I try to access the service from the client it is not working
RE: How to change the webservices URL (remove /services from the URL)
I'm confused at to what is working now, and what you're looking for. But try: soap:address location=http://10.5.2.182:80/webservices/ResponsysWSService / _ From: Raghu Upadhyayula [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 17, 2007 4:05 PM To: axis-user@ws.apache.org Subject: RE: How to change the webservices URL (remove /services from the URL) portType name=ResponsysWS service name=ResponsysWSService soap:address location=http://10.5.2.182:80/webservices/ResponsysWSService/ResponsysW SService / Thanks Raghu _ From: Walker, Jeff [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 17, 2007 12:19 PM To: axis-user@ws.apache.org Subject: RE: How to change the webservices URL (remove /services from the URL) Also, what is the name of your service, and what is the name of your portType? I suspect they are both the same name. -jeff _ From: Walker, Jeff Sent: Wednesday, October 17, 2007 3:16 PM To: 'axis-user@ws.apache.org' Subject: RE: How to change the webservices URL (remove /services from the URL) What's in your wsdl? ie. what is soap:address location=?/ equal to? -jeff _ From: Raghu Upadhyayula [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 17, 2007 3:04 PM To: axis-user@ws.apache.org Subject: RE: How to change the webservices URL (remove /services from the URL) Hi Jeff, I did change my web.xml servlet mapping to look for URL pattern /* instead of /services/* But the soap end point is pointing to http://localhost/webservices/myServiceName/myServiceName (myServiceName repeated twice). Thanks Raghu _ From: Walker, Jeff [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 17, 2007 11:50 AM To: axis-user@ws.apache.org Subject: RE: How to change the webservices URL (remove /services from the URL) Edit your web.xml file to change the servlet mapping. Seach for url-pattern then edit the services/service_name and replace it with just a /service_name. It's very easy to screw this sort of thing up and take hours to get back to where you were. If you can live with the services/, I would leave it alone. -jeff _ From: Raghu Upadhyayula [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 17, 2007 2:36 PM To: axis-user@ws.apache.org Subject: How to change the webservices URL (remove /services from the URL) Hi, I want to change my webservice URL from http://localhost/webservices/services/myServiceName To http://localhost/webservices/myServiceName (Remove /services from the URL) I've changed the following 2 parameters in axis2.xml parameter name=contextRoot/webservices/parameter parameter name=servicePathmyServiceName/parameter After changing this I can access my WSDL using the URL http://localhost/webservices/myServiceName?wsdl successfully. But my End Point Reference is pointing (soap:address location in the WSDL) to http://localhost/webservices/myServiceName/myServiceName (Observe that myServiceName is repeated twice). Now when I try to access the webservice from the client for End Point http://localhost/webservice/myServiceName I'm getting an exception saying EPR (End Point Reference) not found
RE: How to change the webservices URL (remove /services from the URL)
The soap:address I've shown you below is from the generated WSDL from the ?wsdl. I can't change that. Thanks Raghu From: Walker, Jeff [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 17, 2007 1:32 PM To: axis-user@ws.apache.org Subject: RE: How to change the webservices URL (remove /services from the URL) I'm confused at to what is working now, and what you're looking for. But try: soap:address location=http://10.5.2.182:80/webservices/ResponsysWSService / From: Raghu Upadhyayula [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 17, 2007 4:05 PM To: axis-user@ws.apache.org Subject: RE: How to change the webservices URL (remove /services from the URL) portType name=ResponsysWS service name=ResponsysWSService soap:address location=http://10.5.2.182:80/webservices/ResponsysWSService/ResponsysW SService / Thanks Raghu From: Walker, Jeff [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 17, 2007 12:19 PM To: axis-user@ws.apache.org Subject: RE: How to change the webservices URL (remove /services from the URL) Also, what is the name of your service, and what is the name of your portType? I suspect they are both the same name. -jeff From: Walker, Jeff Sent: Wednesday, October 17, 2007 3:16 PM To: 'axis-user@ws.apache.org' Subject: RE: How to change the webservices URL (remove /services from the URL) What's in your wsdl? ie. what is soap:address location=?/ equal to? -jeff From: Raghu Upadhyayula [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 17, 2007 3:04 PM To: axis-user@ws.apache.org Subject: RE: How to change the webservices URL (remove /services from the URL) Hi Jeff, I did change my web.xml servlet mapping to look for URL pattern /* instead of /services/* But the soap end point is pointing to http://localhost/webservices/myServiceName/myServiceName (myServiceName repeated twice). Thanks Raghu From: Walker, Jeff [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 17, 2007 11:50 AM To: axis-user@ws.apache.org Subject: RE: How to change the webservices URL (remove /services from the URL) Edit your web.xml file to change the servlet mapping. Seach for url-pattern then edit the services/service_name and replace it with just a /service_name. It's very easy to screw this sort of thing up and take hours to get back to where you were. If you can live with the services/, I would leave it alone. -jeff From: Raghu Upadhyayula [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 17, 2007 2:36 PM To: axis-user@ws.apache.org Subject: How to change the webservices URL (remove /services from the URL) Hi, I want to change my webservice URL from http://localhost/webservices/services/myServiceName To http://localhost/webservices/myServiceName (Remove /services from the URL) I've changed the following 2 parameters in axis2.xml parameter name=contextRoot/webservices/parameter parameter name=servicePathmyServiceName/parameter After changing this I can access my WSDL using the URL http://localhost/webservices/myServiceName?wsdl successfully
RE: How to change the webservices URL (remove /services from the URL)
portType name=ResponsysWS service name=ResponsysWSService soap:address location=http://10.5.2.182:80/webservices/ResponsysWSService/ResponsysW SService / Thanks Raghu From: Walker, Jeff [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 17, 2007 12:19 PM To: axis-user@ws.apache.org Subject: RE: How to change the webservices URL (remove /services from the URL) Also, what is the name of your service, and what is the name of your portType? I suspect they are both the same name. -jeff From: Walker, Jeff Sent: Wednesday, October 17, 2007 3:16 PM To: 'axis-user@ws.apache.org' Subject: RE: How to change the webservices URL (remove /services from the URL) What's in your wsdl? ie. what is soap:address location=?/ equal to? -jeff àà àà ààFrom: Raghu Upadhyayula [mailto:[EMAIL PROTECTED] ààSent: Wednesday, October 17, 2007 3:04 PM ààTo: axis-user@ws.apache.org ààSubject: RE: How to change the webservices URL (remove /services from the URL) ààHi Jeff, àà ààI did change my web.xml servlet mapping to look for URL pattern /* instead of /services/* àà ààBut the soap end point is pointing to http://localhost/webservices/myServiceName/myServiceName (myServiceName repeated twice). àà ààThanks ààRaghu àà àà ààFrom: Walker, Jeff [mailto:[EMAIL PROTECTED] ààSent: Wednesday, October 17, 2007 11:50 AM ààTo: axis-user@ws.apache.org ààSubject: RE: How to change the webservices URL (remove /services from the URL) àà ààEdit your web.xml file to change the servlet mapping. ààSeach for url-pattern then edit the services/service_name and replace it with just a /service_name. It's very easy to screw this sort of thing up and take hours to get back to where you were. If you can live with the services/, I would leave it alone. àà-jeff àà àà ààFrom: Raghu Upadhyayula [mailto:[EMAIL PROTECTED] ààSent: Wednesday, October 17, 2007 2:36 PM ààTo: axis-user@ws.apache.org ààSubject: How to change the webservices URL (remove /services from the URL) ààHi, àà ààI want to change my webservice URL from àà http://localhost/webservices/services/myServiceName àà ààTo àà ààhttp://localhost/webservices/myServiceName (Remove /services from the URL) àà ààI've changed the following 2 parameters in axis2.xml àà ààparameter name=contextRoot/webservices/parameter ààparameter name=servicePathmyServiceName/parameter àà ààAfter changing this I can access my WSDL using the URL http://localhost/webservices/myServiceName?wsdl successfully. àà ààBut my End Point Reference is pointing (soap:address location in the WSDL) to http://localhost/webservices/myServiceName/myServiceName (Observe that myServiceName is repeated twice). àà ààNow when I try to access the webservice from the client for End Point http://localhost/webservice/myServiceName I'm getting an exception saying EPR (End Point Reference) not found). àà ààCan anyone tell me if I'm missing anything? àà ààThanks in advance ààRaghu àà àà ààFrom: Raghu Upadhyayula [mailto:[EMAIL PROTECTED] ààSent: Thursday, October 11, 2007 9:23 PM ààTo: axis-user@ws.apache.org ààSubject: RE: [AXIS2] Simple (?) config question àà ààHi Zhang, àà àà I've tried changing the contextRoot servicePath in axis2.xml. After changing that, I'm able to see the WSDL correctly in the browser (http://localhost/webservices/myService?wsdl ), but when I try to access the service from the client it is not working. àà àà When I observed the SOAP Address in the WSDL it is showing the address as http://localhost/webservices/myService/myService (service name is repeated twice) because of which when I give the end point as http://localhost/webservices/myService i'm getting a EPR not found exception. àà ààThanks ààRaghu àà àà-Original Message- ààFrom: zhongliang zhang [mailto:[EMAIL PROTECTED] ààSent: Thursday, October 11, 2007 9:05 PM ààTo: axis-user@ws.apache.org ààSubject: Re: [AXIS2] Simple (?) config question àà ààMaybe you can do that by adding following two parameters into axis2.xml àà àà parameter name=contextRoot//parameter àà parameter name=servicePathaxis2/parameter ààI did not try it myself,maybe you can have a try. àà ààOn 11/10/2007, Raghu Upadhyayula [EMAIL PROTECTED] wrote: àà Hi Deepal, àà ààAccording to what you said I've changed the contextRoot àà servicePath in axis2.xml. àà ààI've changed it like this. àà àà parameter name=contextRoot/webservices/parameter