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 <[email protected]>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 > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Nuwan Dias Senior Software Engineer - WSO2, Inc. http://wso2.com email : [email protected] Phone : +94 777 775 729
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
