Return-Path: Delivered-To: apmail-ws-axis-c-user-archive@www.apache.org Received: (qmail 1974 invoked from network); 30 Mar 2009 08:43:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 30 Mar 2009 08:43:18 -0000 Received: (qmail 82752 invoked by uid 500); 30 Mar 2009 08:43:17 -0000 Delivered-To: apmail-ws-axis-c-user-archive@ws.apache.org Received: (qmail 82728 invoked by uid 500); 30 Mar 2009 08:43:17 -0000 Mailing-List: contact axis-c-user-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: "Apache AXIS C User List" Reply-To: "Apache AXIS C User List" Delivered-To: mailing list axis-c-user@ws.apache.org Received: (qmail 82719 invoked by uid 99); 30 Mar 2009 08:43:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Mar 2009 08:43:17 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,NORMAL_HTTP_TO_IP,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of yuanfeng.zhang@gmail.com designates 209.85.198.248 as permitted sender) Received: from [209.85.198.248] (HELO rv-out-0708.google.com) (209.85.198.248) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Mar 2009 08:43:07 +0000 Received: by rv-out-0708.google.com with SMTP id k29so2090156rvb.28 for ; Mon, 30 Mar 2009 01:42:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=HNg58+dQyLYZApkWBI7rdHkkwBCDRySS2681EQMSpN0=; b=FFO4Rme/K5IRh9bJ2Val9DJE6xGlfQFCTPTsnCruf5O+fRuL1v3Xd5036NhDh6Glh+ od6XqSnHnMazqnoH5vz2ViTQLinF4tPH7IR/0+c0mKi3YTkoupZLQdaBHN3K0s16b1jZ FxaG/DtwiNY/+ztizXMdk5d1mZwgi3mWpUyqI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=tQ5DuJM3B0O4Y1Gv/A7wPPo0Vy12nyqhs3b6/mUSnKXEZuQvzVM8lE2ZAxoef42TD1 1kx3UV6CZX0PkqAZdt+pXgOfnRoTqTc+yvqRMDf3JpqlxzuJJhydDzyXSkIZnlVX20kH eHed87RxRtEWV+tJiDmPCqPho7g7C+Ngfr1RA= MIME-Version: 1.0 Received: by 10.142.43.7 with SMTP id q7mr2031889wfq.118.1238402565454; Mon, 30 Mar 2009 01:42:45 -0700 (PDT) In-Reply-To: <1238399033.12766.4.camel@manjula> References: <2d9dc5700903292331k30dfefc6h7f6aa238daa76fc2@mail.gmail.com> <1238399033.12766.4.camel@manjula> Date: Mon, 30 Mar 2009 16:42:45 +0800 Message-ID: <2d9dc5700903300142o6b3f3f7yc4af83b2dd2818f3@mail.gmail.com> Subject: Re: Soap Message whit MTOM enabled Can't Work From: Yuanfeng Zhang To: Apache AXIS C User List Cc: Lance Li Content-Type: multipart/alternative; boundary=000e0cd3047000bd420466521195 X-Virus-Checked: Checked by ClamAV on apache.org --000e0cd3047000bd420466521195 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit it is the same when we run mtom sample... -------------------------------------------------------------------------------------------------------------------- \client\bin>mtom.exe http://10.24.2.2:8080/axis2/services/bss_serv ice_trs log folder C:\Borqs\uDrop\client\axis2c/logs does not exist - log file mtom.log is written to . dir Using endpoint : http://10.24.2.2:8080/axis2/services/bss_service_trs test.jpg Recieved Fault : soapenv:ClientSOAP message does no t contain a SOAP envelope element ----------------------------------------------------------------------------------------------------------------------------------------- packages we captured: -------------------------------------------------------------------------------------------------------------------- POST /axis2/services/bss_service_trs HTTP/1.1 User-Agent: Axis2C/1.6.0 SOAPAction: "" Transfer-Encoding: chunked Content-Type: multipart/related; boundary=MIMEBoundary161d2f8a-024f-4977-bb77-1c8b6c8303eb; type="application/xop+xml"; start="< 0.6d6511ed-2461-414d-b850-bb209dabc5a0@apache.org>"; start-info="text/xml"; charset="UTF-8" Host: 10.24.2.2:8080 32 --MIMEBoundary161d2f8a-024f-4977-bb77-1c8b6c8303eb 2 a6 content-transfer-encoding: binary content-id: <0.6d6511ed-2461-414d-b850-bb209dabc5a0@apache.org> content-type: application/xop+xml;charset=UTF-8;type="text/xml"; 2 19b test.jpg 32 --MIMEBoundary161d2f8a-024f-4977-bb77-1c8b6c8303eb 2 80 content-transfer-encoding: binary content-id: <1.9971c660-0b4d-44d6-89ad-66392b09d352@apache.org> content-type: image/jpeg 2 34 --MIMEBoundary161d2f8a-024f-4977-bb77-1c8b6c8303eb-- 0 HTTP/1.1 500 Internal Server Error Date: Mon, 30 Mar 2009 08:01:55 GMT Server: Apache/2.2.3 (Red Hat) Connection: close Transfer-Encoding: chunked Content-Type: multipart/related; boundary=MIMEBoundary0952b37a-1d01-1de1-3024-001e4fd3ad50; type="application/xop+xml"; start="< 0.0952b410-1d01-1de1-3025-001e4fd3ad50@apache.org>"; start-info="text/xml"; charset="UTF-8" 243 --MIMEBoundary0952b37a-1d01-1de1-3024-001e4fd3ad50 content-transfer-encoding: binary content-id: <0.0952b410-1d01-1de1-3025-001e4fd3ad50@apache.org> content-type: application/xop+xml;charset=UTF-8;type="text/xml"; soapenv:ClientSOAP message does not contain a SOAP envelope element --MIMEBoundary0952b37a-1d01-1de1-3024-001e4fd3ad50-- 0 2009/3/30 Manjula Peiris > Zhang, > > Seems to me your message doesn't have any elements ? Are > you creating the data_handlers correctly in your client code ? Please > see the mtom sample for more information. > > Thanks, > Manjula. > > > On Mon, 2009-03-30 at 14:31 +0800, Yuanfeng Zhang wrote: > > Hi, > > > > > > We get the latest axis2c source code from svn, built it with > > Visual C++ 2008, and run it as a client on Window XP platform. It > > really works without MTOM enabled. BUT, when it is set to be MTOM > > enabled, it cannot work at all. > > > > > > The server side is Apache2 server with axis2c module, and the error > > message is that "[Mon Mar 30 10:02:42 2009] [critical] > > soap_builder.c(852) SOAP message does not have a SOAP envelope > > element". We also captured http packets sent out from client side, the > > related messages are list below. > > > > > > We didn't find this problem in axis2c1.5, it seems a new problem. > > Please help check it. Thanks! > > > > > > > > > > POST /axis2/services/bss_service_trs HTTP/1.1 > > User-Agent: Axis2C/1.6.0 > > > > Transfer-Encoding: chunked > > > > Content-Type: multipart/related; > boundary=MIMEBoundarye9260144-753c-43c1-9da4-27c45d19ba4e; > type="application/xop+xml"; start="< > 0.29bca945-2a86-4769-8bbf-38eaf6d42ea8@apache.org>"; > start-info="application/soap+xml"; charset="UTF-8" > > > > Host: 10.24.2.2:8080 > > > > > > > > 32 > > > > --MIMEBoundarye9260144-753c-43c1-9da4-27c45d19ba4e > > > > 2 > > > > > > > > > > > > b2 > > > > content-transfer-encoding: binary > > > > content-id: <0.29bca945-2a86-4769-8bbf-38eaf6d42ea8@apache.org> > > > > content-type: > application/xop+xml;charset=UTF-8;type="application/soap+xml"; > > > > > > > > 2 > > > > > > > > > > > > 1b5 > > > > name="download_chunk" version="version01"> password="123456789" user_name="yuanfeng.zhang@gmail.com">49 MD5="baf08d6d5abbed726c6d9da2617b5175" > storage_key="baf08d6d5abbed726c6d9da2617b5175.DAT"> > > > > > > > > 34 > > > > --MIMEBoundarye9260144-753c-43c1-9da4-27c45d19ba4e-- > > > > 0 > > > > > > > > HTTP/1.1 500 Internal Server Error > > > > Date: Mon, 30 Mar 2009 02:06:33 GMT > > > > Server: Apache/2.2.3 (Red Hat) > > > > Connection: close > > > > Transfer-Encoding: chunked > > > > Content-Type: multipart/related; > boundary=MIMEBoundary64686728-1ccf-1de1-2da5-001e4fd3ad50; > type="application/xop+xml"; start="< > 0.64686746-1ccf-1de1-2da6-001e4fd3ad50@apache.org>"; > start-info="application/soap+xml"; charset="UTF-8" > > > > > > > > 2d4 > > > > --MIMEBoundary64686728-1ccf-1de1-2da5-001e4fd3ad50 > > > > content-transfer-encoding: binary > > > > content-id: <0.64686746-1ccf-1de1-2da6-001e4fd3ad50@apache.org> > > > > content-type: > application/xop+xml;charset=UTF-8;type="application/soap+xml"; > > > > > > > > soapenv:Sender xmlns:xml="http://www.w3.org/XML/1998/namespace" xml:lang="en">SOAP > message does not contain a SOAP envelope > element > > > > --MIMEBoundary64686728-1ccf-1de1-2da5-001e4fd3ad50-- > > > > 0 > > --000e0cd3047000bd420466521195 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable it = is the same when we run mtom sample...
------------= ---------------------------------------------------------------------------= -----------------------------
ice_trs
log folder C:\Borqs\uDrop\client\axis2c/logs does not exist - log file mto= m.log
is written to . dir
<ns1:mtomSample xmlns:ns1=3D"= http://ws.apache.org/axis2/c/samples/mtom"><ns1:fileN
<= div> ame>test.jpg</ns1:fileName><ns1:image><xop:Include xmlns:= xop=3D"http://www.w3.org/
"></xop:Include></ns1:image></ns1:mtomSample>= ;
Recieved Fault : <soapenv:Fault xmlns:soapenv=3D"http://schemas.xmlsoap.org/soap/e
nvelope/"><faultcode>soapenv:Client</faultcode><= ;faultstring>SOAP message does no
t contain a SOAP envelope el= ement</faultstring></soapenv:Fault>
-----------= ---------------------------------------------------------------------------= ---------------------------------------------------

