Facing issue of WS_E_INVALID_FORMAT Creating CEP service response for xml - active-directory

Create xml soap service using the MS-XCEP protocol return the xml response but when i configure it facing the issue of the WS_E_INVALID_FORMAT here is the xml response.
Please help me...if anyone having the solution..
I try the using to validate xml response and i found no issue

Related

How to get Json response in Array using postman tool ,is that possible?, if yes, please solution

when I hit the API and after this, I got the response in JSON format while using the Postman tool,
I want all of that response come in array
is that possible?
if, yes, please tag the solution

Working with soap and xml in Extjs

I need to hit soap webservice, with soap xml request and headers, and get the response in xml in ExtJS.
Kindly share any easy working examples you have
The sencha docs on ajax request is probably your best starting point.
You can create an ajax request and set whatever headers you need.

Sending Image/File/Audio Files to Browser via websockets/http using mongoose

I am using Mongoose library to have a localhost server run in my system.
Now, through HTTP Connection OR Websocket Connection, I want to send files/documents/images/small audio files to the client who is making request to the local host.
Until now i was sending a simple json message via websockets and xml data via http connection to client (Browser) by using these Mongoose APIs
mg_send_data()
mg_websocket_write()
Since Mongoose is being used the whole implementation is in C
Kindly let me know if I can refer to any of the example code if there are any, OR any API documentation of Mongoose which would help me to achieve the above.
Looking forward for valuable responses.
From the github repository you will find :
the API documentation
severals samples that show how to implement websocket and sending MJPEG

Force.com callout: Is there a way to get the full response from the target server

When calling a web service from Force.com, I am getting:
System.CalloutException: Web service callout failed: Unexpected
element. Parser was expecting element
'http://schemas.xmlsoap.org/soap/envelope/:Envelope' but found ':HTML'
The network guys at the other end has asked to see the full response that Salesforce is getting from their server.
Is there a way to achieve that? I have tried running with debug level 'Finest' from execute anonymous, but that yields the same little message with no further detail.
The message you are getting is because an error is generated as Saleforce is trying to parse the response is and it isn't logged unfortunately.
The parsing error is happening because instead of a SOAP message response you are getting an HTML page. This usually happens when you are accessing a service that is protected behind a firewall. Which means you may be able to see the service when browsing on your computer but remember that Salesforce is outside of your firewall and thus any communication by Salesforce to your service will be blocked.
Couple of ways to address this but this wiki topic from Salesforce best covers the options:
http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_om_outboundmessaging_security.htm
The above is specific to outbound messaging but essentially the technology issues are the same.
Don't forget that Apex includes an HttpRequest Class that works as a lower layer than the SOAP APIs. You should be able to write up a test method that sends a hard-coded XML request to the server and dumps the HttpResponse so you can see it.
Adding my own best answer, based on some internet research:
You can use an external tool like Runscope as a webservice proxy to automatically forward requests and pass through responses and view the XML SOAP messages. This is not a native solution on SFDC but it does do the job.
https://www.runscope.com/
The issue is that Force.com is trying to parse a SOAP response that's actually just HTML. This happens sometimes when an error occurred server-side and the response is meant for a browser to display, rather than sending back an exception report via a properly formatted SOAP response.
If they can't figure out why they are not sending back a consumable SOAP response, then you can try using other tools (outside of Force.com) to make the same webservice call from your browser and then see what the HTML actually says on return.

how to build a SOAP request in libcurl using C

i am new to libcurl and i want to create a SOAP request and send to web service. Can anyone send me some example or tutorial to read.
thanks in advance
See here, scroll down to the SOAP example by vivtek.

Resources