|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
IIB v9 - HTTPRequest POST Request to AZURE. |
« View previous topic :: View next topic » |
Author |
Message
|
VivekMeshram |
Posted: Tue Nov 05, 2013 7:07 pm Post subject: IIB v9 - HTTPRequest POST Request to AZURE. |
|
|
 Voyager
Joined: 25 Mar 2002 Posts: 83
|
Hi Guys,
I am having an issue while posting POST message to AZURE.
I have developed a message flow that use HTTPRequest Node to retrive the token from ACS (Access Control Service).
Always the content-length is 0 even though I assign the request message content.
Has anyone successfully implemented ACS call in message broker.
Same works fine in SOAP UI.Sample Soap-ui raw content:
POST https://TTTT-sb.accesscontrol.windows.net/WRAPv0.9 HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: application/x-www-form-urlencoded
Content-Length: 137
Host: TTTT-sb.accesscontrol.windows.net
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)
wrap_name=owner&wrap_password=xxxxxx&wrap_scope=http%3A%2F%2FTTTT.servicebus.windows.net%2F.
Appreciate any assistance. |
|
Back to top |
|
 |
mgk |
Posted: Wed Nov 06, 2013 5:40 am Post subject: |
|
|
 Padawan
Joined: 31 Jul 2003 Posts: 1642
|
You will need to provide more information. Can you use a tool such as Fiddler to see the data being sent and received? If you can post it here. Also a trace node tracing ${Root} before the Request node will prove that your message is set up correctly (or not). How did you construct the form-encoded body? My guess would be that you have not done this correctly.
An alternative is to use a Windows broker with a .NET Compute node and use C# to call Azure using the Azure SDK.
Kind regards, _________________ MGK
The postings I make on this site are my own and don't necessarily represent IBM's positions, strategies or opinions. |
|
Back to top |
|
 |
VivekMeshram |
Posted: Thu Nov 07, 2013 3:14 pm Post subject: |
|
|
 Voyager
Joined: 25 Mar 2002 Posts: 83
|
Hi mgk,
Thanks for your time and reply. We are using AIX server and architects does not prefer using .NET nodes.
I want to share the good news with you; we made it work!!
Solution is:
1) Azure services expects the text in plain format. Earlier we tried with XML & JSON which was not working. Now, I passed a MRM message set (TEXT message) with 1 field with value 'wrap_name=owner&wrap_password=xxxxxx&wrap_scope=http%3A%2F%2FTTTT.servicebus.windows.net%2F', which works fine.
2) HTTP request node - Advanced properties select the 'Use whole input message as request'. I tried with 'Request message location in tree', which is not working.
3) I have also done a url decode function in ESQL for decoding the AZURE response.
It is a Good weekend for us now  |
|
Back to top |
|
 |
GeneRK4 |
Posted: Wed Dec 11, 2013 5:22 am Post subject: |
|
|
Master
Joined: 08 Jul 2013 Posts: 220
|
Can you please share the urldecode function you have used in esql? |
|
Back to top |
|
 |
logonaniket |
Posted: Thu Dec 12, 2013 1:31 am Post subject: |
|
|
Novice
Joined: 12 Dec 2013 Posts: 17
|
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|