Showing posts with label webservice. Show all posts
Showing posts with label webservice. Show all posts

Thursday, March 22, 2012

Calling external webservice using certificate

I'm trying to call an external webservice which use https and certificate. I load certificate into MSIE and then made *.cer file. The problem is that if I compile simple console program which use this certificate - than all is OK. But when I compile simple rutine for SQL server and trying to run it - an exception is issued after this line:

service.ClientCertificates.Add(X509Certificate.CreateFromCertFile(certFile));

Exception is:

Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

Do you have any advices?

MiSu

In order to access the file system, your assembly must be deployed with at least an EXTERNAL_ACCESS permission grant. If you're using VStudio, you can set the target permission level via the project properties. Otherwise, see http://msdn2.microsoft.com/en-us/library/ms189524.aspx for details of the CREATE ASSEMBLY syntax.

Monday, March 19, 2012

Calling a webservice from a SQL Trigger

Please,
is there a way i can execute a webservice from within a SQL Server 2k
Trigger? Sending and receiving XML values?
Tks,
Fabiano
Hi
Maybe you can do this through a COM object and the sp_OA* procedures?
John
"Fabiano" <a@.a.com.br> wrote in message
news:%23WqHeXqlEHA.1644@.tk2msftngp13.phx.gbl...
> Please,
> is there a way i can execute a webservice from within a SQL Server 2k
> Trigger? Sending and receiving XML values?
> Tks,
> Fabiano
>
>

Calling a webservice from a SQL Trigger

Please,
is there a way i can execute a webservice from within a SQL Server 2k
Trigger? Sending and receiving XML values?
Tks,
FabianoHi
Maybe you can do this through a COM object and the sp_OA* procedures?
John
"Fabiano" <a@.a.com.br> wrote in message
news:%23WqHeXqlEHA.1644@.tk2msftngp13.phx.gbl...
> Please,
> is there a way i can execute a webservice from within a SQL Server 2k
> Trigger? Sending and receiving XML values?
> Tks,
> Fabiano
>
>

Calling a web service from a CLR SQL stored procedure

Hi,
I am trying to call a remote webservice from within SQl server using CLR.
However, SQL Server gives me an error saying that load(), loadModule() etc
are disabled. Of what I can tell, C# needs to dynamically generate and load
the XML serialization for the web service call. Does anyone know how I can
get around this problem?
Platform: SQL Server 2005 + C# (.net 2.0)Please use the beta newsgroups.
http://www.aspfaq.com/sql2005/show.asp?id=1
--
This is my signature. It is a general reminder.
Please post DDL, sample data and desired results.
See http://www.aspfaq.com/5006 for info.
"Krishna" <Krishna@.discussions.microsoft.com> wrote in message
news:B5643087-4F83-4EB6-AA7E-12D7CF6C6DEF@.microsoft.com...
> Hi,
> I am trying to call a remote webservice from within SQl server using CLR.
> However, SQL Server gives me an error saying that load(), loadModule() etc
> are disabled. Of what I can tell, C# needs to dynamically generate and
> load
> the XML serialization for the web service call. Does anyone know how I can
> get around this problem?
> Platform: SQL Server 2005 + C# (.net 2.0)

Calling a web service from a CLR SQL stored procedure

Hi,
I am trying to call a remote webservice from within SQl server using CLR.
However, SQL Server gives me an error saying that load(), loadModule() etc
are disabled. Of what I can tell, C# needs to dynamically generate and load
the XML serialization for the web service call. Does anyone know how I can
get around this problem?
Platform: SQL Server 2005 + C# (.net 2.0)Please use the beta newsgroups.
http://www.aspfaq.com/sql2005/show.asp?id=1
This is my signature. It is a general reminder.
Please post DDL, sample data and desired results.
See http://www.aspfaq.com/5006 for info.
"Krishna" <Krishna@.discussions.microsoft.com> wrote in message
news:B5643087-4F83-4EB6-AA7E-12D7CF6C6DEF@.microsoft.com...
> Hi,
> I am trying to call a remote webservice from within SQl server using CLR.
> However, SQL Server gives me an error saying that load(), loadModule() etc
> are disabled. Of what I can tell, C# needs to dynamically generate and
> load
> the XML serialization for the web service call. Does anyone know how I can
> get around this problem?
> Platform: SQL Server 2005 + C# (.net 2.0)

Calling a web service from a CLR SQL stored procedure

