cancel
Showing results for 
Search instead for 
Did you mean: 

SOAP request with complex parameters

07-24-2014 11:49 AM
3246 views 0 comments
0 Likes
SAP Managed Tags
Subscribe

There is SOAP-service with the following function:

&lt?xml version="1.0" encoding="utf-8"?>
&ltsoap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
&ltsoap12:Body>
&ltTestSecod xmlns="http://10.0.0.254:8088/InvoiceAndPaymentsRegisterService/InternalIandPRegisterService.asmx">
&ltobTest>
&ltTextData>string&lt/TextData>
&ltIntData>int&lt/IntData>
&ltDateData>dateTime&lt/DateData>
&lt/obTest>
&lt/TestSecod>
&lt/soap12:Body>
&lt/soap12:Envelope>
The WSDLC.exe-compiler (ASA12) generates the following code:
alter function "InternalIandPRegisterService.TestSecod"( / "obTest" _254._0._0._10.InvoiceAndPaymentsRegisterService.InternalIandPRegisterService_asmx.ObjToTest /)
 returns xml
 url 'http://10.0.0.254:8088/InvoiceAndPaymentsRegisterService/InternalIandPRegisterService.asmx'
 type 'SOAP:DOC'
 set 'SOAP(OP=TestSecod)'
 namespace 'http://10.0.0.254:8088/InvoiceAndPaymentsRegisterService/InternalIandPRegisterService.asmx';

Q1: Is it right to change the commented parameter as follows:
alter function "InternalIandPRegisterService.TestSecod"( "obTest" xml)
?
Q2: What should be a request not to receive 400 and 500 error codes? For example: if
SELECT "InternalIandPRegisterService.TestSecod"('&ltobTest>&ltTextData>my string&lt/TextData>&ltIntData>314&lt/IntData>&ltDateData>2014-07-24&lt/DateData>&lt/obTest>');
then
HTTP request failed. Status code '500 Internal Server Error'
SQLCODE=-983, ODBC 3 State="HY000"

P.S. As a 'Left angle brackets', I used &lt. Preview - OK, but now is visible only only &lt :=(

0 Likes

Accepted Solutions (0)

Answers (0)