One of the CXF committers, Glen Mazza, has a number of excellent tutorials at this location:
http://www.jroller.com/gmazza/entry/web_service_tutorial You might want to check these out first as well. Mark On Apr 8, 2012 1:40 PM, "mlotfi" <[email protected]> wrote: > I am new to web services, I bought a book and started to learn from it, the > WSDL is : > > <?xml version="1.0" encoding="UTF-8" standalone="no"?> > <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" > xmlns:tns="http://ttdev.com/ss" > xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" > xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="SimpleService" > targetNamespace="http://ttdev.com/ss"> > <wsdl:types> > <xsd:schema targetNamespace="http://ttdev.com/ss"> > <xsd:element name="concatRequest"> > <xsd:complexType> > <xsd:sequence> > <xsd:element name="s1" type="xsd:string" /> > <xsd:element name="s2" type="xsd:string"></xsd:element> > </xsd:sequence> > </xsd:complexType> > </xsd:element> > <xsd:element name="concatResponse" type="xsd:string"> > > </xsd:element> > </xsd:schema> > </wsdl:types> > <wsdl:message name="concatRequest"> > <wsdl:part element="tns:concatRequest" name="parameters"/> > </wsdl:message> > <wsdl:message name="concatResponse"> > <wsdl:part element="tns:concatResponse" name="parameters"/> > </wsdl:message> > <wsdl:portType name="SimpleService"> > <wsdl:operation name="concat"> > <wsdl:input message="tns:concatRequest"/> > <wsdl:output message="tns:concatResponse"/> > </wsdl:operation> > </wsdl:portType> > <wsdl:binding name="SimpleServiceSOAP" type="tns:SimpleService"> > <soap:binding style="document" > transport="http://schemas.xmlsoap.org/soap/http"/> > <wsdl:operation name="concat"> > <soap:operation soapAction="http://ttdev.com/ss/NewOperation"/> > <wsdl:input> > <soap:body use="literal"/> > </wsdl:input> > <wsdl:output> > <soap:body use="literal"/> > </wsdl:output> > </wsdl:operation> > </wsdl:binding> > <wsdl:service name="SimpleService"> > <wsdl:port binding="tns:SimpleServiceSOAP" name="p1"> > <soap:address location="http://localhost:8080/ss/p1"/> > </wsdl:port> > </wsdl:service> > </wsdl:definitions> > > > I run the SimpleService_P1_Server, it s working, but when I run the client > : > SimpleService_P1_Client I got this exeption : > > Apr 8, 2012 9:51:47 AM com.ttdev.ss.SimpleService_Service INFO: Can not > initialize the default wsdl from src/main/resources/SimpleService.wsdl > Exception in thread "main" javax.xml.ws.WebServiceException: Port > {http://ttdev.com/ss}p1 not found. at > org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:328) at > org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:319) at > javax.xml.ws.Service.getPort(Unknown Source) at > com.ttdev.ss.SimpleService_Service.getP1(SimpleService_Service.java:56) at > com.ttdev.ss.SimpleService_P1_Client.main(SimpleService_P1_Client.java:49) > > Thanks, your help is appreciated. > > -- > View this message in context: > http://cxf.547215.n5.nabble.com/Port-http-ttdev-com-ss-p1-not-found-tp5626138p5626138.html > Sent from the cxf-user mailing list archive at Nabble.com. >
