You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Vinit Kumar <k_...@postmark.net> on 2002/08/05 14:55:41 UTC
Beta3 Client Problem
Hi All
Im workin with beta3 of axis and trying to expose a SSBean as web
servie.
In whole cycle of deployment to service invocation ,i face following
problems.Plz have some patience nd go thru this:
1.first of all,My .wsdd file looks as follows:
<deployment xmlns="http://xml.apache.org/axis/wsdd/"
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
<service name="Tester" provider="java:EJB">
<parameter name="beanJndiName" value="Tester_TestEJB_Test"/>
<parameter name="homeInterfaceName" value="com.TesterHome"/>
<parameter name="allowedMethods" value=" getName"/>
<parameter name="jndiURL" value="rmi://localhost:9191"/>
<parameter name="jndiContextClass"
value="com.pramati.naming.client.PramatiClientContextFactory"/>
</service>
</deployment>
2.Next,when i deploy this service,i get followin information:
Log message: AxisServlet: init
- Problem with servlet engine config file:
C:\PStudio30_2234N\server\nodes\StandAlone\default\archives\public_htm
l\SSWeb\WEB-INF/server-config.wsdd
<Admin>Done processing</Admin
3.Still wsdl is exposed at desirable url,nd it looks as follows
<?xml version="1.0" encoding="UTF-8" ?>
- <wsdl:definitions
targetNamespace="http://localhost:8181/SSWeb/services/S/SSWeb/services
/S" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:intf="http://localhost:8181/SSWeb/services/S/SSWeb/services/S"
xmlns:impl="http://localhost:8181/SSWeb/services/S/SSWeb/services/S-im
pl" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:apachesoap="http://xml.apache.org/xml-soap"
xmlns="http://schemas.xmlsoap.org/wsdl/">
- <wsdl:message name="getNameResponse">
<wsdl:part name="return" type="xsd:string" />
</wsdl:message>
<wsdl:message name="getNameRequest" />
- <wsdl:portType name="S">
- <wsdl:operation name="getName">
<wsdl:input name="getNameRequest" message="intf:getNameRequest" />
<wsdl:output name="getNameResponse" message="intf:getNameResponse"
/>
</wsdl:operation>
</wsdl:portType>
- <wsdl:binding name="SSoapBinding" type="intf:S">
<wsdlsoap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http" />
- <wsdl:operation name="getName">
<wsdlsoap:operation soapAction="" />
- <wsdl:input name="getNameRequest">
<wsdlsoap:body use="encoded"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://localhost:8181/SSWeb/services/S/SSWeb/services/S" />
</wsdl:input>
- <wsdl:output name="getNameResponse">
<wsdlsoap:body use="encoded"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://localhost:8181/SSWeb/services/S/SSWeb/services/S" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
- <wsdl:service name="SService">
- <wsdl:port name="S" binding="intf:SSoapBinding">
<wsdlsoap:address location="http://localhost:8181/SSWeb/services/S"
/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
4.Now,when i create java client from this wsdl,all classes r created
properly,but when i invoke the method,i get following exception
- Mapping Exception to AxisFault
AxisFault
faultCode: {http://xml.apache.org/axis/}Server.generalException
faultString: Tried to invoke method public java.lang.String
com.SBean.getName() with arguments . The arguments do not match the
signature.
faultActor: null
faultDetail:
stackTrace: AxisFault
faultCode: {http://xml.apache.org/axis/}Server.generalException
faultString: Tried to invoke method public java.lang.String
com.SBean.getName() with arguments . The arguments do not match the
signature.
faultActor: null
faultDetail:
Tried to invoke method public java.lang.String com.SBean.getName()
with arguments . The arguments do not match the signature.
at
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.j
ava:135)
at
org.apache.axis.encoding.DeserializationContextImpl.endElement(Deseria
lizationContextImpl.java:904)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1528)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1779)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1779)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:357)
at
org.apache.axis.encoding.DeserializationContextImpl.parse(Deserializat
ionContextImpl.java:213)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:457)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:362)
at org.apache.axis.client.Call.invokeEngine(Call.java:2046)
at org.apache.axis.client.Call.invoke(Call.java:2016)
at org.apache.axis.client.Call.invoke(Call.java:1786)
at org.apache.axis.client.Call.invoke(Call.java:1711)
at org.apache.axis.client.Call.invoke(Call.java:1251)
at
com.pramati.webService.client.SSoapBindingStub.getName(SSoapBindingStu
b.java:104)
at com.pramati.webService.client.Client.main(Client.java:23)
Thanks alot if u read this.But that itself is not enough.Please let
me know if im doin something wrong or if there is some problem with
axis framework itself
Thanks alot
Kumar Vinit