• Post Reply Bookmark Topic Watch Topic
  • New Topic

command to generate client with different Package name.

 
yekkala krishna
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Im trying to generate a skeleton from the below command and put it in the package com.bt.kbd.xml3.


wsdl2java -uri F:\R14\work\wsdl\KMWSTestService21CNKBD.wsdl -d xmlbeans -ns2p http://rules.kmtool.bt.com=com.bt.kbd.xml3 -o F:\R14\work\wsdl\clientnewpackage_26Feb

The generated skeleton.jar doesn't work i get the following exception


org.apache.axis2.AxisFault: java.lang.NullPointerException
at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Lorg.apache.axis2.context.MessageContext;)Lorg.apache.a
at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(Lorg.apache.axis2.context.MessageContext;)V(OutI
at org.apache.axis2.description.OutInAxisOperationClient.send(Lorg.apache.axis2.context.MessageContext;)Lorg.apache.axis
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(Z)V(OutInAxisOperation.java:228)
at org.apache.axis2.client.OperationClient.execute(Z)V(OperationClient.java:163)
at com.bt.kbd.xml3.KMWSTestServiceStub.invokerules(Lcom.bt.kbd.xml3.InvokerulesDocument;)Lcom.bt.kbd.xml3.InvokerulesRes
at com.bt.stub.util.RemedyMonitor.sendResponse(Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;L
at com.bt.stub.util.RemedyMonitor.run()V(RemedyMonitor.java:102)
at java.lang.Thread.startThreadFromVM(Ljava.lang.Thread;)V(Unknown Source)



Is there any change in command or process to change package name with wsdl.You can Suggest.

with Regards,
leo


 
Peer Reynders
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yekkala krishna wrote:Is there any change in command or process to change package name with wsdl.


-p assigns the Java artifacts (of the target namespace) to a different package
WSDL2Java Command Line Version Option Reference
 
yekkala krishna
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi peer,

Good to see your response.

I have tried with the -p command also.But changes reflected to only Stub class.Changes are not affecting to other classes.(like Document,ResponseDocument).

So to affect changes for all others i prefer option -ns2p.

Is it right way to use -ns2p or not.

Waiting for your valuable suggestion.

 
Peer Reynders
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yekkala krishna wrote:Is it right way to use -ns2p or not.

I would expect so - you are in better position to judge.
Are the generated xmlBeans in the specified package or not?

Also I don't understand why you think that the generated package names have anything to do with your problem.
Does the skeleton work if you don't coerce the package names?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!