Hi,

I'm seeing the following problem when proxying a wsdl interface. The
soap;address location in the published wsdl is incorrect.

I see the same problem with one of your examples, so lets use that to
illustrate my problem: sample 150.

*my configuration:*
 - I have a machine behind  NAT/firewalls etc  running the ESB + backend.
         it has a local hostname    "vloeki_v01"   that name is not
resolvable from the internet.
 - The machine is accessible via an url http://machine.host.com:8280
using some portforwarding, apache rules etc... all working fine.

The public exposed wsdl however has the incorrect references to the
services. It contains the WRONG URL.

*steps to reproduce*
./wso2-esb.sh -sample 150

*result*
When you browse to http://machine.host.com:8280/soap/StockQuoteProxy?wsdl
you see in the bottom of the file

...
<wsdl:port name="StockQuoteProxy1HttpSoap11Endpoint"
binding="axis2:StockQuoteProxy1Soap11Binding">
<soap:address location="http://*vloeki_v01*
:8280/soap/StockQuoteProxy.StockQuoteProxy1HttpSoap11Endpoint"/>
</wsdl:port>
...

*expected result*

<wsdl:port name="StockQuoteProxy1HttpsSoap11Endpoint"
binding="axis2:StockQuoteProxy1Soap11Binding">
<soap:address location="https://*machine.host.com***:8280
/soap/StockQuoteProxy.StockQuoteProxy1HttpsSoap11Endpoint"/>
</wsdl:port>

I'd expect that the address in the wsdl  is THE SAME as the address in the
HTTP request. But its not ?!?
This is also what other webservices do when providing wsdls. They use the
URL that was in the http request.



*The following is working ok.*
- Whenever I access the backend wsdl directly (bypassing the ESB)  is has
the correct address in its wsdl.
   NOTE:   the backend wsdl  also does _not_ know about the name *
machine.host.com*.  It just uses the URL that WAS IN THE HTTP REQUEST IN THE
FIRST PLACE.
- Whenever I just do soap requests from the internet on the  ESB proxy
interface, it works ok.


Is this a WSO2 problem ?
Or what am I doing wrong ?

*Version
*wso2esb v1.7.1*

*
_______________________________________________
Esb-java-user mailing list
[email protected]
http://mailman.wso2.org/cgi-bin/mailman/listinfo/esb-java-user

Reply via email to