Hi Keith,
Thanks for your reply. The problem I currently have is that I will reveive
an exception "Invalid Content Type Field in the Mime Message" as a SOAP
reply when I set the soap version to 1.2 in the web service client written
using AXIS2/C 1.0. But when I set the soap version to 1.1 in the web service
client, it works as what I expect. The environment for this test case is as
follows:
Web service Client: use AXIS2/C 1.0
Web Service: POJO web serice and AXIS2/JAVA 1.2
WSDL : automatically generated by AXIS2/JAVA 1.2 which has three port:
HTTP, SOAP1.2, SOAP1.1
The soap messages for this test case can be found in the attachment.
best regards
donald
On 10/12/07, keith chapman <[EMAIL PROTECTED]> wrote:
>
> No need to change anything. If the request is SOAP 1.1 the response will
> be SOAP 1.1. if it is SOAP 1.2 the response will be SOAP 1.2.
>
> Thanks,
> Keith.
>
> On 10/12/07, donald yang <[EMAIL PROTECTED]> wrote:
> >
> > Hi everyone,
> >
> > First I wrote a simple web service using AXIS2/JAVA 1.2. Then I wrote a
> > web service client test case using AXIS2/C 1.0 to access the web
> > service. In the client, I have enabled MTOM even if there is no binaary
> > attachment to send in fact and set the SOAP version to SOAP 1.2. I got
> > one exception
> >
> > " Invalid Content Type Field in the Mime Message"
> >
> > Then I compared the soap request created by AXIS2/C 1.0 with the soap
> > request created by AXIS2/JAVA 1.2. I found the major difference is that
> > the value of start-info is "application/xop+xml" not "text/xml" in the soap
> > request created by AXIS2/C.
> >
> > Then I resetting the SOAP vesion to SOAP 1.1 in the web service client
> > wrote using AXIS2/C 1.0. It works fine. But when I looked at the wsdl
> > generated by AXIS2/JAVA 1.2, it has three ports, HTTP PORT, SOAP 1.1PORT,
> > SOAP1.2 PORT. That means it should support the SOAP request with version
> > 1.2. Is there anyone can tell me how to enable the server support SOAP
> > 1.2 in AXIS2/JAVA 1.2? many thanks in advnace.
> >
> > best regards
> > yong
> >
> >
> >
>
>
> --
> Keith Chapman
> WSO2 Inc.
> Oxygen for Web Services Developers.
> http://wso2.org/
[1] soap request created by axis2/c
POST /axis2/services/simple_int HTTP/1.1
User-Agent: Axis2/C
Content-Length: 555
Content-Type: multipart/related;
boundary=MIMEBoundaryc4bffdc7-918b-40ee-bacf-9ce9962d479b;
type="application/xop+xml"; start="< [EMAIL PROTECTED]>";
start-info="application/soap+xml"; charset="UTF-8";action=""""
Host: 127.0.0.1:9000
--MIMEBoundaryc4bffdc7-918b-40ee-bacf-9ce9962d479b
content-transfer-encoding: binary
content-id: < [EMAIL PROTECTED]>content-type: application/xop+xml;
charset=UTF-8; type="application/soap+xml";
<soapenv:Envelope xmlns:soapenv=" http://www.w3.org/2003/05/soap-envelope">
<soapenv:Header></soapenv:Header>
<soapenv:Body>
<ns1:int_input_outputMessage xmlns:ns1=" http://querix.com/xsd">
<param0>10</param0>
</ns1:int_input_outputMessage>
</soapenv:Body>
</soapenv:Envelope>--MIMEBoundaryc4bffdc7-918b-40ee-bacf-9ce9962d479b--
[2] soap reply for the soap request created by axis2/c
HTTP/1.1 400 Bad Request
Server: Apache-Coyote/1.1
Content-Type: application/soap+xml; action="
http://www.w3.org/2005/08/addressing/soap/fault";charset=UTF-8
Transfer-Encoding: chunked
Date: Thu, 11 Oct 2007 13:24:51 GMT
Connection: close
241
<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope xmlns:wsa="http://www.w3.org/2005/08/addressing"
xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope ">
<soapenv:Header>
<wsa:Action>http://www.w3.org/2005/08/addressing/soap/fault</wsa:Action>
</soapenv:Header>
<soapenv:Body>
<soapenv:Fault>
<soapenv:Code>
<soapenv:Value>soapenv:Sender</soapenv:Value>
</soapenv:Code>
<soapenv:Reason>
<soapenv:Text xml:lang="en-US">Invalid Content Type Field in the
Mime Message</soapenv:Text>
</soapenv:Reason>
<soapenv:Detail></soapenv:Detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
[3] soap request created by AXIS2 java
POST /axis2/services/simple_int HTTP/1.1
SOAPAction: "urn:int_input_output"
User-Agent: Axis2
Host: 127.0.0.1:9000
Transfer-Encoding: chunked
Content-Type: multipart/related;
boundary=MIMEBoundaryurn_uuid_0CC8179AF3744E86CC11921092869841;
type="application/xop+xml"; start="< 0.urn:uuid:[EMAIL PROTECTED]>";
start-info="text/xml";
charset=UTF-8259--MIMEBoundaryurn_uuid_0CC8179AF3744E86CC11921092869841content-type:
application/xop+xml; charset=UTF-8; type="text/xml";content-transfer-encoding:
binarycontent-id:
<0.urn:uuid:[EMAIL PROTECTED]>
<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope xmlns:soapenv="
http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header />
<soapenv:Body>
<test1:int_input_outputMessage xmlns:test1="
http://querix.com/xsd">
<test1:param0>10</test1:param0>
</test1:int_input_outputMessage>
</soapenv:Body>
</soapenv:Envelope>--MIMEBoundaryurn_uuid_0CC8179AF3744E86CC11921092869841--0---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]