Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

axis's wsdl2java  RSS feed

 
Wei Hsu
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I am trying to create a wsdl for already existing web services so that people can easily generate client side code using wsdl2java. In my wsdl file, I've decided to use rpc/encoded to best replicate the existing soap messages in use. But the generated stubs like to use multiRef within the soap body, which is causing some problems for me. Is there anyway to turn off that round-about referencing?
All help greatly appreciated. Thanks!
Wei Hsu
 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can turn-off sending multi-ref in soap messages by configuring the servlet-config.wsdd file under /web-inf directory..
You can set it globally or specific to a service
like ..
<parameter name="sendMultiRefs" value="false"/>
see
Global Axis Configuration, you can find more info on this.
 
Wei Hsu
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Balaji, thanks for the reply.
Let me get it straight. So what you're saying is that the client has no control over how the soap message is generated? Assuming i do not have access to the server, i cannot modify the client side stubs so that the multiref function is turned off?
 
Kelvin Yong
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Wei Hsu, in the stub generated by wsdl2java, modified your code as follows

public java.lang.String yourMethod() throws java.rmi.RemoteException {
if (super.cachedEndpoint == null) {
throw new org.apache.axis.NoEndPointException();
}
org.apache.axis.client.Call _call = createCall();
...
...
// add the next line
_call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);

rgds,
Kelvin
 
Rr Kumaran
Ranch Hand
Posts: 548
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
guys, what is multiRef within the soap body funda ? can anyone please explain ...
 
William Barnes
Ranch Hand
Posts: 1046
2
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
> I am trying to create a wsdl for already existing web services

Am I confused here? If there is no wsdl it isn't a web service, right?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!