|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
URL Encoding Function? |
« View previous topic :: View next topic » |
Author |
Message
|
DJN2 |
Posted: Tue Oct 25, 2011 3:28 pm Post subject: URL Encoding Function? |
|
|
Apprentice
Joined: 02 Jan 2009 Posts: 27 Location: New Jersey
|
Is there a URL encoding function in the message broker?
The requirements look like this....
URL Encoding
The XML request must be encoded using a MIME format called βx-www-form-urlencodedβ format.
What this means is the following:
The ASCII characters βaβ through βzβ, βAβ through βZβ, β0β through β9β, and β.β, β-β, β*β, β_β
remain the same.
The space character (β β) is converted into a plus sign β+β.
All other characters are converted into the 3-character string β%xyβ, where βxyβ is the two-digit
hexadecimal representation of the lower 8-bits of the character. |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Oct 25, 2011 4:30 pm Post subject: Re: URL Encoding Function? |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
DJN2 wrote: |
Is there a URL encoding function in the message broker |
Is there? It depends on what kind of compute node you are using and what you mean by "in" the message broker. |
|
Back to top |
|
 |
DJN2 |
Posted: Tue Oct 25, 2011 4:44 pm Post subject: |
|
|
Apprentice
Joined: 02 Jan 2009 Posts: 27 Location: New Jersey
|
Let me rephase. Is there a way to perform URL encoding on a data element in a message flow?
It seems this may be a routine conversion when working with web service. |
|
Back to top |
|
 |
rekarm01 |
Posted: Wed Oct 26, 2011 12:18 am Post subject: Re: URL Encoding Function? |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 1415
|
DJN2 wrote: |
The ASCII characters βaβ through βzβ, βAβ through βZβ, β0β through β9β, and β.β, β-β, β*β, β_β remain the same.
The space character (β β) is converted into a plus sign β+β.
All other characters are converted into the 3-character string β%xyβ, where βxyβ is the two-digit hexadecimal representation of the lower 8-bits of the character. |
That's not quite how URL Encoding works.
DJN2 wrote: |
Let me rephase. Is there a way to perform URL encoding on a data element in a message flow? |
The message flow has access to a variety of transformation interfaces, including Java and PHP, which can perform URL Encoding. |
|
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
|
|
|
|