[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AW: httpapi help with soapui and example16



The home of the currency converter web service is at http://www.webservicex.net/. Go there and click "Business and Commerce" and then "Currency Convertor". 

What they call the endpoint of the web service is not correct. "http://www.webservicex.net/CurrencyConvertor.asmx?WSDL"; is not the endpoint of the web service, but the url where a client can download the wsdl from.

Nevertheless take that URL and put it into the address field of your browser. It will take you to the wsdl of the web service. At the end of the wsdl you will see several <wsdl:service> elements like that:

<wsdl:service name="CurrencyConvertor">
  <wsdl:port name="CurrencyConvertorSoap" binding="tns:CurrencyConvertorSoap">
    <soap:address location="http://www.webservicex.net/CurrencyConvertor.asmx"; />
  </wsdl:port>
  <wsdl:port name="CurrencyConvertorSoap12" binding="tns:CurrencyConvertorSoap12">
    <soap12:address location="http://www.webservicex.net/CurrencyConvertor.asmx"; />
  </wsdl:port>
  <wsdl:port name="CurrencyConvertorHttpGet" binding="tns:CurrencyConvertorHttpGet">
    <http:address location="http://www.webservicex.net/CurrencyConvertor.asmx"; />
  </wsdl:port>
  <wsdl:port name="CurrencyConvertorHttpPost" binding="tns:CurrencyConvertorHttpPost">
    <http:address location="http://www.webservicex.net/CurrencyConvertor.asmx"; />
  </wsdl:port>
</wsdl:service>

The <address> elements of the  "CurrencyConvertorSoap" and "CurrencyConvertorSoap12" elements specify the actual endpoint URLs of the web service for SOAP clients.

That ends up in two URLs for example16:

"http://www.webservicex.net/CurrencyConvertor.asmx?WSDL"; is the URL where to load the wsdl from. It is not required for example16. But SoapUI uses that URL to load the WSDL to understand the structure of the xml messages and to get the endpoint of the web service.

"http://www.webservicex.net/CurrencyConvertor.asmx"; is the URL SOAP clients use to call the web service.

Thomas.

-----Ursprüngliche Nachricht-----
Von: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] Im Auftrag von Jim Franz
Gesendet: Samstag, 9. Januar 2016 21:15
An: ftpapi@xxxxxxxxxxxxxxxxxxxxxx
Betreff: httpapi help with soapui and example16

Trying to do my first consume a soap web service using example 16.
Used SoapUI to review the wsdl, but current client does not look like the tutorial, and confused by the url in the example.

rc = http_url_post_xml(
           'http://www.webservicex.net/CurrencyConverter.asmx'
              : %addr(SOAP) + 2
              : %len(SOAP)
              : soapfile
              : HTTP_TIMEOUT
              : HTTP_USERAGENT
              : 'text/xml'
              : 'http://www.webserviceX.NET/ConversionRate');

what is the SoapUI reference for '
http://www.webservicex.net/CurrencyConverter.asmx'
is this the definition url (but soapui says the url ends with ".asmx?wsdl"

what is the SoapUI ref for 'http://www.webserviceX.NET/ConversionRate'
- is this the "operation"

why the with mixed case webserviceX.NET   ?

The webservices I need to connect to are on unix boxes within the corp network (http://servername:port/directory/servicename and are SOAP 1.1

Jim Franz
--
IMPORTANT NOTICE:
This email is confidential, may be legally privileged, and is for the intended recipient only. Access, disclosure, copying, distribution, or reliance on any of it by anyone else is prohibited and may be a criminal offence. Please delete if obtained in error and email confirmation to the sender.
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------