packages we captured:
-----------------------= ---------------------------------------------------------------------------= ------------------
POST /axis2/services/bss_service_trs HTTP/1.1

User-Agent: Axis2C/1.6.0

SOAPAction: "= "

Transfer-Encoding: chunked

Content-Type: multipart/related; boundary=3DMIMEBoundary161d2f8a= -024f-4977-bb77-1c8b6c8303eb; type=3D"application/xop+xml"; start= =3D"<0.6d6511ed-246= 1-414d-b850-bb209dabc5a0@apache.org>"; start-info=3D"text/= xml"; charset=3D"UTF-8"



32

--MIMEBoundary161d2f8a-024f-49= 77-bb77-1c8b6c8303eb

2




a6

content-transfer-encoding: binary


content-type: application/xop+xml;charset=3DUTF-8;type= =3D"text/xml";



=
2





19b

<soapenv:Envelope xmlns:soap= env=3D"http://schemas.xmlsoap.org/soa= p/envelope/"><soapenv:Body><ns1:mtomSample xmlns:ns1= =3D"http://ws.apache.org/axis2/c/samp= les/mtom"><ns1:fileName>test.jpg</ns1:fileName><= ns1:image><xop:Include xmlns:xop=3D"http://www.w3.org/2004/08/xop/include" href=3D"cid:1.9971c660-0b4d-44d6-89ad-6639= 2b09d352@apache.org"></xop:Include></ns1:image><= /ns1:mtomSample></soapenv:Body></soapenv:Envelope>



