Hi Freeman, Thank you! Sorry about that. I copied the WSDL from the SOAP 1.1 version so I'm not sure how I got the parts mixed up. I fixed the WSDL and the test runs as expected.
Jean -----Original Message----- From: Freeman Fang [mailto:[email protected]] Sent: Wednesday, July 01, 2009 11:25 PM To: [email protected] Subject: Re: Servicemix SOAP interceptors Hi Jean, That's because in your wsdl, the HelloRequest message, you put body as the 1st part but the header as the 2nd part <message name="HelloRequest"> <part name="body" element="tns:HelloRequest"/> <part name="header1" element="tns:HelloHeader"/> </message> it will cause same problem(body first, header second) both with soap11 and soap12 binding with your test. The message should be <message name="HelloRequest"> <part name="header1" element="tns:HelloHeader"/> <part name="body" element="tns:HelloRequest"/> </message> if you want header as the 1st part in jbi message Freeman On 2009-7-1, at 下午11:12, Jean Jacobs wrote: > Hi Freeman, > > Attached is a zip file containing the Java file with the test case > that is failing, the WSDL file, and the SOAP input file. The test > fails on the assertion for the header element in the 3rd block of > assert statements. When I view the console output, I can see that the > JBI message has the header in the 2nd part of the JBI message and the > body in the 1st part. I compared this to the same test for SOAP 1.1 > (HelloWorldSoapTest.java) and did not see this behavior. > > Thanks, > > Jean > > -----Original Message----- > From: Freeman Fang [mailto:[email protected]] > Sent: Wednesday, July 01, 2009 10:55 AM > To: [email protected] > Subject: Re: Servicemix SOAP interceptors > > Hi Jean, > > It seems a bug, could you append your unit test? > Thanks > Freeman > On 2009-7-1, at 下午10:04, Jean Jacobs wrote: > >>> Is anyone familiar with the SOAP interceptors in Servicemix? I'm >>> writing a unit test for the SOAP 1.2 interceptors (there's one for >>> SOAP 1.1 but not for SOAP 1.2). In converting a SOAP 1.2 message to >>> a JBI message, for some reason, the header is the 2nd part of the >>> JBI message and the body is the 1st part. This only happens for >>> SOAP 1.2. >>> The same message with a SOAP 1.1 namespace is converted with the >>> header as the 1st part and the body as the 2nd part. Is the fact >>> that the header is not the first part of the JBI message for SOAP >>> 1.2 >>> a problem? >>> >>> Thanks, >>> >>> Jean >>> >>> *********************************************** >>> Jean Jacobs >>> Software QA Architect >>> Progress Software Corporation >>> 14 Oak Park Drive >>> Bedford, MA 01730 >>> [email protected] >>> *********************************************** >>> >>> > > > -- > Freeman Fang > ------------------------ > Open Source SOA: http://fusesource.com > > <SOAP2.zip> -- Freeman Fang ------------------------ Open Source SOA: http://fusesource.com