Hi,
I am trying to call a remote webservice from within SQl server using CLR.
However, SQL Server gives me an error saying that load(), loadModule() etc
are disabled. Of what I can tell, C# needs to dynamically generate and load
the XML serialization for the web service call. Does anyone know how I can
get around this problem?
Platform: SQL Server 2005 + C# (.net 2.0)
Please use the beta newsgroups.
http://www.aspfaq.com/sql2005/show.asp?id=1
This is my signature. It is a general reminder.
Please post DDL, sample data and desired results.
See http://www.aspfaq.com/5006 for info.
"Krishna" <Krishna@.discussions.microsoft.com> wrote in message
news:B5643087-4F83-4EB6-AA7E-12D7CF6C6DEF@.microsoft.com...
> Hi,
> I am trying to call a remote webservice from within SQl server using CLR.
> However, SQL Server gives me an error saying that load(), loadModule() etc
> are disabled. Of what I can tell, C# needs to dynamically generate and
> load
> the XML serialization for the web service call. Does anyone know how I can
> get around this problem?
> Platform: SQL Server 2005 + C# (.net 2.0)

Thursday, March 8, 2012

Call webservice from trigger/stored proc

Is it possible to call an external web service from a SQL Server trigger or stored procedure?You can sort of call a web service from a stored procedure, but it takes a lot of bubble gum and bailing wire to make it work. Can you describe what you want in a bit more detail, and one of us might have an idea or three that might help.

-PatP|||Hi
I want to call the web services which is developed in .net from sqlserver 2000.So please do help me.|||Here is a sample code (without error handling):

declare @.objRef int
,@.resultcode int
,@.responseText varchar(8000)

EXEC @.resultcode = sp_OACreate 'MSXML2.ServerXMLHTTP', @.objRef OUT,4
EXEC @.resultcode = sp_OAMethod @.objRef, 'Open', NULL,'GET','http://myurl.com', False
EXEC @.resultcode = sp_OAMethod @.objRef, 'Send',null
EXEC @.resultcode = sp_OAGetProperty @.objRef, 'responseText',@.responseText output

print(@.response)

EXEC sp_OADestroy @.objRef

Call to Webservice from a Reporting Action in SSAS

Is it possible to call a webserive from a reporting action in SSAS?

What I am trying to do is create a reporting action that will schedule a report to run at certain time by calling the CreateSubscription Web service of Reporting services.

Any advice would be much appreciated. Does anyone have any suggestions or perhaps another angle that I could approach this problem?

Thanks

You can't use a report action since the report action uses URL addressibility. Instead consider a regular action that invokes a web page, e.g. ASP.NET page. The page can call down to the Report Server.

Another approach could be to use a report action which calls a dummy report that invokes some custom code. The report can forward the parameter values while the custom code can invoke the API.

|||

Thank you for your reply. I wanted to try and schedule this as a report to run off peak hours as it was a large report. But after testing the subscription based delivery method, I have encountered memory problems which lead me to believe that SSRS may not be the way to go. I am trying to generate a report that is trying to return approx. 500 Mb of data. When the report gets triggered the memory usage of ReportingServicesService.exe climbs until it reaches approximately 14 Gigs (I have a machine with 20 Gigs of memory). After the memory usage reaches 12 Gigs the report service stops servicing any new requests which makes sense since MemoryLimit is set to 60%. This is where the problem begins. It seems that after the report has finished executing it does not want to release this memory and no new requests can be serviced.

I have a few questions that maybe you could help me out with:

1. My first question is why is the report server using up so much memory? It is a simple report with one table, no special formatting, no aggregations being done by the report server.

2. Sql server will release its memory when other processes require it, should Reporting services do the same thing?

3. What are the recommended Memory settings of MemoryLimit and MaxMemoryLimit? Are they the defaults of 60 and 80?

4. I have yet to test setting the Memory Limit settings to a value greater than 100 so that the report server can use virtual memory. What are the implications of doing this? Would you recommend doing this?

My organization deals with Billions of rows of data so it is not uncommon for someone to request a hundreds of thousands of rows for further analysis. If reporting services is not the way to go then I will have to look into creating some SSIS packages or some custom .Net code to export this data.

Any advice would be much appreciated.

Thanks.

|||

1. A 500Mb report will do for a Halloween trick. It will be probably useful to look at the ExecutionLog table and see how much time was spent in data retrieval, processing, and rendering. To answer your question, I suspect that the high memory consumption is caused by loading the large dataset in memory. I assume you have applied the latest service packs. I am really curious how would the business users analyze hundreds of thousands of rows.