32

--MIMEBoundary161d2f8a-024f-4977-bb77-1c8b6c8303eb

<= div>2





80

content-transfer-encoding: = binary


content-type: image/jpeg


<= /div>



2





34

--MIMEBoundary161d2f8a-024f-4977-bb77-1c8b6c8303eb--

<= div>0



HTTP/1.1 500 I= nternal Server Error

Date: Mon, 30 Mar 2009 08:01:55 GMT

Server:= Apache/2.2.3 (Red Hat)

Connection: close

Transfer-Encoding: chunked

Co= ntent-Type: multipart/related; boundary=3DMIMEBoundary0952b37a-1d01-1de1-30= 24-001e4fd3ad50; type=3D"application/xop+xml"; start=3D"<= 0.0952b410-1d01-1de1-3025-0= 01e4fd3ad50@apache.org>"; start-info=3D"text/xml"; ch= arset=3D"UTF-8"



243

<= div>--MIMEBoundary0952b37a-1d01-1de1-3024-001e4fd3ad50

=
content-transfer-encoding: binary


content-type: application/xop+xml;charset=3DUTF-8;type= =3D"text/xml";



=
<soapenv:Envelope xmlns:soapenv=3D"http://schemas.xmlsoap.org/soap/envelope/"><soapenv:He= ader></soapenv:Header><soapenv:Body><soapenv:Fault><= ;faultcode>soapenv:Client</faultcode><faultstring>SOAP messa= ge does not contain a SOAP envelope element</faultstring></soapenv= :Fault></soapenv:Body></soapenv:Envelope>

--MIMEBoundary0952b37a-1d01-1de1-3024-001e4fd3ad50--

0


2009/3/30 Manjula Peiris <manjula@wso2.com>
Zhang,

