This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

problem with running webservice client in axix  RSS feed

 
Tirthankar Dutta Chaudhuri
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi ,
i am using tomacat 4.1 and axix 1.2 . The webservice deployed om i can see the wsdl file .
Now on running the web service client i am getting the fillowing exception

Exception in thread "main" java.lang.NoSuchMethodError: javax.xml.rpc.encoding.T
ypeMapping.getSerializer(Ljava/lang/Class;Ljavax/xml/rpc/namespace/QName Ljavax
/xml/rpc/encoding/SerializerFactory;
at org.apache.axis.encoding.TypeMappingImpl.getSerializer(Unknown Source
)
at org.apache.axis.encoding.TypeMappingImpl.getSerializer(Unknown Source
)
at org.apache.axis.encoding.SerializationContextImpl.getSerializer(Unkno
wn Source)
at org.apache.axis.encoding.SerializationContextImpl.serializeActual(Unk
nown Source)
at org.apache.axis.encoding.SerializationContextImpl.serialize(Unknown S
ource)
at org.apache.axis.message.RPCParam.serialize(Unknown Source)
at org.apache.axis.message.RPCElement.outputImpl(Unknown Source)
at org.apache.axis.message.MessageElement.output(Unknown Source)
at org.apache.axis.message.SOAPEnvelope.outputImpl(Unknown Source)
at org.apache.axis.message.MessageElement.output(Unknown Source)
at org.apache.axis.SOAPPart.getAsString(Unknown Source)
at org.apache.axis.SOAPPart.getAsBytes(Unknown Source)
at org.apache.axis.Message.getContentLength(Unknown Source)
at org.apache.axis.transport.http.HTTPSender.invoke(Unknown Source)
at org.apache.axis.strategies.InvocationStrategy.visit(Unknown Source)
at org.apache.axis.SimpleChain.doVisiting(Unknown Source)
at org.apache.axis.SimpleChain.invoke(Unknown Source)
at org.apache.axis.client.AxisClient.invoke(Unknown Source)
at org.apache.axis.client.Call.invoke(Unknown Source)
at org.apache.axis.client.Call.invoke(Unknown Source)
at org.apache.axis.client.Call.invoke(Unknown Source)
at org.apache.axis.client.Call.invoke(Unknown Source)
at NHLServiceClient.main(NHLServiceClient.java:23)
Press any key to continue . . .

mY CLIENT code :

please help ..
Thanks,
Tirthankar
 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Tirthankar Dutta Chaudhuri:
hi ,
Exception in thread "main" java.lang.NoSuchMethodError: javax.xml.rpc.encoding.T


Are you sure their exist a method called "getCurrentPosition" in ur serverside wsdl? Check it.
Also try to create the client code using WSDL2Java to avoid any basic errors.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!