Just try http://localhost:8080/your-war-name/services/
You should get a list of all services deployed.

2008/4/15 Freeman Fang <[EMAIL PROTECTED]>:

> Hi,
> Which url you are using to access the the service?
> It should be http://localhost:8080/your-war-name/services/HelloWorld
> according to your configuration.
> And use http://localhost:8080/your-war-name/services/HelloWorld?wsdl to
> access the wsdl
> I assume your tomcat server use 8080 port.
> Regards
> Freeman
>
> Jackey Ding wrote:
> > Hi,
> >
> > I success deploy a webservice into tomcat, but I can't find the right
> url to
> > access it. here is my configuration
> >
> >
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> >
> > Web.xml
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> >
> > <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
> > 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd";>
> > <web-app>
> >     <display-name>cxf</display-name>
> >     <description>cxf</description>
> >
> >     <servlet>
> >         <servlet-name>CXFServlet</servlet-name>
> >         <display-name>CXF Servlet</display-name>
> >         <description>Apache CXF Endpoint</description>
> >
> >
> <servlet-class>org.apache.cxf.transport.servlet.CXFServlet</servlet-class>
> >         <load-on-startup>1</load-on-startup>
> >     </servlet>
> >     <servlet-mapping>
> >         <servlet-name>CXFServlet</servlet-name>
> >         <url-pattern>/services/*</url-pattern>
> >     </servlet-mapping>
> >     <session-config>
> >         <session-timeout>60</session-timeout>
> >     </session-config>
> > </web-app>
> >
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> >  cxf-servlet.xml:
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> > <beans xmlns="http://www.springframework.org/schema/beans";
> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> > xmlns:jaxws="http://cxf.apache.org/jaxws";
> > xmlns:soap="http://cxf.apache.org/bindings/soap";
> > xsi:schemaLocation="
> > http://www.springframework.org/schema/beans
> > http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
> > http://cxf.apache.org/bindings/soap
> > http://cxf.apache.org/schemas/configuration/soap.xsd
> > http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd";>
> >
> >
> > <jaxws:endpoint
> >     id="P2Pprovider_xml_bare"
> >     implementor="demo.hw.server.HelloWorldImpl"
> >     wsdlLocation="WEB-INF/wsdl/P2Pprovider.wsdl"
> >     address="/HelloWorld" >
> > </jaxws:endpoint>
> > </beans>
> >
> >
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> >
> > P2Pprovider.wsdl
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> > <wsdl:definitions
> >  xmlns:ns1="http://schemas.xmlsoap.org/soap/http";
> >  xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
> >  xmlns:tns="http://server.hw.demo/";
> >  xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
> >  xmlns:xsd="http://www.w3.org/2001/XMLSchema";
> >  name="HelloWorldService"
> >  targetNamespace="http://server.hw.demo/";>
> >   <wsdl:types>
> > <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema";
> > attributeFormDefault="unqualified" elementFormDefault="unqualified"
> > targetNamespace="http://server.hw.demo/";>
> >     <xs:element name="getUsers" type="tns:getUsers"/>
> >     <xs:element name="getUsersResponse" type="tns:getUsersResponse"/>
> >     <xs:element name="sayHi" type="tns:sayHi"/>
> >     <xs:element name="sayHiResponse" type="tns:sayHiResponse"/>
> >     <xs:element name="sayHiToUser" type="tns:sayHiToUser"/>
> >     <xs:element name="sayHiToUserResponse"
> type="tns:sayHiToUserResponse"/>
> >     <xs:complexType name="sayHi">
> >         <xs:sequence>
> >             <xs:element minOccurs="0" name="arg0" type="xs:string"/>
> >         </xs:sequence>
> >     </xs:complexType>
> >     <xs:complexType name="sayHiResponse">
> >         <xs:sequence>
> >             <xs:element minOccurs="0" name="return" type="xs:string"/>
> >         </xs:sequence>
> >     </xs:complexType>
> >     <xs:complexType name="sayHiToUser">
> >         <xs:sequence>
> >             <xs:element minOccurs="0" name="arg0" type="tns:User"/>
> >         </xs:sequence>
> >     </xs:complexType>
> >     <xs:complexType name="User">
> >         <xs:sequence>
> >             <xs:element minOccurs="0" name="name" type="xs:string"/>
> >         </xs:sequence>
> >     </xs:complexType>
> >     <xs:complexType name="sayHiToUserResponse">
> >         <xs:sequence>
> >             <xs:element minOccurs="0" name="return" type="xs:string"/>
> >         </xs:sequence>
> >     </xs:complexType>
> >     <xs:complexType name="getUsers">
> >         <xs:sequence/>
> >     </xs:complexType>
> >     <xs:complexType name="getUsersResponse">
> >         <xs:sequence>
> >             <xs:element minOccurs="0" name="return"
> > type="tns:IntegerUserMap"/>
> >         </xs:sequence>
> >     </xs:complexType>
> >     <xs:complexType name="IntegerUserMap">
> >         <xs:sequence>
> >             <xs:element maxOccurs="unbounded" minOccurs="0" name="entry"
> > type="tns:IdentifiedUser"/>
> >         </xs:sequence>
> >     </xs:complexType>
> >     <xs:complexType name="IdentifiedUser">
> >         <xs:sequence>
> >             <xs:element name="id" type="xs:int"/>
> >             <xs:element minOccurs="0" name="user" type="tns:User"/>
> >         </xs:sequence>
> >     </xs:complexType>
> > </xs:schema>
> >   </wsdl:types>
> >   <wsdl:message name="sayHiToUserResponse">
> >     <wsdl:part element="tns:sayHiToUserResponse" name="parameters">
> >     </wsdl:part>
> >   </wsdl:message>
> >   <wsdl:message name="getUsers">
> >     <wsdl:part element="tns:getUsers" name="parameters">
> >     </wsdl:part>
> >   </wsdl:message>
> >   <wsdl:message name="sayHiToUser">
> >     <wsdl:part element="tns:sayHiToUser" name="parameters">
> >     </wsdl:part>
> >   </wsdl:message>
> >   <wsdl:message name="sayHi">
> >     <wsdl:part element="tns:sayHi" name="parameters">
> >     </wsdl:part>
> >   </wsdl:message>
> >   <wsdl:message name="sayHiResponse">
> >     <wsdl:part element="tns:sayHiResponse" name="parameters">
> >     </wsdl:part>
> >   </wsdl:message>
> >   <wsdl:message name="getUsersResponse">
> >     <wsdl:part element="tns:getUsersResponse" name="parameters">
> >     </wsdl:part>
> >   </wsdl:message>
> >   <wsdl:portType name="HelloWorld">
> >     <wsdl:operation name="sayHi">
> >       <wsdl:input message="tns:sayHi" name="sayHi">
> >     </wsdl:input>
> >       <wsdl:output message="tns:sayHiResponse" name="sayHiResponse">
> >     </wsdl:output>
> >     </wsdl:operation>
> >     <wsdl:operation name="sayHiToUser">
> >       <wsdl:input message="tns:sayHiToUser" name="sayHiToUser">
> >     </wsdl:input>
> >       <wsdl:output message="tns:sayHiToUserResponse"
> > name="sayHiToUserResponse">
> >     </wsdl:output>
> >     </wsdl:operation>
> >     <wsdl:operation name="getUsers">
> >       <wsdl:input message="tns:getUsers" name="getUsers">
> >     </wsdl:input>
> >       <wsdl:output message="tns:getUsersResponse"
> name="getUsersResponse">
> >     </wsdl:output>
> >     </wsdl:operation>
> >   </wsdl:portType>
> >   <wsdl:binding name="HelloWorldImplServiceSoapBinding"
> > type="tns:HelloWorld">
> >     <soap:binding style="document" transport="
> > http://schemas.xmlsoap.org/soap/http"/<
> http://schemas.xmlsoap.org/soap/http%22/>
> >
> >     <wsdl:operation name="sayHi">
> >       <soap:operation soapAction="" style="document"/>
> >       <wsdl:input name="sayHi">
> >         <soap:body use="literal"/>
> >       </wsdl:input>
> >       <wsdl:output name="sayHiResponse">
> >         <soap:body use="literal"/>
> >       </wsdl:output>
> >     </wsdl:operation>
> >     <wsdl:operation name="sayHiToUser">
> >       <soap:operation soapAction="" style="document"/>
> >       <wsdl:input name="sayHiToUser">
> >         <soap:body use="literal"/>
> >       </wsdl:input>
> >       <wsdl:output name="sayHiToUserResponse">
> >         <soap:body use="literal"/>
> >       </wsdl:output>
> >     </wsdl:operation>
> >     <wsdl:operation name="getUsers">
> >       <soap:operation soapAction="" style="document"/>
> >       <wsdl:input name="getUsers">
> >         <soap:body use="literal"/>
> >       </wsdl:input>
> >       <wsdl:output name="getUsersResponse">
> >         <soap:body use="literal"/>
> >       </wsdl:output>
> >     </wsdl:operation>
> >   </wsdl:binding>
> >   <wsdl:service name="HelloWorldImplService">
> >     <wsdl:port binding="tns:HelloWorldImplServiceSoapBinding"
> > name="HelloWorldImplPort">
> >       <soap:address
> > location="http://localhost:9000/helloWorld"/<
> http://localhost:9000/helloWorld%22/>
> >
> >     </wsdl:port>
> >   </wsdl:service>
> > </wsdl:definitions>
> >
> > Anyone could give me a hint?
> >
> > Thanks in advance
> >
> > Jackey
> >
>
>


-- 
Thanks,
Mick Knutson

http://www.baselogic.com
http://www.blincmagazine.com
http://www.linkedin.com/in/mickknutson
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/BLiNCMagazine
http://tahoe.baselogic.com
---

Reply via email to