Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 88703 invoked from network); 10 Feb 2009 03:06:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Feb 2009 03:06:52 -0000 Received: (qmail 16986 invoked by uid 500); 10 Feb 2009 03:06:41 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 16948 invoked by uid 500); 10 Feb 2009 03:06:41 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 16939 invoked by uid 99); 10 Feb 2009 03:06:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Feb 2009 19:06:41 -0800 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of mgainty@hotmail.com designates 65.55.116.106 as permitted sender) Received: from [65.55.116.106] (HELO blu0-omc3-s31.blu0.hotmail.com) (65.55.116.106) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Feb 2009 03:06:29 +0000 Received: from BLU142-W7 ([65.55.116.74]) by blu0-omc3-s31.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 9 Feb 2009 19:06:08 -0800 Message-ID: Content-Type: multipart/alternative; boundary="_95b207f6-34a1-43b9-b977-8da1d310245c_" X-Originating-IP: [71.232.75.74] From: Martin Gainty To: Subject: RE: Issue with Axis OMElement Date: Mon, 9 Feb 2009 22:06:08 -0500 Importance: Normal In-Reply-To: References: <40CA35DEF01FCD4DBC5D1D799FD92814048850AC@LONMLVEM05.e2k.ad.ge.com> <40CA35DEF01FCD4DBC5D1D799FD9281404885309@LONMLVEM05.e2k.ad.ge.com> MIME-Version: 1.0 X-OriginalArrivalTime: 10 Feb 2009 03:06:08.0484 (UTC) FILETIME=[851CAA40:01C98B2C] X-Virus-Checked: Checked by ClamAV on apache.org --_95b207f6-34a1-43b9-b977-8da1d310245c_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable can you display the value of enableMtom in axis2.xml? trueassuming yo= u are sending XML Binary Optimised Packages http://ws.apache.org/axis2/0_94/mtom-guide.html ? Martin=20 ______________________________________________=20 Disclaimer and confidentiality note=20 Everything in this e-mail and any attachments relates to the official busin= ess of Sender. This transmission is of a confidential nature and Sender doe= s not endorse distribution to any party other than intended recipient. Send= er does not necessarily endorse content contained within this transmission.= =20 Date: Tue=2C 10 Feb 2009 07:32:11 +0530 Subject: Re: Issue with Axis OMElement From: keithgchapman@gmail.com To: axis-user@ws.apache.org Its hard to say what went wrong where from this. The reason it happened is = because of some malformed XML. That's all I can tell you looking at the sta= ck trace. Thanks=2C Keith. On Mon=2C Feb 9=2C 2009 at 11:43 PM=2C Chandra suriya pandian=2C Sathish (G= E Infra=2C Energy) wrote: Thanks=20 Keith. =20 I am=20 able to get through that error by changing the type to xs:any.=20 But now i am getting the following exception under the same=20 scenario: =20 Caused by: com.ctc.wstx.exc.WstxParsingException: Expected a text token=2C = got START_ELEMENT. at [row=2Ccol {unknown-source}]:=20 [1=2C208] at=20 com.ctc.wstx.sr.StreamScanner.constructWfcException(StreamScanner.java:605) at com.ctc.wstx.sr.StreamScanner.throwParseError(StreamScanner.java:461) at=20 com.ctc.wstx.sr.BasicStreamReader.getElementText(BasicStreamReader.java:677= ) at org.apache.axiom.om.impl.llom.OMStAXWrapper.getElementText(OMStAXWrapper= .java:899) =20 Any=20 idea on the above problem. =20 Regards=2C Sathish Chandra=20 =20 =20 From: keith chapman=20 [mailto:keithgchapman@gmail.com]=20 Sent: 09 February 2009=20 16:29 To: axis-user@ws.apache.org Subject: Re: Issue with=20 Axis OMElement Hi=2C This is due to a bug in Axis2. Ideally an OMElement should=20 map to xs:any and not xs:anyType in the WSDL. Therefore the workaround I co= uld=20 suggest is this=2C Save the WSDL and edit it to use xs:any instead of=20 xs:anyType. Thanks=2C Keith. On Mon=2C Feb 9=2C 2009 at 8:30 PM=2C Chandra suriya pandian=2C=20 Sathish (GE Infra=2C Energy) =20 wrote: Hi=2C >=20 I have WebService enabled a service method that returns OMElement. The >=20 generated WSDL shows the element type as 'anyType'. > > I=20 generated a stub from the WSDL and executed a client invoking the >=20 WebService method through the stub. > > The HTTP trace shows the=20 response stream returned by WebService is > correct. > But in the=20 client I am getting the following error: > >=20 org.apache.axis2.databinding.ADBException: Any type element type has >=20 not been given > at >=20 org.apache.axis2.databinding.utils.ConverterUtil.getAnyTypeObject(Conv >=20 erterUtil.java:1612) > > Exerpt from WSDL is: > >=20 >=20 > type=3D"xs:anyType"/> >=20 >=20 > > Exerpt from the response stream=20 is: > > >=20 xmlns:soapenv=3D"http://www.w3.org/2003/05/soap-envelope"> >=20 xmlns:ns=3D"http://ws.apache.org/axis2"> >=20 href=3D"cid:1.urn:uuid:49F67B152B605353D81233939394759@apache.org" >=20 xmlns:xop=3D"http://www.w3.org/2004/08/xop/include"=20 /> >=20 >=20 > > Could you=20 please kindly look into the same and let me know how I can > overcome=20 the above problem. > Do I have to configure anything to map the response=20 element of type > 'anyType' anywhere to construct 'OMElement'=20 back. > I am using Axis 2-1.4.1. > Regards=2C >=20 Sathish Chandra > --=20 Keith=20 Chapman Senior Software Engineer WSO2 Inc. Oxygenating the Web Service=20 Platform. http://wso2.org/ blog: http://www.keith-chapman.org --=20 Keith Chapman Senior Software Engineer WSO2 Inc. Oxygenating the Web Service Platform. http://wso2.org/ blog: http://www.keith-chapman.org _________________________________________________________________ Windows Live=99: E-mail. Chat. Share. Get more ways to connect.=20 http://windowslive.com/explore?ocid=3DTXT_TAGLM_WL_t2_allup_explore_022009= --_95b207f6-34a1-43b9-b977-8da1d310245c_ Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable can you display the value of enableMtom in axis2.xml?
<=3Bpa=
rameter name=3D"enableMTOM" locked=3D"false">=3Btrue<=3B/parameter>=
=3B
assuming you are sending XML Binary Optimised Packages
http://ws.apache.org/axis2/0_94/mtom-guide.html
?
Martin ______________________________________________
Disclaimer and confiden= tiality note
Everything in this e-mail and any attachments relates to t= he official business of Sender. This transmission is of a confidential natu= re and Sender does not endorse distribution to any party other than intende= d recipient. Sender does not necessarily endorse content contained within t= his transmission.





