Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

call Java web service from SQL server 2005 store procedure and get response from web service in store procedure Expand / Collapse
Author
Message
Posted Thursday, January 10, 2013 6:38 AM


SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Yesterday @ 8:00 AM
Points: 47, Visits: 279
Dear All,

How to call Java web service from SQL server 2005 store procedure and get response from web service in store procedure.
Is it possible to Without "CLR" method ?


using the OA features, i got the "<h2>AXIS error</h2> <p>No service is available at this URL</p> "


Please help me....

Thanks in advance.

Nithiyanandam.S
Post #1405390
Posted Thursday, January 10, 2013 7:21 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Yesterday @ 10:52 PM
Points: 7,094, Visits: 12,579
To access a Java web service you would have to use SQLCLR but why would you want to do that from inside your database engine? What are you trying to do with this web service that absolutely must be done inside the database?

__________________________________________________________________________________________________
There are no special teachers of virtue, because virtue is taught by the whole community. --Plato
Post #1405430
Posted Thursday, January 10, 2013 7:32 AM


SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Yesterday @ 8:00 AM
Points: 47, Visits: 279
one applicationA is directly calling my procedure for giving data to applicationB.

inside of the proc,
I need to call the Java webservice and get data from applicationC.
It returns some data in XML format, then I inserted the data to temp table and compare that data to my own application data.
then finally I need to send the data to applicationB through applicationA.

Already we got success for the above scenario for .net webservices.
so we are trying this method.

we got the following msg for using Java webservice.
"<h2>AXIS error</h2> <p>No service is available at this URL</p> "

Thanks,
Nithiyanandam.S
Post #1405443
Posted Thursday, January 10, 2013 7:42 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Yesterday @ 10:52 PM
Points: 7,094, Visits: 12,579
A better option would be to call the web service from your application code and submit the resulting XML to the stored procedure for further use and inspection, i.e. do not call web services from within the database engine.

__________________________________________________________________________________________________
There are no special teachers of virtue, because virtue is taught by the whole community. --Plato
Post #1405458
Posted Thursday, January 10, 2013 8:36 AM


SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Yesterday @ 8:00 AM
Points: 47, Visits: 279
Thanks for your reply.
we have no option for go to appliction code.
The main application, they call only my stored proc not application code.
Post #1405500
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse