Hi Guillaume, I share the point of Hiranya here. If you do not specify the content type it will try to build the message as SOAP, and fails. The message will need to carry the content type if it is coming over the HTTP transport.
Thanks, Ruwan On Tue, May 20, 2008 at 8:47 PM, Asankha C. Perera <[EMAIL PROTECTED]> wrote: > Hi Guillaume > >> I've got some problems with an incomming XML request into Synapse >> >> Ive got the following SoapFault >> .... >> <faultstring>First Element must contain the local name, Envelope, >> but found AgoraMessage</faultstring> >> .... >> >> > It seems like Synapse was expecting a SOAP reply to the POX request you've > sent.. which is strange.. > >> My request is : >> >> <Message> >> <serviceID>stockQuote</serviceID> >> <operation>getQuote</operation> >> <traitement> >> <ndpt>00</ndpt> >> </traitement> >> <data> >> <userID>http://agora</userID> >> <supplierID>http://gip</supplierID> >> <m0:request xmlns:m0="http://services.samples/xsd"> >> <m0:symbol>IBM</m0:symbol> >> </m0:request> >> </data> >> </Message> >> >> > I believe this is the request you are asking Synapse to send to the > following endpoint?.. can you pass this through the TCPMon, and get an > actual trace of this exchange and share with us? this will help us > understand why Synapse is expecting a SOAP reply.. > >> My endpont is configured like this : >> >> <endpoint name="mock"> >> <address >> uri="http://localhost:8211/Multi-Mock-1.0/Service?C-IOPS-A" >> format="pox"> >> <suspendDurationOnFailure>30</suspendDurationOnFailure> >> <timeout> >> <duration>5</duration> >> <action>fault</action> >> </timeout> >> </address> >> </endpoint> >> >> > This seems correct.. so I am curious to see the TCPMon trace.. > > asankha > -- Ruwan Linton http://www.wso2.org - "Oxygenating the Web Services Platform"
