Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with Endpoint #51

Closed
Sharj opened this issue Mar 24, 2010 · 5 comments
Closed

Problem with Endpoint #51

Sharj opened this issue Mar 24, 2010 · 5 comments

Comments

@Sharj
Copy link

Sharj commented Mar 24, 2010

Hi,
I'm writing a soap client for wsdl document hosted on abc.com/ server but when I access client.wsdl.soap_endpoint it shows endpoint is a address on the local machine so when I call a function it calls on the local machine. Is there anyway to override default endpoint?

I have written soap client for the same document in PHP and in that I can override by providing location=>abc.com server address as an extra parameter while creating new client. Then it ignores endpoint written inside the wsdl document.

Anyway to do the same using savon?

  • Sharjeel
@rubiii
Copy link
Contributor

rubiii commented Mar 27, 2010

version 0.7.7 will come with an option that let's you specify a custom soap endpoint when using savon with a wsdl. https://github.com/rubiii/savon/commit/84f10

@ncancelliere
Copy link

I also have a need to be able to override the endpoint hwen using wsdl, for use with a testing system.

@rubiii
Copy link
Contributor

rubiii commented May 9, 2010

you should be able to instantiate savon with a wsdl endpoint and provide a soap endpoint as well. every feature of using a wsdl should still work, but savon will ignore the soap endpoint found in the wsdl and just use the one you provided.

here's an example of how this should work:

client = Savon::Client.new "http://example.com/UserService?wsdl",
  :soap_endpoint => "http://localhost/UserService"

please note that this is not yet possible, but will be included in version 0.7.7.

@rubiii
Copy link
Contributor

rubiii commented May 9, 2010

released version 0.7.8 which should fix this issue. feedback appreciated :)

@rubiii
Copy link
Contributor

rubiii commented May 17, 2010

set to fixed.

calamitas pushed a commit to calamitas/savon that referenced this issue Jun 7, 2011
added the :soap_endpoint option to Savon::Client#new for specifying a custom soap endpoint per instance.
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants