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: Thursday, September 12, 2013 5:50 AM
Points: 47, Visits: 267
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: Wednesday, April 16, 2014 9:25 AM
Points: 7,070, Visits: 12,523
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

Believe you can and you're halfway there. --Theodore Roosevelt

Everything Should Be Made as Simple as Possible, But Not Simpler --Albert Einstein

The significant problems we face cannot be solved at the same level of thinking we were at when we created them. --Albert Einstein

1 apple is not exactly 1/8 of 8 apples. Because there are no absolutely identical apples. --Giordy
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: Thursday, September 12, 2013 5:50 AM
Points: 47, Visits: 267
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: Wednesday, April 16, 2014 9:25 AM
Points: 7,070, Visits: 12,523
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

Believe you can and you're halfway there. --Theodore Roosevelt

Everything Should Be Made as Simple as Possible, But Not Simpler --Albert Einstein

The significant problems we face cannot be solved at the same level of thinking we were at when we created them. --Albert Einstein

1 apple is not exactly 1/8 of 8 apples. Because there are no absolutely identical apples. --Giordy
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: Thursday, September 12, 2013 5:50 AM
Points: 47, Visits: 267
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