Making wsdl URL dynamic

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Making wsdl URL dynamic

vivtops86
This post was updated on .
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Making wsdl URL dynamic

Chirag Manocha-3
You could give the endPointUrl different when you are calling webservice from java code.
Like these cases are used when you have different environments e.g. testing, production etc. So you could read the url from properties file set it in endPointUrl.

HTH

Regards
--
Chirag Manocha
Emforium Software Pvt. Ltd.
Contact :- +91-98735-47457, +91-98263-19099
Please don't print this Email unless you really need to - this will preserve trees on planet earth.


----- Original Message -----
> From: "vivtops86" <[hidden email]>
> To: [hidden email]
> Sent: Wednesday, July 28, 2010 9:44:41 PM
> Subject: Making wsdl URL dynamic

> I have successfully called a webservice using the definition:
>
> <service name="testSoap" engine="soap" export="true"
> location="http://localhost:8080/webtools/control/SOAPService"
> invoke="testScv"> <description>Test SOAP service; calls the OFBiz test
> service</description> <attribute name="message" type="String"
> mode="IN" optional="true"/>
> <attribute name="resp" type="String" mode="OUT"/>
> </service>
>
> Is there anyway to make the value of location dynamic?
> -- View this message in context:
> http://ofbiz.135035.n4.nabble.com/Making-wsdl-URL-dynamic-tp2305224p2305224.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
Reply | Threaded
Open this post in threaded view
|

Re: Making wsdl URL dynamic

vivtops86
This post was updated on .
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Making wsdl URL dynamic

Chirag Manocha-3
Hi Vivek,
What url you want to be dynamic ? I think the url where your webservice is deployed.

Can you please specify more ?

Regards
--
Chirag Manocha
Emforium Software Pvt. Ltd.
Contact :- +91-98735-47457, +91-98263-19099
Please don't print this Email unless you really need to - this will preserve trees on planet earth.

----- Original Message -----
> From: "vivtops86" <[hidden email]>
> To: [hidden email]
> Sent: Thursday, July 29, 2010 2:08:17 PM
> Subject: Re: Making wsdl URL dynamic

> Thanks Chirag for the reply..
>
> But i am calling a remote web service..which can be from any
> machine...It is
> a a general web service...Can you just make it clear..
>
> Thanks & Regards
> Vivek
> -- View this message in context:
> http://ofbiz.135035.n4.nabble.com/Making-wsdl-URL-dynamic-tp2305224p2306118.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
Reply | Threaded
Open this post in threaded view
|

Re: Making wsdl URL dynamic

vivtops86
This post was updated on .
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Making wsdl URL dynamic

BJ Freeman
look at using Http instead of using RPC
llke POST


vivtops86 sent the following on 7/29/2010 1:57 AM:

>
> Actually I need the URL in the location attribute to be dynamic....
>
> I want to change the host address of the URL according to request..
> so the URL could be :
>
> http://host1:8080/webtools/control/SOAPService
> http://host2:8080/webtools/control/SOAPService
> ...etc
>
> I hope it is clear...
Reply | Threaded
Open this post in threaded view
|

Re: Making wsdl URL dynamic

vivtops86
This post was updated on .
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Making wsdl URL dynamic

BJ Freeman
look at the code in
specialpurpose\oagis
you will see they pass xml using http URLS.
this form of SOAP is know as POST
http://www.w3schools.com/soap/soap_httpbinding.asp
in this you would use URL through the controller with events that would
evaluate the xml
this give you variable URLS you want.

vivtops86 sent the following on 7/29/2010 4:10 AM:

>
> Sorry BJ, but i didn't get it...Can you just make it clear as i am new to
> it..
>
> My remote service call is:
>
> <service name="testClient" engine="soap" export="true"
> location="http://localhost:8080/webtools/control/SOAPService"
> invoke="learningFirstSoap">
> <description>Test SOAP service; calls the OFBiz test service</description>
> <attribute name="test" type="String" mode="IN" optional="true"
> default-value="Vivek" />
> <attribute name="ret" type="String" mode="OUT" optional="true" />
> </service>
>
>