axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Peschel <>
Subject Problems with > in return messages
Date Mon, 26 Jul 2004 20:12:08 GMT
I am not sure if this should go here or in the developer's list, but I 
will try here first.

I wrote a simple soap application to send a string and receive a 
string.  The operation was called 'command'.  I just want the string to 
bounce back right now, so my code looks like:
xsd__string OccWebTicket::command(xsd__string Value0)
    return Value0;

This seems to work fine until I send a '>' through in the request ie 
'<testTag>'.  I expected to receive back the same thing, instead I 
recieve back '>'.  Through a bit of investigaion, it appears to always 
be dropping everything before the '>'.  (ie send 'test<>Tag' and receive 

The same problem appears in the interoptests/base test program (change 
'hello world' to 'hello>world' and you will see the same thing.

If I use the TCPMON java program, the problem is on the server side, not 
the client.  Here is the send message (for the base test program)
POST /axis/base HTTP/1.1
Content-Type: text/xml; charset=UTF-8
SOAPAction: "base#echoString"
Content-Length: 399
<?xml version='1.0' encoding='utf-8' ?>
         <ns1:echoString xmlns:ns1="">
            <inputString xsi:type="xsd:string">hello&gt;world</inputString>

And the receive message
HTTP/1.1 200 OK
Date: Mon, 26 Jul 2004 20:09:18 GMT
Server: Apache/1.3.29 (Unix) mod_fastcgi/2.4.2
Content-Length: 420
Content-Type: text/xml
<?xml version='1.0' encoding='utf-8' ?>
         <ns1:echoStringResponse xmlns:ns1="">

I was hoping to send and receive XML documents as my parameter, but if I 
can't send a '>' character, this won't work.  I did try send the escaped 
version ('hello&gt;world') adn that will work.  But, I don't understand 
why I only have this problem on '>' and not on '<'

Any thoughts would be helpful here....


View raw message