# How to use httpGet & httpPost for SOAP Endpoint

**URL:** <https://forum.inductiveautomation.com/t/how-to-use-httpget-httppost-for-soap-endpoint/37421>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [August 5, 2020, 8:13pm UTC](https://forum.inductiveautomation.com/t/how-to-use-httpget-httppost-for-soap-endpoint/37421 "2020-08-05T20:13:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![harigobu.gb](https://avatars.discourse-cdn.com/v4/letter/h/b77776/32.png) [@harigobu.gb](https://forum.inductiveautomation.com/u/harigobu.gb)\
**Post date:** [August 5, 2020, 8:13pm UTC](https://forum.inductiveautomation.com/t/how-to-use-httpget-httppost-for-soap-endpoint/37421/1 "2020-08-05T20:13:50Z")

</div>

Hi,

I have created SOAP endpoint using Sepasoft Web services module. How to invoke the soap endpoint url using **system.net.httpGet** or **system.net.httpPost**. I tried the soap endpoint url using httpGet in script console and in browser I can see some HTML response but it is not the expected response as given be system.ws.runWebService.

If this is possible please let me know how to do it.  
Existing

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/5/053923805dc5f4c94ff088dcce163ebec0e99bfe.png)

Expected using httpGet / httpPost

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/4/049cbe49431e4ee9865921d32cf981378c865e3e.png)  
Thanks.

---

<div class="post-metadata">

**Author:** ![mgrishaber](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@mgrishaber](https://forum.inductiveautomation.com/u/mgrishaber)\
**Post date:** [August 5, 2020, 10:13pm UTC](https://forum.inductiveautomation.com/t/how-to-use-httpget-httppost-for-soap-endpoint/37421/2 "2020-08-05T22:13:54Z")

</div>

Still sort of new with SOAP but in your httpGet shouldn’t your URL be [http://localhost:8088/system/ws/soap/GET?op=GET4mDB](http://localhost:8088/system/ws/soap/GET?op=GET4mDB)

It looks like you’re calling out the endpoint but not the operation.

---

<div class="post-metadata">

**Author:** ![harigobu.gb](https://avatars.discourse-cdn.com/v4/letter/h/b77776/32.png) [@harigobu.gb](https://forum.inductiveautomation.com/u/harigobu.gb)\
**Post date:** [August 6, 2020, 4:06am UTC](https://forum.inductiveautomation.com/t/how-to-use-httpget-httppost-for-soap-endpoint/37421/3 "2020-08-06T04:06:37Z")

</div>

Thank you @mgrishaber. I tried the enclosed url (“[http://localhost:8088/system/ws/soap/GET?op=GET4mDB](http://localhost:8088/system/ws/soap/GET?op=GET4mDB)”) Still I am getting the same HTML output. Please let me know am I missing some thing. Thanks.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/a/9a44ec51e1203b94eaf5452ccc795b93d0c5aadb.png)

---

<div class="post-metadata">

**Author:** ![mgrishaber](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@mgrishaber](https://forum.inductiveautomation.com/u/mgrishaber)\
**Post date:** [August 6, 2020, 4:49pm UTC](https://forum.inductiveautomation.com/t/how-to-use-httpget-httppost-for-soap-endpoint/37421/4 "2020-08-06T16:49:46Z")

</div>

So first try doing that with system.net.httpPost, my setup is looking like it is expected only POST requests and not GET. If you put in your URL in a web browser it should give you an example request and response for the operation that you can use to create the header and message.

Either way though you will probably have to parse a HTML and XML message to get your data in the format you want it to be in.

---

<div class="post-metadata">

**Author:** ![zacht](https://avatars.discourse-cdn.com/v4/letter/z/ea5d25/32.png) [@zacht](https://forum.inductiveautomation.com/u/zacht)\
**Post date:** [August 6, 2020, 6:02pm UTC](https://forum.inductiveautomation.com/t/how-to-use-httpget-httppost-for-soap-endpoint/37421/5 "2020-08-06T18:02:02Z")

</div>

If you’re in 8.0.6 I think [system.net.httpClient](https://docs.inductiveautomation.com/display/DOC80/system.net.httpClient) is recommended. You might look into that instead of httpGet.
