The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

475074 (5) [Avatar] Offline
#1
I am attempting to get WSDL that should be found at http://api.prancingdonkey.com/soap?wsdl. But I am not able to get wsdl.
Also, I am puzzled by the return of the invoking WebServicesFunctionalTestCase.java code testCanConsumeSOAPService method for SOAP testing.
I am not sure I understand how the response
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ns1:getBrewsResponse xmlns:ns1="http://service.prancingdonkey.com/">
<ns1:return>
<ns2:Brew xmlns:ns2="http://model.prancingdonkey.com">
<ns2:description>Hobbit IPA</ns2:description>
<ns2:name>Hobbit IPA</ns2:name>
</ns2:Brew>
<ns2:Brew xmlns:ns2="http://model.prancingdonkey.com">
<ns2:description>Frodos Lager</ns2:description>
<ns2:name>Frodos Lager</ns2:name>
</ns2:Brew>
</ns1:return>
</ns1:getBrewsResponse></soap:Body></soap:Envelope>


is generated.
Thank you for your help
David Dossot (233) [Avatar] Offline
#2
I believe your referring to listing 3.12 for the WSDL question. When Prancing Donkey deploys the service shown in this listing in their production environment, they have an external DNS entry set up to point api.prancingdonkey.com to a load balancer in front of Mule instances running the said service.

In your case, assuming you run this service locally, you can get the WSDL there: http://localhost:8090/soap?wsdl

The response received by
WebServicesFunctionalTestCase#testCanConsumeSOAPService
is generated by the web service hosted on Mule, which is configured here: https://github.com/ddossot/mule-in-action-2e/blob/master/chapter03/src/main/app/ws-config.xml#L19-L25
475074 (5) [Avatar] Offline
#3
David,
Thank you so much for such a prompt reply and great explanation.

I set up debugging and actually went line by line through the FlowConfiguringMessageProcessor class and feel more optimistic to learn Mule from the book.
I am in the process of migrating Mule application that was written in Mule 2.2 to Mule 3.7.
Could you please point me in the right direction on how I can achieve that?

Thank you in advance for your help and support
Boris
David Dossot (233) [Avatar] Offline
#4
475074 (5) [Avatar] Offline
#5
David,
Thank you so much for all your help.

Boris