[prev in list] [next in list] [prev in thread] [next in thread]
List: wsf-javascript-dev
Subject: Re: [Dev] [jaggery] Soap request
From: Nadeeshaan Gunasinghe <nadeeshaan () wso2 ! com>
Date: 2013-12-21 7:19:05
Message-ID: CAK_XbZqzShWjyus-_w3=+eNjfG4DHt4sEUYD=6HurEhYxGFbxg () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
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 <nuwand@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 <maduranga@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 : nuwand@wso2.com
> Phone : +94 777 775 729
>
> _______________________________________________
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
[Attachment #5 (text/html)]
<div dir="ltr"><a href="http://jaggeryjs.org/apidocs/ws.jag">http://jaggeryjs.org/apidocs/ws.jag</a><br><div>Refer \
this one. I tried the way which is described as there. It works.<br> </div></div><div \
class="gmail_extra"><br> <br><div class="gmail_quote">On Fri, Dec 20, 2013 at 3:02 \
PM, Nuwan Dias <span dir="ltr"><<a href="mailto:nuwand@wso2.com" \
target="_blank">nuwand@wso2.com</a>></span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"> <div dir="ltr">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).<div><br></div><div>This does not answer the question of why the Content-Type is \
changed when the message is sent out though.</div>
<div><br></div><div>Thanks,</div><div>NuwanD.</div></div><div \
class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Fri, Dec \
20, 2013 at 2:58 PM, Maduranga Siriwardena <span dir="ltr"><<a \
href="mailto:maduranga@wso2.com" target="_blank">maduranga@wso2.com</a>></span> \
wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Hi all,<div>I'm \
trying to create a jaggery application that calls a Axis2 soap web service. My post \
request is like bellow.</div>
<div><br></div><div><div>var url = "<a \
href="http://localhost:8080/axis2/services/OrderProcessor/" \
target="_blank">http://localhost:8080/axis2/services/OrderProcessor/</a>";</div> \
<div>var type = "xml";</div><div><br></div><div>var result = \
post(url,"Order", {</div><div><span \
style="white-space:pre-wrap"> </span>"Content-Type": \
"application/xml",</div><div> "User-Agent": \
"Mozilla/5.0",</div><div> "Country" : \
"LK",</div><div><span \
style="white-space:pre-wrap"> </span>"SOAPAction": \
"urn:createOrder"</div>
<div>}, type);</div></div><div><br></div><div>But in the request Content-type is \
always set to the default value. How can I change the content type to \
xml?</div></div> <br></div></div>_______________________________________________<br>
Dev mailing list<br>
<a href="mailto:Dev@wso2.org" target="_blank">Dev@wso2.org</a><br>
<a href="http://wso2.org/cgi-bin/mailman/listinfo/dev" \
target="_blank">http://wso2.org/cgi-bin/mailman/listinfo/dev</a><br> \
<br></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br \
clear="all"><div><br></div>-- <br><div dir="ltr">Nuwan \
Dias<div><br></div><div><div>Senior Software Engineer - WSO2, Inc. <a \
href="http://wso2.com" target="_blank">http://wso2.com</a></div>
<div>email : <a href="mailto:nuwand@wso2.com" \
target="_blank">nuwand@wso2.com</a></div><div>Phone : <a \
href="tel:%2B94%20777%20775%20729" value="+94777775729" target="_blank">+94 777 775 \
729</a></div></div></div> </font></span></div>
<br>_______________________________________________<br>
Dev mailing list<br>
<a href="mailto:Dev@wso2.org">Dev@wso2.org</a><br>
<a href="http://wso2.org/cgi-bin/mailman/listinfo/dev" \
target="_blank">http://wso2.org/cgi-bin/mailman/listinfo/dev</a><br> \
<br></blockquote></div><br></div>
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic