You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Manas Ranade <mr...@tibco.com> on 2007/08/18 16:47:35 UTC
WS unable to handle < and > in SOAP request
Hi,
We are communicating with Apache Axis using an AJAX client and sending
following request (I've cut it short in between):
<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Body><ns:Request xmlns:jsx1="http://service.mdm.sysco.com"
xmlns:ns="http://service.mdm.sysco.com"><batchSize>4</batchSize><foreign
KeyData xsi:type="SOAP-ENC:Array"><item
xsi:type='ns:ForeignKeyColumnData'>...
</item><data/></foreignKeyData><inColumnsData
xsi:type="SOAP-ENC:Array"><item
xsi:type='ns:FilterColumnData'>...</item><data/></inColumnsData
><outColumnsData xsi:type="SOAP-ENC:Array"><item
xsi:type='ns:ReturnColumnData'>...
</item><data/></outColumnsData><paginationReq>YES</paginationReq><
startCount>1</startCount><tables xsi:type="SOAP-ENC:Array"><item
xsi:type='ns:Table'>...
</item><data/></tables></ns:Request></SOAP-ENV:Body>
</SOAP-ENV:Envelope>
There are 6 elements getting passed:
batchSize - integer
foreignKeyData - SOAP Array
inColumnsData - SOAP Array
outColumnsData - SOAP Array
paginationReq - string
startCount - integer
tables - SOAP Array
As you can see the < and > are getting converted to < and > for
all SOAP Arrays.
Is this a problem for Axis? We are getting HTTP 500 response back from
web service.
Is there any web service level configuration that might enable handling
of these tags?
Appreciate your help,
Manas
RE: WS unable to handle < and > in SOAP request
Posted by Manas Ranade <mr...@tibco.com>.
Hi Anne,
I was trying to send data as string from client side, that was the
problem. Once I configured to send as XML it started working fine.
Thanks,
Manas
-----Original Message-----
From: Anne Thomas Manes [mailto:atmanes@gmail.com]
Sent: Sunday, August 19, 2007 6:00 PM
To: axis-user@ws.apache.org
Subject: Re: WS unable to handle < and > in SOAP request
What is the format of the data that you are submitting to the method
invocation. (e.g., is it a string or an array?)
(If you could show us the code, that would help.)
On 8/19/07, Manas Ranade <mr...@tibco.com> wrote:
> TIBCO General Interface (AJAX UI) tool is used as client and it
> generates the SOAP envelop.
> - Manas
>
> -----Original Message-----
> From: Anne Thomas Manes [mailto:atmanes@gmail.com]
> Sent: Sunday, August 19, 2007 12:55 AM
> To: axis-user@ws.apache.org
> Subject: Re: WS unable to handle < and > in SOAP request
>
> How are you generating the SOAP request?
> (please provide client code)
>
> Anne
>
> On 8/18/07, Manas Ranade <mr...@tibco.com> wrote:
> >
> >
> >
> >
> > Hi,
> >
> >
> >
> > We are communicating with Apache Axis using an AJAX client and
sending
> > following request (I've cut it short in between):
> >
> >
> >
> > <?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope
> > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
> > xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> > xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> >
> > <SOAP-ENV:Body><ns:Request xmlns:jsx1="http://service.mdm.sysco.com"
> >
>
xmlns:ns="http://service.mdm.sysco.com"><batchSize>4</batchSize><foreign
> KeyData
> > xsi:type="SOAP-ENC:Array"><item
> > xsi:type='ns:ForeignKeyColumnData'>...
> > </item><data/></foreignKeyData><inColumnsData
> > xsi:type="SOAP-ENC:Array"><item
> >
>
xsi:type='ns:FilterColumnData'>...</item><data/></inColumnsData
> ><outColumnsData
> > xsi:type="SOAP-ENC:Array"><item
> > xsi:type='ns:ReturnColumnData'>...
> >
>
</item><data/></outColumnsData><paginationReq>YES</paginationReq><
> startCount>1</startCount><tables
> > xsi:type="SOAP-ENC:Array"><item xsi:type='ns:Table'>...
> > </item><data/></tables></ns:Request></SOAP-ENV:Body>
> >
> > </SOAP-ENV:Envelope>
> >
> >
> >
> > There are 6 elements getting passed:
> >
> > batchSize - integer
> >
> > foreignKeyData - SOAP Array
> >
> > inColumnsData - SOAP Array
> >
> > outColumnsData - SOAP Array
> >
> > paginationReq - string
> >
> > startCount - integer
> >
> > tables - SOAP Array
> >
> >
> >
> > As you can see the < and > are getting converted to < and >
for
> all
> > SOAP Arrays.
> >
> > Is this a problem for Axis? We are getting HTTP 500 response back
from
> web
> > service.
> >
> > Is there any web service level configuration that might enable
> handling of
> > these tags?
> >
> >
> >
> > Appreciate your help,
> >
> > Manas
> >
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: WS unable to handle < and > in SOAP request
Posted by Anne Thomas Manes <at...@gmail.com>.
What is the format of the data that you are submitting to the method
invocation. (e.g., is it a string or an array?)
(If you could show us the code, that would help.)
On 8/19/07, Manas Ranade <mr...@tibco.com> wrote:
> TIBCO General Interface (AJAX UI) tool is used as client and it
> generates the SOAP envelop.
> - Manas
>
> -----Original Message-----
> From: Anne Thomas Manes [mailto:atmanes@gmail.com]
> Sent: Sunday, August 19, 2007 12:55 AM
> To: axis-user@ws.apache.org
> Subject: Re: WS unable to handle < and > in SOAP request
>
> How are you generating the SOAP request?
> (please provide client code)
>
> Anne
>
> On 8/18/07, Manas Ranade <mr...@tibco.com> wrote:
> >
> >
> >
> >
> > Hi,
> >
> >
> >
> > We are communicating with Apache Axis using an AJAX client and sending
> > following request (I've cut it short in between):
> >
> >
> >
> > <?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope
> > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
> > xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> > xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> >
> > <SOAP-ENV:Body><ns:Request xmlns:jsx1="http://service.mdm.sysco.com"
> >
> xmlns:ns="http://service.mdm.sysco.com"><batchSize>4</batchSize><foreign
> KeyData
> > xsi:type="SOAP-ENC:Array"><item
> > xsi:type='ns:ForeignKeyColumnData'>...
> > </item><data/></foreignKeyData><inColumnsData
> > xsi:type="SOAP-ENC:Array"><item
> >
> xsi:type='ns:FilterColumnData'>...</item><data/></inColumnsData
> ><outColumnsData
> > xsi:type="SOAP-ENC:Array"><item
> > xsi:type='ns:ReturnColumnData'>...
> >
> </item><data/></outColumnsData><paginationReq>YES</paginationReq><
> startCount>1</startCount><tables
> > xsi:type="SOAP-ENC:Array"><item xsi:type='ns:Table'>...
> > </item><data/></tables></ns:Request></SOAP-ENV:Body>
> >
> > </SOAP-ENV:Envelope>
> >
> >
> >
> > There are 6 elements getting passed:
> >
> > batchSize - integer
> >
> > foreignKeyData - SOAP Array
> >
> > inColumnsData - SOAP Array
> >
> > outColumnsData - SOAP Array
> >
> > paginationReq - string
> >
> > startCount - integer
> >
> > tables - SOAP Array
> >
> >
> >
> > As you can see the < and > are getting converted to < and > for
> all
> > SOAP Arrays.
> >
> > Is this a problem for Axis? We are getting HTTP 500 response back from
> web
> > service.
> >
> > Is there any web service level configuration that might enable
> handling of
> > these tags?
> >
> >
> >
> > Appreciate your help,
> >
> > Manas
> >
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
RE: WS unable to handle < and > in SOAP request
Posted by Manas Ranade <mr...@tibco.com>.
TIBCO General Interface (AJAX UI) tool is used as client and it
generates the SOAP envelop.
- Manas
-----Original Message-----
From: Anne Thomas Manes [mailto:atmanes@gmail.com]
Sent: Sunday, August 19, 2007 12:55 AM
To: axis-user@ws.apache.org
Subject: Re: WS unable to handle < and > in SOAP request
How are you generating the SOAP request?
(please provide client code)
Anne
On 8/18/07, Manas Ranade <mr...@tibco.com> wrote:
>
>
>
>
> Hi,
>
>
>
> We are communicating with Apache Axis using an AJAX client and sending
> following request (I've cut it short in between):
>
>
>
> <?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope
> xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema">
>
> <SOAP-ENV:Body><ns:Request xmlns:jsx1="http://service.mdm.sysco.com"
>
xmlns:ns="http://service.mdm.sysco.com"><batchSize>4</batchSize><foreign
KeyData
> xsi:type="SOAP-ENC:Array"><item
> xsi:type='ns:ForeignKeyColumnData'>...
> </item><data/></foreignKeyData><inColumnsData
> xsi:type="SOAP-ENC:Array"><item
>
xsi:type='ns:FilterColumnData'>...</item><data/></inColumnsData
><outColumnsData
> xsi:type="SOAP-ENC:Array"><item
> xsi:type='ns:ReturnColumnData'>...
>
</item><data/></outColumnsData><paginationReq>YES</paginationReq><
startCount>1</startCount><tables
> xsi:type="SOAP-ENC:Array"><item xsi:type='ns:Table'>...
> </item><data/></tables></ns:Request></SOAP-ENV:Body>
>
> </SOAP-ENV:Envelope>
>
>
>
> There are 6 elements getting passed:
>
> batchSize - integer
>
> foreignKeyData - SOAP Array
>
> inColumnsData - SOAP Array
>
> outColumnsData - SOAP Array
>
> paginationReq - string
>
> startCount - integer
>
> tables - SOAP Array
>
>
>
> As you can see the < and > are getting converted to < and > for
all
> SOAP Arrays.
>
> Is this a problem for Axis? We are getting HTTP 500 response back from
web
> service.
>
> Is there any web service level configuration that might enable
handling of
> these tags?
>
>
>
> Appreciate your help,
>
> Manas
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: WS unable to handle < and > in SOAP request
Posted by Anne Thomas Manes <at...@gmail.com>.
How are you generating the SOAP request?
(please provide client code)
Anne
On 8/18/07, Manas Ranade <mr...@tibco.com> wrote:
>
>
>
>
> Hi,
>
>
>
> We are communicating with Apache Axis using an AJAX client and sending
> following request (I've cut it short in between):
>
>
>
> <?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope
> xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema">
>
> <SOAP-ENV:Body><ns:Request xmlns:jsx1="http://service.mdm.sysco.com"
> xmlns:ns="http://service.mdm.sysco.com"><batchSize>4</batchSize><foreignKeyData
> xsi:type="SOAP-ENC:Array"><item
> xsi:type='ns:ForeignKeyColumnData'>…
> </item><data/></foreignKeyData><inColumnsData
> xsi:type="SOAP-ENC:Array"><item
> xsi:type='ns:FilterColumnData'>…</item><data/></inColumnsData><outColumnsData
> xsi:type="SOAP-ENC:Array"><item
> xsi:type='ns:ReturnColumnData'>…
> </item><data/></outColumnsData><paginationReq>YES</paginationReq><startCount>1</startCount><tables
> xsi:type="SOAP-ENC:Array"><item xsi:type='ns:Table'>…
> </item><data/></tables></ns:Request></SOAP-ENV:Body>
>
> </SOAP-ENV:Envelope>
>
>
>
> There are 6 elements getting passed:
>
> batchSize – integer
>
> foreignKeyData – SOAP Array
>
> inColumnsData – SOAP Array
>
> outColumnsData – SOAP Array
>
> paginationReq – string
>
> startCount – integer
>
> tables – SOAP Array
>
>
>
> As you can see the < and > are getting converted to < and > for all
> SOAP Arrays.
>
> Is this a problem for Axis? We are getting HTTP 500 response back from web
> service.
>
> Is there any web service level configuration that might enable handling of
> these tags?
>
>
>
> Appreciate your help,
>
> Manas
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org