[Mono-aspnet-list] WSDL proxy generation when wsdl-doc has wrong base url for service

mikkov vuoti at silppuri.iki.fi
Thu May 5 10:48:41 EDT 2011

I am trying to generate a proxy (with wsdl2) for a web service. The problem
is that the service has been configured with service location
"http://localhost:1234/..." etc. Of course, I am generating the proxy on
another host, causing wsdl2 to fail, as the definition uses import tags
referring to http://localhost... locations.

I tried replacing "localhost" in the WSDL file with the actual IP of the
remote server. This did not work, because apparently the imported
definitions refer to other documents on localhost.

* * *

I could imagine that there is a way to instruct wsdl2 to replace service
location from localhost to the real address of the service, but I could not
figure it out from the manual page. Some command line options sound like
something in that direction, but then the man page refers to some
configuration file which is not discussed any further.

* * *

Pointers? Suggestions?

thanks for your time,

View this message in context: http://mono.1490590.n4.nabble.com/WSDL-proxy-generation-when-wsdl-doc-has-wrong-base-url-for-service-tp3498539p3498539.html
Sent from the Mono - ASP.NET mailing list archive at Nabble.com.

More information about the Mono-aspnet-list mailing list