xml as binary
Moderators: chulett, rschirm, roy
xml as binary
Hi All,
One of my requirement is sending the xml file as a binary to the webservices.
I have two questions regarding this.
1) Can we send the XML File as Binary..?
2) Can we send an XML file as an attachment to the webservices.
I searched the forum and couldnt find them.
Regards.
One of my requirement is sending the xml file as a binary to the webservices.
I have two questions regarding this.
1) Can we send the XML File as Binary..?
2) Can we send an XML file as an attachment to the webservices.
I searched the forum and couldnt find them.
Regards.
I'm not sure of what a binary XML file would look like, since the format of tags in XML uses certain (displayable) characters.
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>
agree with Arnd...xml is, by nature, character. There are binary things that happen with xml and web services, such as web services "SOAP with Attachments", and there are ways to carry binary data within xml (simple ways like using an extended hex notation is common).......but each are more specific than just "xml as binary"....
The Web Services pack does not support SOAP with Attachments. What exactly do you need to do?
Ernie
The Web Services pack does not support SOAP with Attachments. What exactly do you need to do?
Ernie
Ernie Ostic
blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
Hi Ernie,
I have a requirement where they(the client) are expecting to send an xml as an attachment to the webservices.
They gave a wsdl which has some thing like this.
s:element minOccurs="0" maxOccurs="1" name="Stream" type="s:base64Binary"
So my understanding is that we need to send an xml file as an attachment and it should be in binary(please correct me if iam wrong).
So trying to find out whether this is possible or not.
Regards.
I have a requirement where they(the client) are expecting to send an xml as an attachment to the webservices.
They gave a wsdl which has some thing like this.
s:element minOccurs="0" maxOccurs="1" name="Stream" type="s:base64Binary"
So my understanding is that we need to send an xml file as an attachment and it should be in binary(please correct me if iam wrong).
So trying to find out whether this is possible or not.
Regards.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Resist stupid requirements!jagadam wrote:I have a requirement where they(the client) are expecting to send an xml as an attachment to the webservices.
XML is a text-based standard.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
To Ray's point, you won't convert "the xml"....you would convert something that is carried "inside" the xml....
There are various ways to do this, (I like using Server with iconv/oconv), but once you have the hex value translated into character, you put it inside your tags....
For example, if my memory serves me correctly, the hex for 1234 is C1C2C3C4, so if this was the value for productID, you would end up with <productID>C1C2C3C4</productID> instead of <productID>1234</productID>.
Obviously you wouldnt need hex for this example, but if it was an unprintable set of values, like binary zeros or something, you'd want this technique.
Sounds like you need to find out more about EXACTLY what type of payload you need to be sending.
Ernie
There are various ways to do this, (I like using Server with iconv/oconv), but once you have the hex value translated into character, you put it inside your tags....
For example, if my memory serves me correctly, the hex for 1234 is C1C2C3C4, so if this was the value for productID, you would end up with <productID>C1C2C3C4</productID> instead of <productID>1234</productID>.
Obviously you wouldnt need hex for this example, but if it was an unprintable set of values, like binary zeros or something, you'd want this technique.
Sounds like you need to find out more about EXACTLY what type of payload you need to be sending.
Ernie
Ernie Ostic
blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Man am I glad I found this! :Dray.wurlod wrote:You could always zip the XML. That would be binary.
I want to send a zip file to MQ but am struggling to define the source to the MQ stage. If it's a compressed file, what do I specify in the sequential stage for the metadata? (original file is XML, but larger than life, thus the reason to compress the file before placing it on the Q)
Any other ideas on getting the zipped file onto the Q?
thanks guys