Date: Tue=2C = 10 Feb 2009 07:32:11 +0530
Subject: Re: Issue with Axis OMElement
Fro= m: keithgchapman@gmail.com
To: axis-user@ws.apache.org

Its hard t= o say what went wrong where from this. The reason it happened is because of= some malformed XML. That's all I can tell you looking at the stack trace.<= br>
Thanks=2C
Keith.

On Mon=2C F= eb 9=2C 2009 at 11:43 PM=2C Chandra suriya pandian=2C Sathish (GE Infra=2C = Energy) <=3Bs= athish.chandra@ge.com>=3B wrote:
Thanks=20 Keith.
=  =3B
I am=20 able to get through that error by changing the type to xs:any.=20
But =3Bnow= i am getting the =3Bfollowing exception under the same=20 scenario:
=  =3B

Caused by:

com.ctc.wstx.exc.WstxParsingException: Expected a text token=2C got START_ELEMENT.

at [row=2Ccol {unknown= -source}]:=20 [1=2C208]

at=20 com.ctc.wstx.sr.StreamScanner.constructWfcException(StreamScanner.java:605)

at com.ctc.wstx.sr.StreamScanner.throwParseError(StreamScanner.java:461)

at=20 com.ctc.wstx.sr.BasicStreamReader.getElementText(BasicStreamReader.java:677)

at org.apache.axiom.om.impl.llom.OMStAXWrapper.getElementText(OMStAXWrapper.java:899)
=  =3B
Any=20 idea =3Bon the above problem.
 =3B
