Wednesday, 15 February 2012

web services - WS02: Invoking external weather SOAP webservice from ESB -



web services - WS02: Invoking external weather SOAP webservice from ESB -

i trying utilize wso2 esb (version 4.8.1) invoke externally hosted soap web services. seek out using public web service weather info (http://wsf.cdyne.com/weatherws/weather.asmx?wsdl), more getweatherinformation operation.

i have consumed web service using soapui tool.

i newcomer soap , esb, tried follow number of blog entries, maintain on getting errors. tried using proxy service, payload mill , send still didn't manage. can please help me setting up?

thanks

here come sample api invoke getweatherinformation :

<?xml version="1.0" encoding="utf-8"?> <api xmlns="http://ws.apache.org/ns/synapse" name="testws3api" context="/testws3api"> <resource methods="get" url-mapping="/getweatherinformation"> <insequence> <payloadfactory media-type="xml"> <format> <getweatherinformation xmlns="http://ws.cdyne.com/weatherws/"/> </format> <args/> </payloadfactory> <send> <endpoint> <address uri="http://wsf.cdyne.com/weatherws/weather.asmx" format="soap11"/> </endpoint> </send> </insequence> <outsequence> <send/> </outsequence> </resource> </api>

you have send http request http://esb.hostname:8280/testws3api/getweatherinformation (use soapui or type address in net browser) , xml response weather ws

web-services soap wsdl wso2esb soapui

No comments:

Post a Comment