2. It should. The Windows service (ReportingServicesService.exe) is written in managed code. When the memory is not used, it should be reclaimed by the .NET garbage collector. You may want to report this to the Product Feedback Center. It could be related to the 64-bit version.

3. See http://msdn2.microsoft.com/en-us/library/ms159206.aspx.

4. Again, see the above link.

As a side note, you may want to look at the Analysis Services if you need to push such big datasets.

|||

Hi Teo,

1. I've checked my ExecutionLog Table. Here are the values for TimeDataRetrieval, TimeProcessing and TimeRendering (in Minutes): 19.37min, 12.33 min, 7.38 min. Byte count was 516277912 (492Mb) and Rowcount was 642703. If only 492 Mb are retrieved, I still don't understand why the memory consumption is so high (14 Gigs). This report is actually a drillthrough action that exprots the data to a CSV file. My client requires that when they observe suspicious numbers for certain time periods, stores, products etc. they want the ability to drillthrough the underlying records to do some further analysis, send the data back to the data suppliers so they can explain why the volumes are high or low. They may even want to sell the data to other organizations.

2. I will try to report this issue to the Product Feedback Center.

3 + 4. That article is good, but it makes no recommendations whether or not we should set the memory limit values greater than 100 to use virtual memory. I will run some tests to try and see the affects of changing these properties.

What do you mean by "look at the Analysis Services if you need to push such big datasets"? Are you refering to the performance? Or just another mechanism to export the data. Please elaborate. My end users require the ability to browse cubes and then drillthrough to large datasets.

Any advice would be much appreciated.

Thanks.

|||

1. I am not exluding the possibility this to be a bug. We also ran into an issue with large reports where the reports will time out. The forthcoming SP2 is expected to fix this.

2. Also, I would suggest you contact the Support Center ASAP and request a hotfix. The best thing will be if you could send them a test harness.

What I meant is that SSAS could be a better choice if the users want to aggregate large volumes of data, e.g. for historical analysis. But sounds like in your case, the end users wants to see a detail report so scratch out SSAS.

|||Also, do you have the same issue if you request the report directly from the Report Server (e.g. using the Report Manager) as opposed to subscribed delivery? In this case, the Windows service will be bypassed and if you face the same issue, the ASP.NET process memory would grow.|||

Yes. The same issue occurs with requesting the report directly from the report server. In this case the memory usage of IIS (w3wp.exe) grows to approximated the same as it did with the ReportServer Service. I will continue to search for a solution and post any of my findings.

Thanks.

Call to Webservice from a Reporting Action in SSAS

Is it possible to call a webserive from a reporting action in SSAS?

What I am trying to do is create a reporting action that will schedule a report to run at certain time by calling the CreateSubscription Web service of Reporting services.

Any advice would be much appreciated. Does anyone have any suggestions or perhaps another angle that I could approach this problem?

Thanks

You can't use a report action since the report action uses URL addressibility. Instead consider a regular action that invokes a web page, e.g. ASP.NET page. The page can call down to the Report Server.

Another approach could be to use a report action which calls a dummy report that invokes some custom code. The report can forward the parameter values while the custom code can invoke the API.

|||

Thank you for your reply. I wanted to try and schedule this as a report to run off peak hours as it was a large report. But after testing the subscription based delivery method, I have encountered memory problems which lead me to believe that SSRS may not be the way to go. I am trying to generate a report that is trying to return approx. 500 Mb of data. When the report gets triggered the memory usage of ReportingServicesService.exe climbs until it reaches approximately 14 Gigs (I have a machine with 20 Gigs of memory). After the memory usage reaches 12 Gigs the report service stops servicing any new requests which makes sense since MemoryLimit is set to 60%. This is where the problem begins. It seems that after the report has finished executing it does not want to release this memory and no new requests can be serviced.

I have a few questions that maybe you could help me out with:

1. My first question is why is the report server using up so much memory? It is a simple report with one table, no special formatting, no aggregations being done by the report server.

2. Sql server will release its memory when other processes require it, should Reporting services do the same thing?

3. What are the recommended Memory settings of MemoryLimit and MaxMemoryLimit? Are they the defaults of 60 and 80?

4. I have yet to test setting the Memory Limit settings to a value greater than 100 so that the report server can use virtual memory. What are the implications of doing this? Would you recommend doing this?