Regards=2C
Sathish Chandra =3B
 =3B
 =3B

From: keith chapman=20 [mailto:keithgchapman@gmail.com<= /a>]
Sent: 09 February 2009=20 16:29
To:
axis-user@ws= .apache.org
Subject: Re: Issue with=20 Axis OMElement

Hi=2C

This is due to a bug in Axis2. Ideally an OMElement= should=20 map to xs:any and not xs:anyType in the WSDL. Therefore the workaround I co= uld=20 suggest is this=2C Save the WSDL and edit it to use xs:any instead of=20 xs:anyType.

Thanks=2C
Keith.

On Mon=2C Feb 9=2C 2009 at 8:30 PM=2C Chandra= suriya pandian=2C=20 Sathish (GE Infra=2C Energy) <=3Bsathish.chandra@ge.com>=3B=20 wrote:
Hi=2C
>=3B=20 I have WebService enabled a service method that returns OMElement. The>=3B=20 generated WSDL shows the element type as 'anyType'.
>=3B
>=3B I= =20 generated a stub from the WSDL and executed a client invoking the
>= =3B=20 WebService method through the stub.
>=3B
>=3B The HTTP trace sh= ows the=20 response stream returned by WebService is
>=3B correct.
>=3B Bu= t in the=20 client I am getting the following error:
>=3B
>=3B=20 org.apache.axis2.databinding.ADBException: Any type element type has
&= gt=3B=20 not been given
>=3B  =3B  =3B  =3B at
>=3B=20 org.apache.axis2.databinding.utils.ConverterUtil.getAnyTypeObject(Conv>=3B=20 erterUtil.java:1612)
>=3B
>=3B Exerpt from WSDL is:
>=3B>=3B=20 <=3Bxs:element name=3D"mtomSampleResponse">=3B
>=3B=20 <=3Bxs:complexType>=3B<=3Bxs:sequence>=3B
>=3B <=3Bxs:elem= ent minOccurs=3D"0"=20 name=3D"return" nillable=3D"true"
>=3B type=3D"xs:anyType"/>=3B>=3B=20 <=3B/xs:sequence>=3B<=3B/xs:complexType>=3B
>=3B=20 <=3B/xs:element>=3B
>=3B
>=3B Exerpt from the response stre= am=20 is:
>=3B
>=3B <=3B?xml version=3D'1.0' encoding=3D'UTF-8'?>= =3B
>=3B=20 <=3Bsoapenv:Envelope
>=3B xmlns:soapenv=3D"http://www.w3.org/2003/05/soap-envelope"&g= t=3B<=3Bsoapenv:Body>=3B
>=3B=20 <=3Bns:mtomSampleResponse
>=3B xmlns:ns=3D"http://ws.apache.org/axis2">=3B<=3Bns:return>=3B<= br>>=3B=20 <=3Breturn>=3B<=3Bxop:Include
>=3B href=3D"cid:1.urn:uuid:49= F67B152B605353D81233939394759@apache.org"
>=3B=20 xmlns:xop=3D"http://www= .w3.org/2004/08/xop/include"=20 />=3B<=3B/return>=3B
>=3B=20 <=3B/ns:return>=3B<=3B/ns:mtomSampleResponse>=3B
>=3B=20 <=3B/soapenv:Body>=3B<=3B/soapenv:Envelope>=3B
>=3B
>= =3B Could you=20 please kindly look into the same and let me know how I can
>=3B over= come=20 the above problem.
>=3B Do I have to configure anything to map the r= esponse=20 element of type
>=3B 'anyType' anywhere to construct 'OMElement'=20 back.
>=3B
I am using Axis 2-1.4.1.


>=3B Regards=2C<= br>>=3B=20 Sathish Chandra
>=3B


--
Keith=20 Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Ser= vice=20 Platform.
http://wso2.org/

blog:= http://www.keith-chapman.org<= br>



--
Keith Chapman
Senior= Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.http://wso2.org/

blog: http://www.keith-chapman.org

Windows Live=99: E-mail. Chat. Share. Get more ways to connect. Check it out. = --_95b207f6-34a1-43b9-b977-8da1d310245c_--