Jochen0911
New Member
Hello,
i want to send a Dataset to an webservice with
{y/gateway/incl/yg_ano01.pds &ippNoReferenceOnlySwitch = yes}
{call dsGetAngebot fillDataset}.
lvh_ds = dataset dsGetAngebot:handle.
lvh_ds:write-xml ('file':U,'C:/temp/dsGetAngebot.xml':U,true).
lvh_ds:write-xml ('longchar':U, /* Zieltyp */
lvcl_sendit_in, /* Ziel */
false, /* formatiert (sonst ohne Zeilenvorschub) */
'UTF-8':U, /* Codepage */
'':U, /* Schema-Location */
false, /* write-xmlschema */
false, /* min-xmlschema */
false, /* write-before-image */
false). /* omit-initial-values */
/* Fuer SOAP fertig machen */
assign
lvcl_sendit_in = replace (lvcl_sendit_in,'dsGetAngebot xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">':U,'soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">':U)
lvcl_sendit_in = replace (lvcl_sendit_in,'/dsGetAngebot':U,'/soap:Envelope':U)
lvcl_sendit_in = replace (lvcl_sendit_in,'Body':U,'soap:Body':U)
lvcl_sendit_in = replace (lvcl_sendit_in,'</>':U,' ':U).
COPY-LOB lvcl_sendit_in TO FILE 'C:/temp/dsGetAngebot_ls.xml':U.
lvc_ws_connect = 'http://xxx:8901/SpecificationAutomation?singleWsdl'.
create server lvh_webserver.
lvh_webserver:connect('-WSDL ':U + lvc_ws_connect).
run IHttpConnectorService set lvh_sendit_ws on lvh_webserver no-error.
run value (lvc_datasetname) in lvh_sendit_ws (input lvcl_sendit_in,output lvcl_sendit_out) no-error.
And hier comes the error. See attachement. When i use the saved file from copy-lob and send it with SOAPUI in the environment, i´ll get a response.
The XML content:
<?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body> <EditSpecification><projectName>order</projectName><transitionName>SendOrder</transitionName><specificationName>Order 18494</specificationName><specificationId>18494</specificationId><operationName> </operationName><values> </values></EditSpecification></soap:Body></soap:Envelope>
Response in SOAPUI.
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<EditSpecificationResponse>
<EditSpecificationResult xmlns:a="http://schemas.datacontract.org/2004/07/DriveWorks.Applications.Autopilot.Connectors.Http" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<a:SpecificationName i:nil="true"/>
<a:Status>FailedInvalidTransitionNameOrTransitionDisabledByConditions</a:Status>
</EditSpecificationResult>
</EditSpecificationResponse>
</s:Body>
</s:Envelope>
It´s very strange. I cannot find the difference between SOAPUI and Progress, what´s going wrong. Any hints? I would expect to get the response into lvcl_sendit_out.
Jochen
i want to send a Dataset to an webservice with
{y/gateway/incl/yg_ano01.pds &ippNoReferenceOnlySwitch = yes}
{call dsGetAngebot fillDataset}.
lvh_ds = dataset dsGetAngebot:handle.
lvh_ds:write-xml ('file':U,'C:/temp/dsGetAngebot.xml':U,true).
lvh_ds:write-xml ('longchar':U, /* Zieltyp */
lvcl_sendit_in, /* Ziel */
false, /* formatiert (sonst ohne Zeilenvorschub) */
'UTF-8':U, /* Codepage */
'':U, /* Schema-Location */
false, /* write-xmlschema */
false, /* min-xmlschema */
false, /* write-before-image */
false). /* omit-initial-values */
/* Fuer SOAP fertig machen */
assign
lvcl_sendit_in = replace (lvcl_sendit_in,'dsGetAngebot xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">':U,'soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">':U)
lvcl_sendit_in = replace (lvcl_sendit_in,'/dsGetAngebot':U,'/soap:Envelope':U)
lvcl_sendit_in = replace (lvcl_sendit_in,'Body':U,'soap:Body':U)
lvcl_sendit_in = replace (lvcl_sendit_in,'</>':U,' ':U).
COPY-LOB lvcl_sendit_in TO FILE 'C:/temp/dsGetAngebot_ls.xml':U.
lvc_ws_connect = 'http://xxx:8901/SpecificationAutomation?singleWsdl'.
create server lvh_webserver.
lvh_webserver:connect('-WSDL ':U + lvc_ws_connect).
run IHttpConnectorService set lvh_sendit_ws on lvh_webserver no-error.
run value (lvc_datasetname) in lvh_sendit_ws (input lvcl_sendit_in,output lvcl_sendit_out) no-error.
And hier comes the error. See attachement. When i use the saved file from copy-lob and send it with SOAPUI in the environment, i´ll get a response.
The XML content:
<?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body> <EditSpecification><projectName>order</projectName><transitionName>SendOrder</transitionName><specificationName>Order 18494</specificationName><specificationId>18494</specificationId><operationName> </operationName><values> </values></EditSpecification></soap:Body></soap:Envelope>
Response in SOAPUI.
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<EditSpecificationResponse>
<EditSpecificationResult xmlns:a="http://schemas.datacontract.org/2004/07/DriveWorks.Applications.Autopilot.Connectors.Http" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<a:SpecificationName i:nil="true"/>
<a:Status>FailedInvalidTransitionNameOrTransitionDisabledByConditions</a:Status>
</EditSpecificationResult>
</EditSpecificationResponse>
</s:Body>
</s:Envelope>
It´s very strange. I cannot find the difference between SOAPUI and Progress, what´s going wrong. Any hints? I would expect to get the response into lvcl_sendit_out.
Jochen