My organization deals with Billions of rows of data so it is not uncommon for someone to request a hundreds of thousands of rows for further analysis. If reporting services is not the way to go then I will have to look into creating some SSIS packages or some custom .Net code to export this data.

Any advice would be much appreciated.

Thanks.

|||

1. A 500Mb report will do for a Halloween trick. It will be probably useful to look at the ExecutionLog table and see how much time was spent in data retrieval, processing, and rendering. To answer your question, I suspect that the high memory consumption is caused by loading the large dataset in memory. I assume you have applied the latest service packs. I am really curious how would the business users analyze hundreds of thousands of rows.

2. It should. The Windows service (ReportingServicesService.exe) is written in managed code. When the memory is not used, it should be reclaimed by the .NET garbage collector. You may want to report this to the Product Feedback Center. It could be related to the 64-bit version.

3. See http://msdn2.microsoft.com/en-us/library/ms159206.aspx.

4. Again, see the above link.

As a side note, you may want to look at the Analysis Services if you need to push such big datasets.

|||

Hi Teo,

1. I've checked my ExecutionLog Table. Here are the values for TimeDataRetrieval, TimeProcessing and TimeRendering (in Minutes): 19.37min, 12.33 min, 7.38 min. Byte count was 516277912 (492Mb) and Rowcount was 642703. If only 492 Mb are retrieved, I still don't understand why the memory consumption is so high (14 Gigs). This report is actually a drillthrough action that exprots the data to a CSV file. My client requires that when they observe suspicious numbers for certain time periods, stores, products etc. they want the ability to drillthrough the underlying records to do some further analysis, send the data back to the data suppliers so they can explain why the volumes are high or low. They may even want to sell the data to other organizations.

2. I will try to report this issue to the Product Feedback Center.

3 + 4. That article is good, but it makes no recommendations whether or not we should set the memory limit values greater than 100 to use virtual memory. I will run some tests to try and see the affects of changing these properties.

What do you mean by "look at the Analysis Services if you need to push such big datasets"? Are you refering to the performance? Or just another mechanism to export the data. Please elaborate. My end users require the ability to browse cubes and then drillthrough to large datasets.

Any advice would be much appreciated.

Thanks.

|||

1. I am not exluding the possibility this to be a bug. We also ran into an issue with large reports where the reports will time out. The forthcoming SP2 is expected to fix this.

2. Also, I would suggest you contact the Support Center ASAP and request a hotfix. The best thing will be if you could send them a test harness.

What I meant is that SSAS could be a better choice if the users want to aggregate large volumes of data, e.g. for historical analysis. But sounds like in your case, the end users wants to see a detail report so scratch out SSAS.

|||Also, do you have the same issue if you request the report directly from the Report Server (e.g. using the Report Manager) as opposed to subscribed delivery? In this case, the Windows service will be bypassed and if you face the same issue, the ASP.NET process memory would grow.|||

Yes. The same issue occurs with requesting the report directly from the report server. In this case the memory usage of IIS (w3wp.exe) grows to approximated the same as it did with the ReportServer Service. I will continue to search for a solution and post any of my findings.

Thanks.

Wednesday, March 7, 2012

Call Soap SqlXML soap webservice

