Dear All,
I am developing Axis - Document Literal web services, taking a
sample example.
I have generated WSDL 2 Java, it's successful BUT
When i try to Deploy it using AdminClient in axis. it is throwing
Exception.
See Exception :-
Processing file
/home/surekha/workspace/ezsan/src/webservices/wsdoclittest/book/deploy.wsdd
Exception: AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.lang.reflect.InvocationTargetException
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}hostname:vibpj178
I think it's something related to beanMapping or typeMapping i have putted
bean Mapping in server-config.wsdd.
but not working.
Please see the deploy.wsdd :
<deployment
xmlns="http://xml.apache.org/axis/wsdd/"
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
<!-- Services from SimpleService WSDL service -->
<service name="SimpleServiceSOAP" provider="java:RPC" style="document"
use="literal">
<parameter name="wsdlTargetNamespace" value="urn:BookEngine"/>
<parameter name="wsdlServiceElement" value="SimpleService"/>
<parameter name="schemaUnqualified" value="urn:BookEngine"/>
<parameter name="wsdlServicePort" value="SimpleServiceSOAP"/>
<parameter name="className"
value="webservices.wsdoclittest.book.SimpleServiceSOAPImpl"/>
<parameter name="wsdlPortType" value="SimpleService"/>
<parameter name="typeMappingVersion" value="1.2"/>
<operation name="concat" qname="concat" returnQName="concatResponse"
returnType="rtns:string" xmlns:rtns="http://www.w3.org/2001/XMLSchema"
soapAction="" >
<parameter qname="pns:concatRequest" xmlns:pns="urn:BookEngine"
type="tns:>concatRequest" xmlns:tns="urn:BookEngine"/>
</operation>
<parameter name="allowedMethods" value="concat"/>
<parameter name="scope" value="Session"/>
<typeMapping
xmlns:ns="urn:BookEngine"
qname="ns:>concatRequest"
type="java:webservices.wsdoclittest.book.ConcatRequest"
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
encodingStyle=""
/>
</service>
</deployment>
Please see the WSDL file :
Please suggest any solution -
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="urn:BookEngine"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="SimpleService"
targetNamespace="urn:BookEngine">
<wsdl:types>
<xsd:schema targetNamespace="urn:BookEngine"
xmlns:tns="urn:BookEngine">
<xsd:element name="concatRequest">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="s1"
type="xsd:string" />
<xsd:element name="s2"
type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
</wsdl:types>
<wsdl:message name="concatRequest">
<wsdl:part name="concatRequest" element="tns:concatRequest" />
</wsdl:message>
<wsdl:message name="concatResponse">
<wsdl:part name="concatResponse" type="xsd:string" />
</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="" />
<wsdl:input>
<soap:body parts="concatRequest" use="literal"
/>
</wsdl:input>
<wsdl:output>
<soap:body parts="concatResponse" use="literal"
/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="SimpleService">
<wsdl:port binding="tns:SimpleServiceSOAP"
name="SimpleServiceSOAP">
<soap:address
location="http://localhost:8080/Axis/services/SimpleServiceSOAP" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
if it is bean mapping problem then how to write in server-config.wsdd.
When i copy <service>......all detail....</service> from deploy.wsdd and
paste the <service>....all detail.......</service> in server-config.wsdd.
simply i deploy this.
When i try to see the service in browser by giving url
http://localhost:8080/axis/servlet/AxisServlet then it throw Exception :
java.lang.NoClassDefFoundError
java.lang.Class.forName0(Native Method)
java.lang.Class.forName(Class.java:242)
org.apache.axis.utils.ClassUtils$2.run(ClassUtils.java:176)
java.security.AccessController.doPrivileged(Native Method)
org.apache.axis.utils.ClassUtils.loadClass(ClassUtils.java:160)
org.apache.axis.utils.ClassUtils.forName(ClassUtils.java:100)
org.apache.axis.deployment.wsdd.WSDDTypeMapping.getLanguageSpecificType(WSDDTypeMapping.java:183)
org.apache.axis.deployment.wsdd.WSDDService.deployTypeMapping(WSDDService.java:529)
org.apache.axis.deployment.wsdd.WSDDService.initTMR(WSDDService.java:245)
org.apache.axis.deployment.wsdd.WSDDService.<init>(WSDDService.java:225)
org.apache.axis.deployment.wsdd.WSDDDeployment.<init>(WSDDDeployment.java:208)
org.apache.axis.deployment.wsdd.WSDDDocument.setDocument(WSDDDocument.java:139)
org.apache.axis.deployment.wsdd.WSDDDocument.<init>(WSDDDocument.java:65)
org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:176)
org.apache.axis.AxisEngine.init(AxisEngine.java:162)
org.apache.axis.AxisEngine.<init>(AxisEngine.java:146)
org.apache.axis.server.AxisServer.<init>(AxisServer.java:87)
org.apache.axis.server.DefaultAxisServerFactory.createServer(DefaultAxisServerFactory.java:109)
org.apache.axis.server.DefaultAxisServerFactory.getServer(DefaultAxisServerFactory.java:73)
org.apache.axis.server.AxisServer.getServer(AxisServer.java:72)
org.apache.axis.transport.http.AxisServletBase.getEngine(AxisServletBase.java:183)
org.apache.axis.transport.http.AxisServletBase.getOption(AxisServletBase.java:370)
org.apache.axis.transport.http.AxisServletBase.init(AxisServletBase.java:110)
org.apache.axis.transport.http.AxisServlet.init(AxisServlet.java:146)
javax.servlet.GenericServlet.init(GenericServlet.java:211)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
java.lang.Thread.run(Thread.java:595)
Or is this problem related to Namespace or targetnamespace , i am giving URN
is that problem creating ???
Thanx and Regards
Santosh
--
View this message in context:
http://www.nabble.com/Axis-1.3-Deployment-problem-with-Document-Literal-web-services--%2B-AxisFault----faultString%3A-java.lang.reflect.InvocationTargetException-tp16396284p16396284.html
Sent from the Axis - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]