| Quantumetrics 2005-03-02, 10:48 am |
| I have created a BTS2K4 orchestration and deployed it as a web service and the deployment went off without a hitch.
However, like everything else done as a BTS orch, web services apparently work differently. The goal is simple: the orchestration simply receives an integer (a supply order number) and writes it to a local file. That's all.
The SOAP Request/Response looks like this:
POST /SupplyOrderWS_Proxy/ SupplyOrderWS_AcceptSupplyOrder_portSupp
lyOrderReceive.asmx HTTP/1.1
Host: localhost
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://HCHBSupplyOrder.org/ SupplyOrderWS_AcceptSupplyOrder_portSupp
lyOrderReceive/TransmitSupplyOrder"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<TransmitSupplyOrder xmlns="http://HCHBSupplyOrder.org/">
<TransmitSupplyOrder xmlns="http://SupplyOrderWS.SupplyOrderReq">
<SupplyOrderID xmlns="">int</SupplyOrderID>
</TransmitSupplyOrder>
</TransmitSupplyOrder>
</soap:Body>
</soap:Envelope>
HTTP/1.1 202 Accepted
... but when I do the web reference in an app to call the web service, it blows up over a type complaint. Why?
Has anyone had success with deploying BTS orchs as web services? What must be done to call the service and submit that integer successfully? |