The servicePortName is the port name in your wsdl; for example in this WSDL:
<?xml version="1.0" encoding="UTF-8"?> <definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://xxxxxx/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://xxxxx/" name="SiporService"> <types/> <message name="SiporWs_executeResponse"> <part name="result" type="xsd:string"/> </message> <message name="SiporWs_execute"> <part name="String_1" type="xsd:string"/> </message> <portType name="SiporWs"> <operation name="execute" parameterOrder="String_1"> <input message="tns:SiporWs_execute"/> <output message="tns:SiporWs_executeResponse"/> </operation> </portType> <binding name="SiporWsBinding" type="tns:SiporWs"> <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <operation name="execute"> <soap:operation/> <input> <soap:body use="literal" namespace="http://xxxxxx/"/> </input> <output> <soap:body use="literal" namespace="http://xxxxxxx/"/> </output> </operation> </binding> <service name="SiporService"> <port name="SiporWsPort" binding="tns:SiporWsBinding"> <soap:address location="http://xxxxxxx:xxxx/sipor/Sipor"/> </port> </service> </definitions> the portName is SiporWsPort; so you should write: xxxxxLocator loc = new xxxxxLocator(); loc.setEndpointAddress("SiporWsPort","http://yyyyyy:yyy/sipor/Sipor"); Hope this can help you. Bye. Angelo ---------- Initial Header ----------- >From : "Victor Sosa" [EMAIL PROTECTED] To : [email protected] Cc : Date : Tue, 27 Jun 2006 11:31:08 -0400 Subject : Re: how to change the address of the webservices in run time? > Pls, give me a example of servicePortName. > > Thks for the answer > > On 6/27/06, Angelo Immediata <[EMAIL PROTECTED]> wrote: > > Hi. > > You can set the endpoint address in this way (by acting on the > > xxxLocator.java class): > > > > xxxxxLocator loc = new xxxxxLocator(); > > loc.setEndpointAddress(servicePortName,the new URL (as a String)) > > > > Hipe this can help you. > > Bye, > > Angelo > > > > ---------- Initial Header ----------- > > > > From : "Victor Sosa" [EMAIL PROTECTED] > > To : [email protected] > > Cc : > > Date : Tue, 27 Jun 2006 11:04:46 -0400 > > Subject : how to change the address of the webservices in run time? > > > > > > > > > > > > > > > > > The Service class will by default make a Stub which points to the > > > endpoint URL described in the WSDL file, but I may also specify a > > > different URL? and make request to the new adresss? > > > > > > How to? > > > > > > NOTE: I have two server, one for production and other for develop. > > > > > > > > > -- > > > Victor Sosa > > > Desarrollador Java > > > TeKnowLogic Dominicana, C. x A. > > > http://www.tkl.com.do > > > http://vnsjava.blogspot.com/ > > > [EMAIL PROTECTED] > > > Registered Linux User #369216 > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- > Victor Sosa > Desarrollador Java > TeKnowLogic Dominicana, C. x A. > http://www.tkl.com.do > http://vnsjava.blogspot.com/ > [EMAIL PROTECTED] > Registered Linux User #369216 > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
