web services - The HTTP request did not contain a valid SOAPAction header -
i invoking opportunity service , ending following error. soap response:
<?xml version="1.0" encoding="utf-8"?><soap:envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:body><soap:fault><faultcode>soap:client</faultcode><faultstring>client</faultstring><detail><errorcode>sbl-odu-01007</errorcode><errormessage>the http request did not contain valid soapaction header
.
value of header was: document/urn:crmondemand/ws/ecbs/opportunity/10/2004:opportunityquerypage</errormessage></detail></soap:fault></soap:body></soap:envelope>
i using apache http client invoke service.
soap
request msg:
<?xml version=\"1.0\" encoding=\"utf-8\"?><soapenv:envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:ns=\"urn:crmondemand/ws/ecbs/opportunity/10/2004\" xmlns:quer=\"urn:/crmondemand/xml/opportunity/query\" xmlns:xsi=\"http://www.w3.org/2001/xmlschema-instance\" xmlns:wsse=\"http://schemas.xmlsoap.org/ws/2002/07/secext\" xmlns:xsd=\"http://www.w3.org/2001/xmlschema\"> <soapenv:header><wsse:security><wsse:usernametoken><wsse:username>xxxxxx</wsse:username><wsse:password type=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#passwordtext\">xxxxxxx</wsse:password></wsse:usernametoken></wsse:security></soapenv:header><soapenv:body><ns:opportunityquerypage_input><quer:listofopportunity pagesize=\"100\" startrownum=\"1\" recordcountneeded=\"5\"><quer:opportunity searchspec=\"[owner] '*'\"><quer:description sortorder=\"asce\"></quer:description><quer:accountname sortorder=\"asce\"></quer:accountname><quer:cactual_booking_valuetcv_mn></quer:cactual_booking_valuetcv_mn></quer:opportunity></quer:listofopportunity></ns:opportunityquerypage_input></soapenv:body></soapenv:envelope>
my invocation url:
https://secure-ausomxapa.crmondemand.com/services/integration
i not able find error. kindly fix issue.
thanks in advance.
here example works activities:
soapaction: '"document/urn:crmondemand/ws/ecbs/activity/10/2004:activityquerypage"', data: '<?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><activityquerypage_input xmlns="urn:crmondemand/ws/ecbs/activity/10/2004"><listofactivity pagesize="20" xmlns="urn:/crmondemand/xml/activity/query"><activity searchspec= "[id] = \''+mytextbox.val()+'\'"><id></id><subject></subject><type></type><priority></priority><description></description><commentsaction></commentsaction><ownerfullname></ownerfullname><delegatedby></delegatedby></activity></listofactivity></activityquerypage_input></soap:body></soap:envelope>', callback: function (data) {}
Comments
Post a Comment