I setup a soap webservice using sqlxml 3.0 on our IIS server, I can
consume the webservice via "dotNET" but I am having a heck of a time
trying to make a call out of a vba project. Currently I do not have
the time to develope a new interface all in dotNET, thus the my need to
try and post to the soap object from Access2003... another idea is to
shell out to the vb.net app where I have the webservice working ... :|
Dim http As Object
Set http = CreateObject("Microsoft.XMLHTTP")
http.Open "POST", "http://localhost/ws/report", False
Call http.send("<SR =TEST /> ")
Debug.Print http.responseText
Set http = Nothing
my response for this is:
xmlns:xsd='http://www.w3.org/2001/XMLSchema'
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/'
xmlns:sqltypes='http://schemas.microsoft.com/SQLServer/2001/12/SOAP/types'
xmlns:sqlmessage='http://schemas.microsoft.com/SQLServer/2001/12/SOAP/types/
SqlMessage'
xmlns:sqlresultstream='http://schemas.microsoft.com/SQLServer/2001/12/SOAP/t
ypes/SqlResultStream'>
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Client</faultcode>
<faultstring>Incorrectly formatted SOAP request</faultstring>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>SOAP is a message protocol in XML form that you can send over HTTP. Below
you tried to send an XML only over HTTP (which you can do if your server
knows what to do with it). So if you want to avoid developing a new
interface, the easiest would probably be to create the SOAP message that you
want to send in your VB code (look at the message that is sent from the
VB.Net app or the SOAP 1.0 spec for details on what the SOAP message format
needs to look like).
Best regards
Michael
<fhtapia@.gmail.com> wrote in message
news:1130949535.378275.277320@.f14g2000cwb.googlegroups.com...
>I setup a soap webservice using sqlxml 3.0 on our IIS server, I can
> consume the webservice via "dotNET" but I am having a heck of a time
> trying to make a call out of a vba project. Currently I do not have
> the time to develope a new interface all in dotNET, thus the my need to
> try and post to the soap object from Access2003... another idea is to
> shell out to the vb.net app where I have the webservice working ... :|
> Dim http As Object
> Set http = CreateObject("Microsoft.XMLHTTP")
> http.Open "POST", "http://localhost/ws/report", False
> Call http.send("<SR =TEST /> ")
> Debug.Print http.responseText
> Set http = Nothing
> my response for this is:
> xmlns:xsd='http://www.w3.org/2001/XMLSchema'
> xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
> xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/'
> xmlns:sqltypes='http://schemas.microsoft.com/SQLServer/2001/12/SOAP/types'
> xmlns:sqlmessage='http://schemas.microsoft.com/SQLServer/2001/12/SOAP/type
s/SqlMessage'
> xmlns:sqlresultstream='http://schemas.microsoft.com/SQLServer/2001/12/SOAP
/types/SqlResultStream'>
> <SOAP-ENV:Body>
> <SOAP-ENV:Fault>
> <faultcode>SOAP-ENV:Client</faultcode>
> <faultstring>Incorrectly formatted SOAP request</faultstring>
> </SOAP-ENV:Fault>
> </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>
>|||Michael,
Thanks for your help on this, so what I need is a soap envelope... I
wish I could have ran into this documentation earlier on, I also
downloaded the "soap sdk" and utilized the trace utility in order to
capture my call and get the correct soap envelop as used by dotNet here
is my variation
request = "<?xml version='1.0' encoding='UTF-8' standalone='no'?>" &
_
"<SOAP-ENV:Envelope
xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/'>" & _
" <SOAP-ENV:Body>" & _
" <SR xmlns='http://Localhost/ws/Report'>" & _
" <XmlReport>'" & strXML & "'</XmlReport>" & _
" </SR>" & _
" </SOAP-ENV:Body>" & _
"</SOAP-ENV:Envelope>"|||Glad to be of help.
Michael
"seeCoolGuy" <fhtapia@.gmail.com> wrote in message
news:1131046410.373083.163320@.g47g2000cwa.googlegroups.com...
> Michael,
> Thanks for your help on this, so what I need is a soap envelope... I
> wish I could have ran into this documentation earlier on, I also
> downloaded the "soap sdk" and utilized the trace utility in order to
> capture my call and get the correct soap envelop as used by dotNet here
> is my variation
> request = "<?xml version='1.0' encoding='UTF-8' standalone='no'?>" &
> _
> "<SOAP-ENV:Envelope
> xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/'>" & _
> " <SOAP-ENV:Body>" & _
> " <SR xmlns='http://Localhost/ws/Report'>" & _
> " <XmlReport>'" & strXML & "'</XmlReport>" & _
> " </SR>" & _
> " </SOAP-ENV:Body>" & _
> "</SOAP-ENV:Envelope>"
>

Call Soap SqlXML soap webservice

