Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

soap request server Error !!! #18

Closed
springlin2012 opened this issue Sep 15, 2013 · 1 comment
Closed

soap request server Error !!! #18

springlin2012 opened this issue Sep 15, 2013 · 1 comment

Comments

@springlin2012
Copy link

$.soap({
    url: "http://127.0.0.1:3000/fake-soap-response.xml",
    /*method: "HelloWorld",*/
    params: "xml",
    request: function(SOAPRequest) {
        console.log("req: "+ SOAPRequest);
        $('#request').text(SOAPRequest);
    },
    success: function(SOAPResponse) {
        console.log(" success: "+ SOAPResponse);
        $('#feedbackHeader').html('Success!');
        $('#feedback').text(SOAPResponse.toString());
    },
    error: function(SOAPResponse) {
        $('#feedbackHeader').html('Error!');
        $('#feedback').text(SOAPResponse.toString());
    }
});

Error: Unexpected Content: null
throw new Error("Unexpected Content: " + $.type(this.content));

@doedje
Copy link
Owner

doedje commented Sep 16, 2013

Okay, that was a rather blunt way to get my message thru.... To prove I am not that bad I'll tell you that based on the limited info you gave me, I suspect you have a problem with 'same origin policy'. You will know this is the case when you are serving the page with the javascript from another server than http://127.0.0.1:3000/

Check the section about Same origin policy in the README.md when you want some more info about it...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants