[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wsf-c-dev
Subject:    Re: [Dev] Setting soap format to address endpoint in API Manager 2.1.0
From:       Lakmali Baminiwatta <lakmali () wso2 ! com>
Date:       2017-09-25 6:16:57
Message-ID: CAM+a25CP99fEbuKm9ituCsfjjUeP6ROCP14z6SHQxC+o__nZoQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On 25 September 2017 at 11:27, Shenavi de Mel <shenavi@wso2.com> wrote:

> Hi APIM Team,
>
> In APIM 2.0.0 there was an option where we were able to set the SOAP
> format to the address endpoint from the advanced endpoint configuration.
> However in APIM 2.1.0 I am unable to find the configuration.
>
> Is there anyway to configure that from the UI instead of having to
> manually add it to the API synapse file? Or add a property to achieve it
> through a custom sequence? I was not able to find a way to do this. Please
> point me in the path this could be achieved.
>

If you set the correct messageType property via a custom inSequence, it
should also do the same thing. If the SOAP format is 1.1, set it as
text/xml and if it is 1.2, set as application/soap+xml. Also for SOAP 1.1,
you have to send the SOAPAction header as well.

Thanks,
Lakmali

>
> Is there a specific reason that option was removed?
>
> I am trying to expose a SOAP based API as a REST API where the soap body
> will be constructed within the sequence using a payload factory mediator
> similar to the post I have written [1]. Without setting the soap format to
> the address endpoint seems my payload is dropped from the request as I
> observed per the wire logs. When i manually add it to the api synapse file
> it works as expected.
>
> Your help on this would be much appreciated.
>
> [1] http://shenavid.blogspot.com/2017/03/in-this-post-i-will
> -be-explaining-how.html
>
> Thanks and Regards,
> Shenavi
>
> *Shenavi de Mel*
> Senior Software Engineer
> WSO2 Inc: http://wso2.com
> email: shenavi@wso2.com
> mobile: 0711644470
>
>


-- 
Lakmali Baminiwatta
Associate Technical Lead
WSO2, Inc.: http://wso2.com
lean.enterprise.middleware
mobile:  +94 71 2335936
blog : lakmali.com

[Attachment #5 (text/html)]

<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On 25 \
September 2017 at 11:27, Shenavi de Mel <span dir="ltr">&lt;<a \
href="mailto:shenavi@wso2.com" target="_blank">shenavi@wso2.com</a>&gt;</span> \
wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex"><div dir="ltr">Hi APIM Team,<div><br></div><div>In APIM \
2.0.0 there was an option where we were able to set the SOAP format to the address \
endpoint from the advanced endpoint configuration. However in APIM 2.1.0 I am unable \
to find the configuration.  </div><div><br></div><div>Is there anyway to configure \
that from the UI instead of having to manually add it to the API synapse file? Or add \
a property to achieve it through a custom sequence? I was not able to find a way to \
do this. Please point me in the path this could be \
achieved.</div></div></blockquote><div><br></div><div>If you set the correct \
messageType property via a custom inSequence, it should also do the same thing. If \
the SOAP format is 1.1, set it as text/xml and if it is 1.2, set as \
application/soap+xml. Also for SOAP 1.1, you have to send the SOAPAction header as \
well.  </div><div><br></div><div>Thanks,</div><div>Lakmali  </div><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr"><div><br></div><div>Is there a specific reason \
that option was removed?</div><div><br></div><div>I am trying to expose a SOAP based \
API as a REST API where the soap body will be constructed within the sequence using a \
payload factory mediator similar to the post I have written [1]. Without setting the \
soap format to the address endpoint seems my payload is dropped from the request as I \
observed per the wire logs. When i manually add it to the api synapse file it works \
as expected.</div><div><br></div><div>Your help on this would be much \
appreciated.</div><div><br></div><div>[1]  <a \
href="http://shenavid.blogspot.com/2017/03/in-this-post-i-will-be-explaining-how.html" \
target="_blank">http://shenavid.blogspot.c<wbr>om/2017/03/in-this-post-i-will<wbr>-be-explaining-how.html</a></div><div><br></div><div>Thanks \
and Regards,</div><div>Shenavi</div><span class="m_4438261700148327403HOEnZb"><font \
color="#888888"><div><br></div><div><div><div><div \
class="m_4438261700148327403m_-3059968859841317133gmail_signature"><div \
dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div \
dir="ltr"><div dir="ltr"><div><span style="font-size:12.8px"><font color="#000000" \
face="verdana, sans-serif"><b>Shenavi de Mel</b></font></span><br></div><font \
face="verdana, sans-serif"><font color="#000000">Senior Software \
Engineer</font><br></font><div style="color:rgb(136,136,136)"><font size="1" \
face="verdana, sans-serif"><font color="#666666">WSO2 Inc:  </font><a \
href="http://wso2.com/" style="color:rgb(17,85,204)" \
target="_blank">http://wso2.com</a></font></div><div \
style="color:rgb(136,136,136)"><font size="1" face="verdana, sans-serif">email:  <a \
href="mailto:shenavi@wso2.com" \
target="_blank">shenavi@wso2.com</a><br></font></div><div \
style="color:rgb(136,136,136)"><font size="1" face="verdana, sans-serif">mobile: \
0711644470</font><br></div><br></div></div></div></div></div></div></div></div></div></div></div>
 </div></div></font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div \
class="m_4438261700148327403gmail_signature" data-smartmail="gmail_signature"><div \
dir="ltr"><div><div dir="ltr"><span \
style="font-size:13px;background-color:rgb(255,255,255)"><font \
style="font-family:arial;color:rgb(51,51,51)" face="arial, helvetica, \
sans-serif">Lakmali Baminiwatta<b><br></b></font><div \
style="font-family:arial,sans-serif;color:rgb(51,51,51)"> <font \
style="font-family:arial" face="arial, helvetica, sans-serif">Associate Technical \
Lead<br></font><div style="font-family:arial"><span \
style="border-collapse:collapse"><font face="arial, helvetica, sans-serif">WSO2, \
Inc.:  </font><font face="arial, helvetica, sans-serif"><a href="http://wso2.com/" \
target="_blank">http://wso2.com</a></font></span></div> <div \
style="font-family:arial"><span style="border-collapse:collapse"><font face="arial, \
helvetica, sans-serif"><span \
style="font-family:arial,sans-serif;font-size:13px">lean.enterprise.middleware</span></font></span></div>
 <div><font face="arial, sans-serif"><span \
style="border-collapse:collapse"></span></font></div><div \
style="font-family:arial"><span style="border-collapse:collapse"><font face="arial, \
helvetica, sans-serif">mobile:    <a value="+94718279777">+94 71 \
2335936</a></font></span></div><div style="font-family:arial"><span \
style="border-collapse:collapse"><font face="arial, helvetica, sans-serif">blog : <a \
href="http://lakmali.com" target="_blank">lakmali.com</a></font></span></div> \
</div><div><font face="arial, helvetica, sans-serif"><span \
style="border-collapse:collapse"><i><br></i></span></font></div></span></div></div></div></div>
 </div></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