I setup a soap webservice using sqlxml 3.0 on our IIS server, I can
consume the webservice via "dotNET" but I am having a heck of a time
trying to make a call out of a vba project. Currently I do not have
the time to develope a new interface all in dotNET, thus the my need to
try and post to the soap object from Access2003... another idea is to
shell out to the vb.net app where I have the webservice working ... :|
Dim http As Object
Set http = CreateObject("Microsoft.XMLHTTP")
http.Open "POST", "http://localhost/ws/report", False
Call http.send("<SR =TEST /> ")
Debug.Print http.responseText
Set http = Nothing
my response for this is:
xmlns:xsd='http://www.w3.org/2001/XMLSchema'
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/'
xmlns:sqltypes='http://schemas.microsoft.com/SQLServer/2001/12/SOAP/types'
xmlns:sqlmessage='http://schemas.microsoft.com/SQLServer/2001/12/SOAP/types/SqlMessage'
xmlns:sqlresultstream='http://schemas.microsoft.com/SQLServer/2001/12/SOAP/types/SqlResultStream'>
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Client</faultcode>
<faultstring>Incorrectly formatted SOAP request</faultstring>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
SOAP is a message protocol in XML form that you can send over HTTP. Below
you tried to send an XML only over HTTP (which you can do if your server
knows what to do with it). So if you want to avoid developing a new
interface, the easiest would probably be to create the SOAP message that you
want to send in your VB code (look at the message that is sent from the
VB.Net app or the SOAP 1.0 spec for details on what the SOAP message format
needs to look like).
Best regards
Michael
<fhtapia@.gmail.com> wrote in message
news:1130949535.378275.277320@.f14g2000cwb.googlegr oups.com...
>I setup a soap webservice using sqlxml 3.0 on our IIS server, I can
> consume the webservice via "dotNET" but I am having a heck of a time
> trying to make a call out of a vba project. Currently I do not have
> the time to develope a new interface all in dotNET, thus the my need to
> try and post to the soap object from Access2003... another idea is to
> shell out to the vb.net app where I have the webservice working ... :|
> Dim http As Object
> Set http = CreateObject("Microsoft.XMLHTTP")
> http.Open "POST", "http://localhost/ws/report", False
> Call http.send("<SR =TEST /> ")
> Debug.Print http.responseText
> Set http = Nothing
> my response for this is:
> xmlns:xsd='http://www.w3.org/2001/XMLSchema'
> xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
> xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/'
> xmlns:sqltypes='http://schemas.microsoft.com/SQLServer/2001/12/SOAP/types'
> xmlns:sqlmessage='http://schemas.microsoft.com/SQLServer/2001/12/SOAP/types/SqlMessage'
> xmlns:sqlresultstream='http://schemas.microsoft.com/SQLServer/2001/12/SOAP/types/SqlResultStream'>
> <SOAP-ENV:Body>
> <SOAP-ENV:Fault>
> <faultcode>SOAP-ENV:Client</faultcode>
> <faultstring>Incorrectly formatted SOAP request</faultstring>
> </SOAP-ENV:Fault>
> </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>
>
|||Michael,
Thanks for your help on this, so what I need is a soap envelope... I
wish I could have ran into this documentation earlier on, I also
downloaded the "soap sdk" and utilized the trace utility in order to
capture my call and get the correct soap envelop as used by dotNet here
is my variation
request = "<?xml version='1.0' encoding='UTF-8' standalone='no'?>" &
_
"<SOAP-ENV:Envelope
xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/'>" & _
" <SOAP-ENV:Body>" & _
" <SR xmlns='http://Localhost/ws/Report'>" & _
" <XmlReport>'" & strXML & "'</XmlReport>" & _
" </SR>" & _
" </SOAP-ENV:Body>" & _
"</SOAP-ENV:Envelope>"
|||Glad to be of help.
Michael
"seeCoolGuy" <fhtapia@.gmail.com> wrote in message
news:1131046410.373083.163320@.g47g2000cwa.googlegr oups.com...
> Michael,
> Thanks for your help on this, so what I need is a soap envelope... I
> wish I could have ran into this documentation earlier on, I also
> downloaded the "soap sdk" and utilized the trace utility in order to
> capture my call and get the correct soap envelop as used by dotNet here
> is my variation
> request = "<?xml version='1.0' encoding='UTF-8' standalone='no'?>" &
> _
> "<SOAP-ENV:Envelope
> xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/'>" & _
> " <SOAP-ENV:Body>" & _
> " <SR xmlns='http://Localhost/ws/Report'>" & _
> " <XmlReport>'" & strXML & "'</XmlReport>" & _
> " </SR>" & _
> " </SOAP-ENV:Body>" & _
> "</SOAP-ENV:Envelope>"
>

Saturday, February 25, 2012

Caliing a webservice from a trigger

Please,
is there a way i can execute a webservice from within a SQL Server 2k
Trigger? Sending and receiving XML values?
Tks,
Fabiano
This is not directly supported or recommended.
You probably could write your own custom code using an extended stored proc
or using sp_OA stored procs.
Best regards
Michael
"Fabiano" <a@.a.com.br> wrote in message
news:%23CzqpXqlEHA.1244@.TK2MSFTNGP15.phx.gbl...
> Please,
> is there a way i can execute a webservice from within a SQL Server 2k
> Trigger? Sending and receiving XML values?
> Tks,
> Fabiano
>
>