Seems to me your message doesn't have any <xop:Include> elements = ? Are
you creating the data_handlers correctly in your client code ? Please
see the mtom sample for more information.

Thanks,
Manjula.


On Mon, 2009-03-30 at 14:31 +0800, Yuanfeng Zhang wrote:
> Hi,
>
>
> =A0 =A0 We get the latest axis2c source code from svn, built it with > Visual C++ 2008, =A0and run it as a client on Window XP platform. It > really works without MTOM enabled. BUT, when it is set to be MTOM
> enabled, it cannot work at all.
>
>
> The server side is Apache2 server with axis2c module, and the error > message is that "[Mon Mar 30 10:02:42 2009] [critical]
> soap_builder.c(852) SOAP message does not have a SOAP envelope
> element". We also captured http packets sent out from client side= , the
> related messages are list below.
>
>
> We didn't find this problem in axis2c1.5, it seems a new problem.<= br> > Please help check it. Thanks!
>
>
>
>
> POST /axis2/services/bss_service_trs HTTP/1.1
> User-Agent: Axis2C/1.6.0
>
> Transfer-Encoding: chunked
>
> Content-Type: multipart/related; boundary=3DMIMEBoundarye9260144-753c-= 43c1-9da4-27c45d19ba4e; type=3D"application/xop+xml"; start=3D&qu= ot;<0.29bca945-2a86-4769-8bbf-38eaf6d42ea8@apache.org>"; start-inf= o=3D"application/soap+xml"; charset=3D"UTF-8"
>
> Host: 10.24.2.2:80= 80
>
>
>
> 32
>
> --MIMEBoundarye9260144-753c-43c1-9da4-27c45d19ba4e
>
> 2
>
>
>
>
>
> b2
>
> content-transfer-encoding: binary
>
> content-id: <0.29bca945-2a86-4769-8bbf-38eaf6d42ea8@apache.org> >
> content-type: application/xop+xml;charset=3DUTF-8;type=3D"applica= tion/soap+xml";
>
>
>
> 2
>
>
>
>
>
> 1b5
>
> <soapenv:Envelope xmlns:soapenv=3D"http://www.w3.org/2003/05/soap-e= nvelope"><soapenv:Body><operation name=3D"downloa= d_chunk" version=3D"version01"><request_head req_seque= nce=3D"1" password=3D"123456789" user_name=3D"yuanfeng.zhang@gmail.com"&= gt;<host_id>49</host_id></request_head><download_chunk= MD5=3D"baf08d6d5abbed726c6d9da2617b5175" storage_key=3D"baf= 08d6d5abbed726c6d9da2617b5175.DAT"></download_chunk></oper= ation></soapenv:Body></soapenv:Envelope>
>
>
>
> 34
>
> --MIMEBoundarye9260144-753c-43c1-9da4-27c45d19ba4e--
>
> 0
>
>
>
> HTTP/1.1 500 Internal Server Error
>
> Date: Mon, 30 Mar 2009 02:06:33 GMT
>
> Server: Apache/2.2.3 (Red Hat)
>
> Connection: close
>
> Transfer-Encoding: chunked
>
> Content-Type: multipart/related; boundary=3DMIMEBoundary64686728-1ccf-= 1de1-2da5-001e4fd3ad50; type=3D"application/xop+xml"; start=3D&qu= ot;<0.64686746-1ccf-1de1-2da6-001e4fd3ad50@apache.org>"; start-inf= o=3D"application/soap+xml"; charset=3D"UTF-8"
>
>
>
> 2d4
>
> --MIMEBoundary64686728-1ccf-1de1-2da5-001e4fd3ad50
>
> content-transfer-encoding: binary
>
> content-id: <0.64686746-1ccf-1de1-2da6-001e4fd3ad50@apache.org> >
> content-type: application/xop+xml;charset=3DUTF-8;type=3D"applica= tion/soap+xml";
>
>
>
> <soapenv:Envelope xmlns:soapenv=3D"http://www.w3.org/2003/05/soap-e= nvelope"><soapenv:Header></soapenv:Header><soape= nv:Body><soapenv:Fault><soapenv:Code><soapenv:Value>so= apenv:Sender</soapenv:Value></soapenv:Code><soapenv:Reason&g= t;<soapenv:Text xmlns:xml=3D"http://www.w3.org/XML/1998/namespace"= xml:lang=3D"en">SOAP message does not contain a SOAP envelope= element</soapenv:Text></soapenv:Reason></soapenv:Fault>&= lt;/soapenv:Body></soapenv:Envelope>
>
> --MIMEBoundary64686728-1ccf-1de1-2da5-001e4fd3ad50--
>
> 0


--000e0cd3047000bd420466521195--