Service Mediation Using Proxy Services -WSO2 -


i'm new area , need access web service via esb. mentioned in here - service mediation using proxy services tried to create it. after run , response follows :

<tryitproxyerror xmlns:h="http://wso2.org/ns/tryitproxy" h:status="soap envelope error">org.apache.axis2.axisfault: input stream incoming message null.</tryitproxyerror> 

but tried run same web method using soapui , expected out put below:

<soap:envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xmlns:xsd="http://www.w3.org/2001/xmlschema">    <soap:body>       <getpatienthistoryresponse xmlns="http://tilani.lk/">          <getpatienthistoryresult>             <nic>123</nic>             <fullname>abc def</fullname>             <firstname>abc</firstname>             <surname>def</surname>             <title>mr.</title>             <gender>m/gender>          </getpatienthistoryresult>       </getpatienthistoryresponse>    </soap:body> </soap:envelope> 

what reason this? created using .net

my wsdl address - http://localhost:2935/patientregservice.asmx?wsdl

then in define endpoint - http://localhost:2935/patientregservice.asmx

edit proxy configuration follows:

<proxy xmlns="http://ws.apache.org/ns/synapse" name="patientmanagement" transports="https,http" statistics="disable" trace="disable" startonload="true">    <target>       <outsequence>          <send/>       </outsequence>       <endpoint>          <address uri="http://localhost:2935/patientregservice.asmx?wsdl"/>       </endpoint>    </target>    <publishwsdl uri="http://localhost:2935/patientregservice.asmx?wsdl"/>    <description></description> </proxy> 

if want access web service via esb need create proxy service , access proxy service uri instead of original service uri. follow pass through proxy example.


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -