ここでRPGからWCFサービスを利用することについて質問し、次の応答を受け取りました。ScottKlementにプレゼンテーションと例があります:http ://www.scottklement.com/presentations/#HTTPAPI
私はSoapUIを使用してサービスをテストし、HTTAPIで使用するsoapステートメントを取得しました。このサービスはSoapUIでデータを返しますが、RPGプログラムでの使用に失敗しました。SoapUIは次を返しますが、SoapUI内でのみ機能するようです。これには、私のサービスへのパスも含まれていません。
http://ServerName/COE/CustByNameList.svc
に移動するhttp://ServerName/COE/CustByNameList.svc?wdsl,
と、wsdlが取得されます。
SoapUIで返されるステートメント:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/">
<soapenv:Header/>
<soapenv:Body>
<tem:GetCustomerData>
<!--Optional:-->
<tem:CustomerNumber>1688</tem:CustomerNumber>
</tem:GetCustomerData>
</soapenv:Body>
</soapenv:Envelope>
結果は次のようになります。
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><GetCustomerDataResponse xmlns="http://tempuri.org/"><GetCustomerDataResult xmlns:a="http://schemas.datacontract.org/2004/07/" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><a:List xmlns:b="http://schemas.datacontract.org/2004/07/WebOrderEntry.Lists"><b:PartialCSTMS><b:ADR19A>3910 LAKEFIELD DR </b:ADR19A><b:ADR29A>JOHNS CREEK FACILITY </b:ADR29A><b:CITY9A>SUWANEE </b:CITY9A><b:CST_x0023_9A>1688</b:CST_x0023_9A><b:NAME9A>JOHNSON CONTROLS </b:NAME9A><b:PHON9A>770-495-9950 </b:PHON9A><b:STAT9A>GA</b:STAT9A><b:ZIPC9A>30024 </b:ZIPC9A></b:PartialCSTMS></a:List></GetCustomerDataResult></GetCustomerDataResponse></s:Body></s:Envelope>
500の内部サーバーエラーが発生し続けます。私が見た例に基づいてSOAPステートメントのさまざまなバリエーションを試しましたが、それらは2008年にさかのぼります。RPGからWCFサービスを呼び出すことに成功した人はいますか?