# ConnectShip

**URL:** <https://forum.inductiveautomation.com/t/connectship/10585>\
**Category:** Ignition\
**Created:** [October 6, 2015, 5:57pm UTC](https://forum.inductiveautomation.com/t/connectship/10585 "2015-10-06T17:57:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Polynomial](https://avatars.discourse-cdn.com/v4/letter/p/848f3c/32.png) [@Polynomial](https://forum.inductiveautomation.com/u/Polynomial)\
**Post date:** [October 6, 2015, 5:57pm UTC](https://forum.inductiveautomation.com/t/connectship/10585/1 "2015-10-06T17:57:24Z")

</div>

Has anyone designed a project to interface with UPS ConnectShip before? Connectship has the option of using an XML processor that can be used to process shipment requests.

I’ve been trying to send some requests using system.net.httpPost but haven’t had any success. Should I be using the suds library mentioned in the Ignition docs?

On Ignition 7.7.5.

---

<div class="post-metadata">

**Author:** ![acooper](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/acooper/32/4221_2.png) [@acooper](https://forum.inductiveautomation.com/u/acooper)\
**Post date:** [October 8, 2015, 11:20pm UTC](https://forum.inductiveautomation.com/t/connectship/10585/2 "2015-10-08T23:20:12Z")

</div>

I’m not aware of anyone using Ignition to link up with UPS ConnectShip before, but that certainly doesn’t mean it’s impossible. I’m unable to find specifics about how the service functions–could you fill me in on the basics? Does it respond to a GET request with JSON or XML? If so, httpGet should work, provided you know how to parse out the information. If you can tell me what ConnectShip expects, you should be able to find something that will work in Ignition. SUDS may work for you as well.

---

<div class="post-metadata">

**Author:** ![Polynomial](https://avatars.discourse-cdn.com/v4/letter/p/848f3c/32.png) [@Polynomial](https://forum.inductiveautomation.com/u/Polynomial)\
**Post date:** [October 12, 2015, 3:44pm UTC](https://forum.inductiveautomation.com/t/connectship/10585/3 "2015-10-12T15:44:27Z")

</div>

We were able to do it using Progistics AMP and suds. However, initializing the Client is really slow. Is there a way to initialize it only once and then use it across multiple scripts?

---

<div class="post-metadata">

**Author:** ![acooper](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/acooper/32/4221_2.png) [@acooper](https://forum.inductiveautomation.com/u/acooper)\
**Post date:** [October 13, 2015, 5:09pm UTC](https://forum.inductiveautomation.com/t/connectship/10585/4 "2015-10-13T17:09:53Z")

</div>

Are you talking about initializing the ConnectShip client or the Ignition client? Again, I am not familiar with ConnectShip, so I am not sure if you are able to initialize only once. What is the process for initializing ConnectShip? With more details I may be able to help you.

Thanks!

---

<div class="post-metadata">

**Author:** ![acooper](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/acooper/32/4221_2.png) [@acooper](https://forum.inductiveautomation.com/u/acooper)\
**Post date:** [October 13, 2015, 6:08pm UTC](https://forum.inductiveautomation.com/t/connectship/10585/5 "2015-10-13T18:08:29Z")

</div>

Apologies I should have figured you were talking about initializing SUDS. I ran a couple tests on my end, and the initialization of SUDS only took a long time the first time I imported it. After that, the client object creation ran instantly. Here’s what I did to test:

from java.util import Calendar  
print Calendar.getInstance().getTime()  
from suds.client import Client  
print Calendar.getInstance().getTime()  
client = Client(“[http://www.w3schools.com/webservices/tempconvert.asmx?WSDL](http://www.w3schools.com/webservices/tempconvert.asmx?WSDL)”)  
print client  
print Calendar.getInstance().getTime()  
print client.service.FahrenheitToCelsius(“85”)  
print Calendar.getInstance().getTime()

The initial import took about 5-10 seconds, but after that it was instantaneous upon consecutive button presses. The only thing that took a while every time was the client service call. That was consistently taking 5 seconds to run. Are you sure the initialization of SUDS is really slow every time? Could it be that your actual calls are taking a while?

---

<div class="post-metadata">

**Author:** ![Polynomial](https://avatars.discourse-cdn.com/v4/letter/p/848f3c/32.png) [@Polynomial](https://forum.inductiveautomation.com/u/Polynomial)\
**Post date:** [October 16, 2015, 6:42pm UTC](https://forum.inductiveautomation.com/t/connectship/10585/6 "2015-10-16T18:42:04Z")

</div>

We tried initializing it as a global which seems to work well enough.
