axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "keith chapman" <keithgchap...@gmail.com>
Subject Re: Complex Types via REST with Axis2
Date Wed, 25 Jun 2008 06:02:37 GMT
Hi,

Could you post the schema section for this operation please. I could give
you a solution then.

Thanks,
Keith.

On Wed, Jun 25, 2008 at 3:54 AM, Matthew Beldyk <matt@beldyk.org> wrote:

> Hi, I'm using Axis2 with Tomcat.  I've been using SOAP to talk to my
> servlets, but recently the discussion came up wondering if we would
> use REST with our services.
>
> Currently, I send messages to our servlets similar to (headers pulled out):
>      <mon:GPSSearch>
>         <BRadius>
>            <ser:Lat>59.362584</ser:Lat>
>            <ser:Lon>-153.44467</ser:Lon>
>            <ser:Radius>10</ser:Radius>
>         </BRadius>
>        <StartTime>2000-02-02T18:49:00.000-07:00</StartTime>
>      </mon:GPSSearch>
>
> I would like to do something similar to
> http://
> *.com:8080/axis2/services/GPSSearch/GPSSearch?ArchiveStartAfter=2008-06-15T00:00:00.000-07:00&BRadius=something
> (NOTE:  http://
> *.com:8080/axis2/services/GPSSearch/GPSSearch?ArchiveStartAfter=2008-06-15T00:00:00.000-07:00
> behaves as I would expect)
>
> Unfortunately, I am unable to determine how to represent
> "BRadius=something" for any of our complex types.  Initially I tried:
>
> "BRadius=<ser:Lat>59.362584</ser:Lat><ser:Lon>-153.44467</ser:Lon><ser:Radius>10</ser:Radius>"
> which was passed to my code as
>
> "<BRadius><![CDATA[<ser:Lat>59.362584</ser:Lat><ser:Lon>-153.44467</ser:Lon><ser:Radius>10</ser:Radius>]]></BRadius>"
>
> Is there any way to represent complex types like this?  If so, how?
>
> Best Regards,
> Matt Beldyk
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


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

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

Mime
View raw message