Hi , Though you have multiple EPR in the wsdl , at the server side Axis2 will ignore all those and generate its own epr based on - Available transports - IP and Port - Service name
That is why you have faced such an issue , may be we will be able to solve that issue but not for 1.3, so please create a JIRA. Thanks Deepal [EMAIL PROTECTED] wrote: > > Here is theinteresting part of the wsdl file and the services.xml of > my web service: > Servicetest.wsdl: > <wsdl:service name="ServiceTest"> > <wsdl:port name="ServiceTest_services" > binding="tns:WebServiceTestSoapBinding"> > <wsdlsoap:address > location="http://192.168.31.156:9080/Dev/services/ServiceTest"/> > </wsdl:port> > <wsdl:port name="ServiceTest_server" > binding="tns:WebServiceTestSoapBinding"> > <wsdlsoap:address > location="http://192.168.31.156:9080/Dev/serverAuthent/ServiceTest"/> > </wsdl:port> > <wsdl:port name="ServiceTest_client" > binding="tns:WebServiceTestSoapBinding"> > <wsdlsoap:address > location="http://192.168.31.156:9080/Dev/clientAuthent/ServiceTest"/> > </wsdl:port> > </wsdl:service> > > services.xml: > <service name="ServiceTest"> > <Description>Web service test</Description> > <module ref="trace"/> > <module ref="header_v2"/> > <module ref="dsig"/> > <messageReceivers> > <messageReceiver > mep="http://www.w3.org/ns/wsdl/in-out" > class="ServiceTestMessageReceiverInOut"/> > </messageReceivers> > <parameter locked="false" > name="ServiceClass">ServiceTestSkeleton</parameter> > <parameter locked="false" > name="useOriginalwsdl">true</parameter> > <parameter locked="false" > name="modifyUserWSDLPortAddress">false</parameter> > <operation name="getTest" > mep="http://www.w3.org/ns/wsdl/in-out"> > > <actionMapping>http://localhost/services/ServiceTest/getTest</actionMapping> > > > <outputActionMapping>http://localhost/services/ServiceTest/Test/getTestResponse</outputActionMapping> > > </operation> > </service> > > When I'm logging in the admin page, and list the available services, > the Service Test has always the same Service EPR: > http://localhost:9080/fsaDev/services/ServiceTest > > If I'm calling getEPRsForService I'm also getting only this EPR. > > What an I doing wrong? > > Thanks in advance, > > Pierre Casenove > > > > [EMAIL PROTECTED] > > 13/07/2007 15:13 > Veuillez répondre à > [email protected] > > > > A > [email protected] > cc > > Objet > RE [AXIS2]Accessing webservice through multiple addresses > > > > > > > > > > > Hi again, > Juste to be more precise (It's been a long time I'm working on this > issue, I've been quite quick in my first email): > my web.xml defines my servlet, extending AxisServlet: > <servlet-name>FSAServlet</servlet-name> > and the corresponding mapping: > <servlet-mapping> > <servlet-name>FSAServlet</servlet-name> > <url-pattern>/serverAuthent/*</url-pattern> > </servlet-mapping> > > <servlet-mapping> > <servlet-name>FSAServlet</servlet-name> > <url-pattern>/services/*</url-pattern> > </servlet-mapping> > > <servlet-mapping> > <servlet-name>FSAServlet</servlet-name> > <url-pattern>/servlet/FSAServlet</url-pattern> > </servlet-mapping> > > <servlet-mapping> > <servlet-name>FSAServlet</servlet-name> > <url-pattern>/clientAuthent/*</url-pattern> > </servlet-mapping> > > This allows under Axis1 to have its webservices reachable from the > three access URLs. > But on Axis2, when I'm logging in to the admin pages-> Available > Services, I see the deployes services with Service EPR: > Service EPR : http://localhost:9080/fsaDev/services/SGPAWebService_0.0.1 > > How can I define three different Service EPR for each webservice? I've > been looking around services.xml; web.xml and axis2.xml with no > chance.... I can't use ws:addressing as some of the clients doesn't > implement it. > I'm surely missing a concept. > > Thanks in advance for your help, > > Pierre Casenove > > > [EMAIL PROTECTED] > > 13/07/2007 11:15 > Veuillez répondre à > [email protected] > > > A > [email protected] > cc > > Objet > [AXIS2]Accessing webservice through multiple addresses > > > > > > > > > > > > > Hello, > I am working on the migration from AXIS1 to AXIS2 of webservices. > These are currently accessed through 3 different addresses: > http://hostname/services/* > https://hostname/serverAuthent/* > https://hostname/clientAuthent/* > > It works flowlessly with AXIS1 but with AXIS2, only the first address > is working. > The two others gives me : [WebContainer : 0] 2007-07-13 10:39:34,603 > DEBUG Servlet.java [handleFault] org.apache.axis2.AxisFault: The > service cannot be found for the endpoint reference (EPR) > > How can I configure multiple EPR for my webservices in Axis2? > Thanks in advance, > > Pierre Casenove > -- Thanks, Deepal ................................................................ "The highest tower is built one brick at a time" --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
