How to use one proxy in javascript AJAX using SOAP the same as WCF Test Client use How to use one proxy in javascript AJAX using SOAP the same as WCF Test Client use ajax ajax

How to use one proxy in javascript AJAX using SOAP the same as WCF Test Client use


I'll start off by saying I do not know the specific answer to this, but my approach would be to sniff the traffic from your WFC Test Client to see if it is adding any parameters to the call which you could add to your request header on your AJAX call.

Fiddler might do the job though I'm not sure it will catch all http traffic - mostly it's geared to browsers. There are other tools with more or less capability and ease of use, like wire shark, ether, and so on.

I would guess there is some other request parameter outside the SOAP envelope body being transmitted from the test client that you should be able to see. It's the only way I can imagine the test client would be able to communicate this without modifying your SOAP message.

If you can find the name and value, you can add it to your data: parameter as another name-value JSON entity.


liorafar: I assume you are running Javascript from a browser as it host. If so it is not possible unless you allow the javascript change some behavoiur of your host which is with clients aproval for every excecution that the browser identifies as security risk.Consider that: 1) Javascript doesnt take control over the connection configuration, it only use the envirionment provided by the host where it is running, in this case the browser but can be on the server side too. 2) In case you say "ok, lets force this", the only way it come to my mind is to make an instance of your host or any object of the client host and force to change the connection... and by that moment the browser will detect your javascript as a security risk and cerntanly you should create a script for every browser in the market, because every one has it way to handle this... the only good news on this is that with IE you can change the configuration for Chrome too!!

What I will do to solve this issue is to ask to the IT people to config the browsers with some exceptino rule over the proxy in the browsers (if you are into a company).

I hope this can help in a way or another!!

Gabriel


You can put your soap request in Fiddler and then execute you will get the response. For that response type. When you get response view it in mode you want.