ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » IIB v9 - HTTPRequest POST Request to AZURE.

Post new topic  Reply to topic
 IIB v9 - HTTPRequest POST Request to AZURE. « View previous topic :: View next topic » 
Author Message
VivekMeshram
PostPosted: Tue Nov 05, 2013 7:07 pm    Post subject: IIB v9 - HTTPRequest POST Request to AZURE. Reply with quote

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
View user's profile Send private message Send e-mail
mgk
PostPosted: Wed Nov 06, 2013 5:40 am    Post subject: Reply with quote

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
View user's profile Send private message
VivekMeshram
PostPosted: Thu Nov 07, 2013 3:14 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
GeneRK4
PostPosted: Wed Dec 11, 2013 5:22 am    Post subject: Reply with quote

Master

Joined: 08 Jul 2013
Posts: 220

Can you please share the urldecode function you have used in esql?
Back to top
View user's profile Send private message
logonaniket
PostPosted: Thu Dec 12, 2013 1:31 am    Post subject: Reply with quote

Novice

Joined: 12 Dec 2013
Posts: 17

any sol to this so far?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » IIB v9 - HTTPRequest POST Request to AZURE.
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.