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 NoƩ Amorim <no...@gmail.com> on 2007/01/31 13:38:22 UTC
setting a diferent location for the wsdl
Hi.
I'm using generated stubs (WSDL2Java) to acess my webservice.
The only thing i need to do before using the functions onj thw wsdl is:
ExampleService service = new ExampleServiceLocator();
ServicesPortType port = service.getServicesPort();
But if the wsdl changes place on the machine or network, i don't have
to generate new stubs,
is saw that on ExampleServiceLocator class there 2 other constructers:
public ExampleServiceLocator(org.apache.axis.EngineConfiguration config) {
super(config);
}
public ExampleServiceLocator(java.lang.String wsdlLoc,
javax.xml.namespace.QName sName) throws javax.xml.rpc.ServiceException
{
super(wsdlLoc, sName);
}
and this is the where's axis knows where to go:
private java.lang.String ServicesPort_address =
"http://localhost/interacesso2/endpoint.php";
My question is:
Can some give a few examples how to use the other 2 constructers, if
for example the wsdl is moved to 212.15.34.56 and put in a new place,
let's say interacesso3/endpoint.php?
Thank you.
Noe Rocha.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org