http://jaggeryjs.org/apidocs/ws.jag Refer this one. I tried the way which is described as there. It works.
On Fri, Dec 20, 2013 at 3:02 PM, Nuwan Dias <nuw...@wso2.com> wrote: > If you are calling a SOAP service the Content-Type should be either > text/xml (soap 1.1) or application/soap+xml (soap 1.2). > > This does not answer the question of why the Content-Type is changed when > the message is sent out though. > > Thanks, > NuwanD. > > > On Fri, Dec 20, 2013 at 2:58 PM, Maduranga Siriwardena <madura...@wso2.com > > wrote: > >> Hi all, >> I'm trying to create a jaggery application that calls a Axis2 soap web >> service. My post request is like bellow. >> >> var url = "http://localhost:8080/axis2/services/OrderProcessor/"; >> var type = "xml"; >> >> var result = post(url,"Order", { >> "Content-Type": "application/xml", >> "User-Agent": "Mozilla/5.0", >> "Country" : "LK", >> "SOAPAction": "urn:createOrder" >> }, type); >> >> But in the request Content-type is always set to the default value. How >> can I change the content type to xml? >> >> _______________________________________________ >> Dev mailing list >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > Nuwan Dias > > Senior Software Engineer - WSO2, Inc. http://wso2.com > email : nuw...@wso2.com > Phone : +94 777 775 729 > > _______________________________________________ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > >
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev