Hi, you need to change your axis2 configuration to map to your content-type. Update the axis2.xml in repository/conf/ to something like
<messageFormatters> ::: <messageFormatter contentType="your xml content type" class="org.apache.axis2.transport.http.ApplicationXMLFormatter"/> </messageFormatters> <messageBuilders> ::: <messageBuilder contentType="your xml content type" class="org.apache.axis2.builder.ApplicationXMLBuilder"/> </messageBuilders> On Tue, May 20, 2008 at 7:18 AM, Hiranya Jayathilaka <[EMAIL PROTECTED]> wrote: > Hi, > > I suppose unless you specify the content type to be application/xml Synapse > expects a well formed SOAP message as the request. SOAP messages have an > Envelope element as the first element (see the format of the response > message). Since your request does not have an Envelope element Synapse > throws this error. > > Regards, > Hiranya > > On Tue, May 20, 2008 at 2:32 PM, Guillaume Jouanjan <[EMAIL PROTECTED]> > wrote: > > > Hello everybody, > > I've got some problems with an incomming XML request into Synapse > > > > Ive got the following SoapFault > > > > <soapenv:Envelope > > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" > > xmlns:wsa="http://www.w3.org/2005/08/addressing"> > > <soapenv:Header> > > <wsa:Action>http://www.w3.org/2005/08/addressing/soap/fault > > </wsa:Action> > > > > <wsa:RelatesTo>urn:uuid:CBB155E05E701EC9341211273840315</wsa:RelatesTo> > > </soapenv:Header> > > <soapenv:Body> > > <soapenv:Fault> > > <faultcode/> > > <faultstring>First Element must contain the local name, Envelope > > , but found AgoraMessage</faultstring> > > <detail/> > > </soapenv:Fault> > > </soapenv:Body> > > </soapenv:Envelope> > > > > 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> > > > > 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> > > > > If I put in the Header of the request Content-Type=application/xml , all > > works fine (i use SoapUI for tests) > > > > > > Any idea for my problems ? > > > > Thanks > > > > Guillaume > > > > > > >
