Forums Register Login

command to generate client with different Package name.

+Pie Number of slices to send: Send
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


+Pie Number of slices to send: Send
 

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
+Pie Number of slices to send: Send
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.

+Pie Number of slices to send: Send
 

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?
If you have a bad day in October, have a slice of banana cream pie. And this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1799 times.
Similar Threads
Web Services using AXIS 2
Axis2 asynchronous communication
Axis2-1.4 help
Consuming a WS from another WS
WebService Client - Unexpected SubElement Exception
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 01:54:48.