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 Oliver Hirschi <o....@bluewin.ch> on 2007/07/17 17:01:55 UTC
Use SOAP-Service to query database
Hi there
I have to implement a SOAP-Server as a application server to query
database. The clients are java and c++.
I think this is base practice of using a soap-service, isn't it?
So, how would you return the ResultSet? I think there would be the
solution go throw the ResultSet on server and generate a xml-stream
which is returned like the following:
----------------------------------------
<ResultSet>
<Row>
<Col name="Label1">Value11</Col>
<Col name="Label2">Value12</Col>
...
</Row>
<Row>
<Col name="Label1">Value21</Col>
<Col name="Label2">Value22</Col>
...
</Row>
...
</ResultSet>
----------------------------------------
Is there a better way to do that?
Thanks & kind regards
--
Oliver Hirschi
http://www.FamilyHirschi.ch
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: Use SOAP-Service to query database
Posted by Joe Nathan <jo...@yahoo.com>.
Oliver Hirschi-2 wrote:
>
> Is there a generic framework for doing that?
>
SOAP means platform and programming language neutral,
which means it supports limited data types. Obvious choice
is String. To return data, one obvious choice is envelop into
XML string and return it! So your clients should understand
your xml string.
regards.
--
View this message in context: http://www.nabble.com/Use-SOAP-Service-to-query-database-tf4097472.html#a11667149
Sent from the Axis - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: Use SOAP-Service to query database
Posted by Oliver Hirschi <o....@bluewin.ch>.
"Joe Nathan" <jo...@yahoo.com> schrieb im Newsbeitrag
news:11659530.post@talk.nabble.com...
>
> You are rignt on it!
>
Is there a generic framework for doing that?
Thanks in advanced...
Regards, Oli
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: Use SOAP-Service to query database
Posted by Joe Nathan <jo...@yahoo.com>.
You are rignt on it!
regards.
Oliver Hirschi-2 wrote:
>
> Hi there
>
> I have to implement a SOAP-Server as a application server to query
> database. The clients are java and c++.
> I think this is base practice of using a soap-service, isn't it?
> So, how would you return the ResultSet? I think there would be the
> solution go throw the ResultSet on server and generate a xml-stream
> which is returned like the following:
> ----------------------------------------
> <ResultSet>
> <Row>
> <Col name="Label1">Value11</Col>
> <Col name="Label2">Value12</Col>
> ...
> </Row>
> <Row>
> <Col name="Label1">Value21</Col>
> <Col name="Label2">Value22</Col>
> ...
> </Row>
> ...
> </ResultSet>
> ----------------------------------------
>
> Is there a better way to do that?
>
> Thanks & kind regards
>
> --
> Oliver Hirschi
> http://www.FamilyHirschi.ch
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/Use-SOAP-Service-to-query-database-tf4097472.html#a11659530
Sent from the Axis - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org