Hi Reddy; I fixed the bug yesterday , can you please check with the nightly builds.
Thanks Deepal >Hi I have created a simple helloWorld webservice, and I have placed > >1) >HelloWorld under axis2/WEB-INF/services > >HelloWorld > | > | META-INF > | services.xml > |HelloWorld.class > >But I get this error in tomcat cmd window.Same with weblogic. > > >- Error in schema generating null >java.lang.NullPointerException > at >org.apache.ws.java2wsdl.Java2WSDLUtils.namespaceFromClassName(Java2WS >DLUtils.java:51) > at >org.apache.ws.java2wsdl.Java2WSDLUtils.schemaNamespaceFromClassName(J >ava2WSDLUtils.java:77) > at >org.apache.ws.java2wsdl.SchemaGenerator.<init>(SchemaGenerator.java:7 > > >Can anyone help me out. > >2) When I ignore this error and the see my webservices wsdl using > >http://10.8.2.177:8080/axis2/services/HelloWorld?wsdl > >I see the file but when I try to generate the stub using wsdl2java I get >few lines in the stub unreachable ..lines are > > //Unknown style!! No code is >generated > throw new >UnsupportedOperationException("Unknown Style"); > > > // create message context with that soap envelope > org.apache.axis2.context.MessageContext _messageContext = new >org.apache.axis2.context.MessageContext() ; > _messageContext.setEnvelope(env); > > >My Wsdl file is auto generated using the axis2. wsdl is > >- <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" >xmlns:axis2="http://ws.apache.org/axis2" >xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" >xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" >xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" >xmlns:ns1="http://org.apache.axis2/xsd" >xmlns:xs="http://www.w3.org/2001/XMLSchema" >xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" >targetNamespace="http://ws.apache.org/axis2"> > <wsdl:types /> > <wsdl:message name="sayHelloMessage" /> > <wsdl:message name="sayHelloResponse" /> >- <wsdl:portType name="HelloWorldPortType"> >- <wsdl:operation name="sayHello"> > <wsdl:input message="axis2:sayHelloMessage" /> > <wsdl:output message="axis2:sayHelloResponse" /> > </wsdl:operation> > </wsdl:portType> >- <wsdl:binding type="axis2:HelloWorldPortType" >name="HelloWorldSOAP11Binding"> > <soap:binding style="document" >transport="http://schemas.xmlsoap.org/soap/http" /> >- <wsdl:operation name="sayHello"> > <soap:operation style="document" soapAction="urn:sayHello" /> >- <wsdl:input> > <soap:body namespace="http://ws.apache.org/axis2" use="literal" /> > </wsdl:input> >- <wsdl:output> > <soap:body namespace="http://ws.apache.org/axis2" use="literal" /> > </wsdl:output> > </wsdl:operation> > </wsdl:binding> >- <wsdl:binding type="axis2:HelloWorldPortType" >name="HelloWorldSOAP12Binding"> > <soap12:binding style="document" >transport="http://schemas.xmlsoap.org/soap/http" /> >- <wsdl:operation name="sayHello"> > <soap12:operation style="document" soapAction="urn:sayHello" /> >- <wsdl:input> > <soap12:body namespace="http://ws.apache.org/axis2" use="literal" /> > </wsdl:input> >- <wsdl:output> > <soap12:body namespace="http://ws.apache.org/axis2" use="literal" /> > </wsdl:output> > </wsdl:operation> > </wsdl:binding> >- <wsdl:binding type="axis2:HelloWorldPortType" >name="HelloWorldHttpBinding"> > <http:binding verb="POST" /> >- <wsdl:operation name="sayHello"> > <http:operation location="sayHello" /> >- <wsdl:input> > <mime:content type="text/xml" /> > </wsdl:input> >- <wsdl:output> > <mime:content type="text/xml" /> > </wsdl:output> > </wsdl:operation> > </wsdl:binding> >- <wsdl:service name="HelloWorld"> >- <wsdl:port binding="axis2:HelloWorldSOAP11Binding" >name="HelloWorldSOAP11port0"> > <soap:address >location="http://10.8.2.177:8080/axis2/services/HelloWorld" /> > </wsdl:port> >- <wsdl:port binding="axis2:HelloWorldSOAP12Binding" >name="HelloWorldSOAP12port0"> > <soap12:address >location="http://10.8.2.177:8080/axis2/services/HelloWorld" /> > </wsdl:port> >- <wsdl:port binding="axis2:HelloWorldHttpBinding" >name="HelloWorldHttpport0"> > <http:address location="http://10.8.2.177:8080/axis2/rest/HelloWorld" >/> > </wsdl:port> > </wsdl:service> > </wsdl:definitions> > >Regards >Sanket > > >This message (including any attachments) contains confidential information >intended for a specific individual and purpose, and is protected by law. If >you are not the intended recipient, you should delete this message. > > >Any disclosure, copying, or distribution of this message, or the taking of any >action based on it, is strictly prohibited. [v.E.1] > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > -- Thanks, Deepal ................................................................ ~Future is Open~ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
