Noob using WSRequest.js

ericp56's picture
Hello, I'm calling a webservice following the samples provided. My test service has a namespace defined. When I call the service, I receive an error something like this: Unexpected element (uri"", local:"Echo"). Expected elements are <{http://tempuri.org}Echo>, <{http://tempuri.org}EchoResponse> Is there a way to get the service's target namespace included in the request? Thanks, Eric
keith's picture

You could simply add the

You could simply add the namespace to the payload when sending the request. For e.g your payload could look like var payload = your message Thanks, Keith. Blog : http://www.keith-chapman.org/
ericp56's picture

OK, that worked. I

OK, that worked. I originally tried something like hi and then hi without any luck. I just tried hi and it worked. Thanks!
keith's picture

You could also have a look

You could also have a look at [1] which explains how Web Services can be called from a Mashup. Thanks, Keith. [1] http://wso2.org/library/tutorials/invoking-web-services-mashup
library project main code
Learn Cloud
Learn
Cloud

The WSO2 Application Server is a reliable application server that can host your enterprise web applications. The WSO2 Application Server as a Service is offered in StratosLive, the WSO2 Platform as a Service. This article explains how a simple web application can be developed and deployed from Carbon Studio to the WSO2 Application Server...

Latest Webinar
Different groups within an organization need to monitor different Key Performance Indicators (KPIs) - An operations team will be interested in the response times of business services and loads of each service,..
Thursday, February 9th 2012, 09.00 AM (PST)

Thursday, February 9th 2012, 10.00 AM (GMT)