on 04-08-2013 5:06 PM
Hi,
I am simply trying to call a CAF service that adds 2 numbers together and returns the result. I'm using CE7.3 and deployed my service to the application server. I used wsnavigator to verify my service worked OK which it did.I used the XMLContent tab to get the structure of the SOAP message which was:
<?xml version="1.0" encoding="utf-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Body>
<yq1:addNumbers xmlns:yq1="http://www.sap.com/caf/com.atos/addnumbers/modeled/AjaxTest">
<AddNumbersRequestMessage>
<number1>1</number1>
<number2>2</number2>
</AddNumbersRequestMessage>
</yq1:addNumbers>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Now I created a web project and included the JQuery libraries in order to call a webservice. The code is:
$("#output").click(function () {
$.support.cos = true;
$.ajax({
url: addNumberURL,
type: "POST",
dataType: "xml",
data: addNumberSOAPEnvelope,
complete: endAddNumber,
contentType: "text/xml; charset=\"utf-8\"",
error: function (xhr, ajaxOptions, thrownError) {
alert(xhr.status);
alert(xhr.responseText);
}
})
.fail(function() { alert("error"); });
});
function endAddNumber(xmlHttpRequest, status){
alert("Success: " + xmlHttpRequest.responseXML);
}
The error that comes back is:
[EXCEPTION]
com.sap.engine.interfaces.webservices.runtime.RuntimeProcessException: com.sap.engine.services.webservices.espbase.client.bindings.exceptions.TransportBindingException: Connection IO Exception. Check nested exception for details. (Parameter set failure. The runtime was not able to set some parameter value. See nested exception for details.).
at com.sap.engine.services.webservices.espbase.server.additions.StreamEngine.deserializeJEE(StreamEngine.java:386)
...;......
parameter value. See nested exception for details.).
at com.sap.engine.services.webservices.espbase.client.bindings.impl.JAXWSUtil.deserializeInboundJAXB(JAXWSUtil.java:769)
at com.sap.engine.services.webservices.espbase.server.additions.StreamEngine.deserializeJEE(StreamEngine.java:384)
... 47 more
Caused by: com.sap.engine.services.webservices.espbase.client.bindings.exceptions.TransportBindingException: Parameter set failure. The runtime was not able to set some parameter value. See nested exception for details.
at com.sap.engine.services.webservices.espbase.client.bindings.impl.JAXWSUtil.deserializeParameterJAXB(JAXWSUtil.java:232)
at com.sap.engine.services.webservices.espbase.client.bindings.impl.JAXWSUtil.deserializeInboundJAXB(JAXWSUtil.java:696)
Can anyone shed any light on this?
Cheers,
Russ.
Solved!
Missing '>' in my SOAP string.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.