Hi Glen,
Thanks for the reply. I changed the typo error eventhen I'm getting the same issue it prompts WSDLToJava Error: org.apache.cxf.wsdl11.WSDLRuntimeException: Fail to create wsd l definition from : file:/F:/Apache%20CXF%20practicals/helloworld.wsdl Caused by : WSDLException: faultCode=PARSER_ERROR: com.ctc.wstx.exc.WstxParsingE xception: Undeclared namespace prefix "xs" at [row,col,system-id]: [3,106,"file:/F:/Apache%20CXF%20practicals/helloworld.w sdl"] Glen I'm following your tutorials, but just now I want to why this is happening. On Sat, Nov 3, 2012 at 11:39 PM, Glen Mazza <[email protected]> wrote: > Typo--It's complaining about not finding "hellpworld", not "helloworld". > My Maven-based tutorial is here BTW: http://www.jroller.com/gmazza/** > entry/web_service_tutorial<http://www.jroller.com/gmazza/entry/web_service_tutorial>. > > Glen > > > On 11/03/2012 01:15 PM, selvakumar netaji wrote: > >> Hi All, >> >> I'm learning java web services. I've created a hello world service and >> tested with the stand alone client. It was working fine. >> >> >> >> I checked the wsdl using the >> >> http://localhost:9000/**helloWorld?wsdl<http://localhost:9000/helloWorld?wsdl> >> >> I saved the wsdl and used it for the wsdl first method, while using the >> wsdl2java tool I'm getting the following error. >> >> >> >> WSDLToJava Error: org.apache.cxf.wsdl11.**WSDLRuntimeException: Fail to >> create wsd >> l definition from : file:/z:/Apache%20CXF%**20practicals/hellpworld.wsdl >> Caused by : WSDLException: faultCode=PARSER_ERROR: c >> at [row,col,system-id]: >> [3,106,"file:/z:/Apache%20CXF%**20practicals/hellpworld.w >> sdl"] >> >> >> >> >> >> My wsdl file is >> >> >> >> <wsdl:definitions name="**HelloWorldServiceService" targetNamespace=" >> http://serviceinterfaces/" >> xmlns:wsdl="http://schemas.**xmlsoap.org/wsdl/<http://schemas.xmlsoap.org/wsdl/> >> " >> xmlns:tns="http://**customerservice.example.com/<http://customerservice.example.com/>" >> xmlns:xsd=" >> http://www.w3.org/2001/**XMLSchema <http://www.w3.org/2001/XMLSchema>" >> xmlns:soap=" >> http://schemas.xmlsoap.org/**wsdl/soap/<http://schemas.xmlsoap.org/wsdl/soap/> >> "> >> <wsdl:types> >> <xs:schema elementFormDefault="**unqualified" targetNamespace=" >> http://serviceinterfaces/" version="1.0"> >> <xs:element name="sayHello" type="tns:sayHello"/> >> <xs:element name="sayHelloResponse" type="tns:sayHelloResponse"/> >> <xs:complexType name="sayHello"> >> <xs:sequence> >> <xs:element minOccurs="0" name="text" type="xs:string"/> >> </xs:sequence> >> </xs:complexType> >> <xs:complexType name="sayHelloResponse"> >> <xs:sequence> >> <xs:element minOccurs="0" name="return" type="xs:string"/> >> </xs:sequence> >> </xs:complexType> >> </xs:schema> >> </wsdl:types> >> <wsdl:message name="sayHelloResponse"> >> <wsdl:part element="tns:sayHelloResponse" name="parameters"> >> </wsdl:part> >> </wsdl:message> >> <wsdl:message name="sayHello"> >> <wsdl:part element="tns:sayHello" name="parameters"> >> </wsdl:part> >> </wsdl:message> >> <wsdl:portType name="HelloWorldService"> >> <wsdl:operation name="sayHello"> >> <wsdl:input message="tns:sayHello" name="sayHello"> >> </wsdl:input> >> <wsdl:output message="tns:sayHelloResponse" >> name="sayHelloResponse"> >> </wsdl:output> >> </wsdl:operation> >> </wsdl:portType> >> <wsdl:binding name="**HelloWorldServiceServiceSoapBi**nding" >> type="tns:HelloWorldService"> >> <soap:binding style="document" transport=" >> http://schemas.xmlsoap.org/**soap/http<http://schemas.xmlsoap.org/soap/http> >> "/> >> <wsdl:operation name="sayHello"> >> <soap:operation soapAction="" style="document"/> >> <wsdl:input name="sayHello"> >> <soap:body use="literal"/> >> </wsdl:input> >> <wsdl:output name="sayHelloResponse"> >> <soap:body use="literal"/> >> </wsdl:output> >> </wsdl:operation> >> </wsdl:binding> >> <wsdl:service name="**HelloWorldServiceService"> >> <wsdl:port binding="tns:**HelloWorldServiceServiceSoapBi**nding" >> name="HelloWorldServicePort"> >> <soap:address >> location="http://localhost:**9000/helloWorld<http://localhost:9000/helloWorld> >> "/> >> </wsdl:port> >> </wsdl:service> >> </wsdl:definitions> >> >> > > -- > Glen Mazza > Talend Community Coders - coders.talend.com > blog: www.jroller.com/gmazza > >
