You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by Chris Malley <cm...@pixelzoom.com> on 2001/12/20 16:02:56 UTC

Base64 encoding

I have a set of SOAP services that send XML documents
as parameters and responses.   Since these XML documents
will be enbedded in SOAP documents, I'm Base64 (aka, MIME)
encoding them.   I'm using the Apache SOAP Base64 class to 
do the encoding/decoding on the server.

My problem is on the client side.  My client is implemented
in C++ using Microsoft SOAP v2, and I'm having trouble finding
something similar to handle base64 for the client.  I'm fairly
new to Windows development, so the answer may be staring me 
in the face.  Any pointers?

Second question: Is this encoding really necessary, or 
could I just send the embedded documents unencoded?

Sorry to ask this on the Apache SOAP list, but I haven't
gotten anywhere on the Microsoft lists.  Thanks,

-Chris

-- 
Chris Malley
PixelZoom, Inc.             Voice: +1.303.494.8849
835 Orman Drive             EMail: cmalley@pixelzoom.com
Boulder CO 80303-2616

Re: Base64 encoding

Posted by Pae Choi <pa...@earthlink.net>.
Hi Chris,

How is the weather like in Boulder nowaday. I used to live in
C Sprins before and I enjoyed.

Back to the BASE64 stuff on your client side, you can either
write own code or download the available source from the
various places, e.g., c or c++.

Or just rewite in c++ by borrowing the ideas from the java
source code. It should not be too difficult to do so. I as an
individual wrote the encoding/decoding code before in java,
including BASE64.


Pae



----- Original Message ----- 
From: "Chris Malley" <cm...@pixelzoom.com>
To: "soap-user" <so...@xml.apache.org>
Sent: Thursday, December 20, 2001 7:02 AM
Subject: Base64 encoding


> I have a set of SOAP services that send XML documents
> as parameters and responses.   Since these XML documents
> will be enbedded in SOAP documents, I'm Base64 (aka, MIME)
> encoding them.   I'm using the Apache SOAP Base64 class to 
> do the encoding/decoding on the server.
> 
> My problem is on the client side.  My client is implemented
> in C++ using Microsoft SOAP v2, and I'm having trouble finding
> something similar to handle base64 for the client.  I'm fairly
> new to Windows development, so the answer may be staring me 
> in the face.  Any pointers?
> 
> Second question: Is this encoding really necessary, or 
> could I just send the embedded documents unencoded?
> 
> Sorry to ask this on the Apache SOAP list, but I haven't
> gotten anywhere on the Microsoft lists.  Thanks,
> 
> -Chris
> 
> -- 
> Chris Malley
> PixelZoom, Inc.             Voice: +1.303.494.8849
> 835 Orman Drive             EMail: cmalley@pixelzoom.com
> Boulder CO 80303-2616


Re: Base64 encoding

Posted by Pae Choi <pa...@earthlink.net>.
Hi Chris,

How is the weather like in Boulder nowaday. I used to live in
C Sprins before and I enjoyed.

Back to the BASE64 stuff on your client side, you can either
write own code or download the available source from the
various places, e.g., c or c++.

Or just rewite in c++ by borrowing the ideas from the java
source code. It should not be too difficult to do so. I as an
individual wrote the encoding/decoding code before in java,
including BASE64.


Pae



----- Original Message ----- 
From: "Chris Malley" <cm...@pixelzoom.com>
To: "soap-user" <so...@xml.apache.org>
Sent: Thursday, December 20, 2001 7:02 AM
Subject: Base64 encoding


> I have a set of SOAP services that send XML documents
> as parameters and responses.   Since these XML documents
> will be enbedded in SOAP documents, I'm Base64 (aka, MIME)
> encoding them.   I'm using the Apache SOAP Base64 class to 
> do the encoding/decoding on the server.
> 
> My problem is on the client side.  My client is implemented
> in C++ using Microsoft SOAP v2, and I'm having trouble finding
> something similar to handle base64 for the client.  I'm fairly
> new to Windows development, so the answer may be staring me 
> in the face.  Any pointers?
> 
> Second question: Is this encoding really necessary, or 
> could I just send the embedded documents unencoded?
> 
> Sorry to ask this on the Apache SOAP list, but I haven't
> gotten anywhere on the Microsoft lists.  Thanks,
> 
> -Chris
> 
> -- 
> Chris Malley
> PixelZoom, Inc.             Voice: +1.303.494.8849
> 835 Orman Drive             EMail: cmalley@pixelzoom.com
> Boulder CO 80303-2616


RE: Base64 encoding

Posted by Randy Charles Morin <ra...@sportmarkets.com>.
I wrote the following base64 class.
http://www.kbcafe.com/articles/base64.html
I hope it help.

Second, you should be able to send the document unencoded. I successfully
did this with MSSOAP2 (client and server). I haven't tried this w/ Apache
SOAP.

Randy Charles Morin
Author of Programming Windows Services
http://www.kbcafe.com/

-----Original Message-----
From: cmalley@mail.nbc.attcanada.ca
[mailto:cmalley@mail.nbc.attcanada.ca]On Behalf Of Chris Malley
Sent: Thursday, December 20, 2001 10:03 AM
To: soap-user
Subject: Base64 encoding


I have a set of SOAP services that send XML documents
as parameters and responses.   Since these XML documents
will be enbedded in SOAP documents, I'm Base64 (aka, MIME)
encoding them.   I'm using the Apache SOAP Base64 class to
do the encoding/decoding on the server.

My problem is on the client side.  My client is implemented
in C++ using Microsoft SOAP v2, and I'm having trouble finding
something similar to handle base64 for the client.  I'm fairly
new to Windows development, so the answer may be staring me
in the face.  Any pointers?

Second question: Is this encoding really necessary, or
could I just send the embedded documents unencoded?

Sorry to ask this on the Apache SOAP list, but I haven't
gotten anywhere on the Microsoft lists.  Thanks,

-Chris

--
Chris Malley
PixelZoom, Inc.             Voice: +1.303.494.8849
835 Orman Drive             EMail: cmalley@pixelzoom.com
Boulder CO 80303-2616



SOAP Action URI -- Once again !!

Posted by Yashasree <ya...@tatainfotech.com>.
Hi All

I am using WSDL4J, UDDI4J and Apache SOAP implementation to deploy and
retrieve the web service info from a client.

I am parsing the wsdl file obtained from the UDDI registry using WSDL4J and
getting the binding information. The SOAPActionURI under SOAP:Operation tag
represents the actual Deployed SOAP WebService Name. If SOAPActionURI is
blank, how can I get the SOAP WebService Name ? (According to me this
Service name is diffrent from UDDI Service name...)

And also is it mandatory for a wsdl file to have a value for the SOAP Action
URI, i.e. can the client assume that he/she will always get a web service
name from the soap action uri field?

Thanks in advance
Yash

Yashasree Kulkarni
Lead Systems Engineer
Tata Infotech Ltd, SEEPZ Andheri E
Work: 8291261



SOAP Action URI -- Once again !!

Posted by Yashasree <ya...@tatainfotech.com>.
Hi All

I am using WSDL4J, UDDI4J and Apache SOAP implementation to deploy and
retrieve the web service info from a client.

I am parsing the wsdl file obtained from the UDDI registry using WSDL4J and
getting the binding information. The SOAPActionURI under SOAP:Operation tag
represents the actual Deployed SOAP WebService Name. If SOAPActionURI is
blank, how can I get the SOAP WebService Name ? (According to me this
Service name is diffrent from UDDI Service name...)

And also is it mandatory for a wsdl file to have a value for the SOAP Action
URI, i.e. can the client assume that he/she will always get a web service
name from the soap action uri field?

Thanks in advance
Yash

Yashasree Kulkarni
Lead Systems Engineer
Tata Infotech Ltd, SEEPZ Andheri E
Work: 8291261



RE: Base64 encoding

Posted by Randy Charles Morin <ra...@sportmarkets.com>.
One last thing. If you have problems with MSSOAP and don't get a response on
the usual forums. CC me email too!

Randy Charles Morin
Author of Programming Windows Services
http://www.kbcafe.com/

-----Original Message-----
From: cmalley@mail.nbc.attcanada.ca
[mailto:cmalley@mail.nbc.attcanada.ca]On Behalf Of Chris Malley
Sent: Thursday, December 20, 2001 10:03 AM
To: soap-user
Subject: Base64 encoding


I have a set of SOAP services that send XML documents
as parameters and responses.   Since these XML documents
will be enbedded in SOAP documents, I'm Base64 (aka, MIME)
encoding them.   I'm using the Apache SOAP Base64 class to
do the encoding/decoding on the server.

My problem is on the client side.  My client is implemented
in C++ using Microsoft SOAP v2, and I'm having trouble finding
something similar to handle base64 for the client.  I'm fairly
new to Windows development, so the answer may be staring me
in the face.  Any pointers?

Second question: Is this encoding really necessary, or
could I just send the embedded documents unencoded?

Sorry to ask this on the Apache SOAP list, but I haven't
gotten anywhere on the Microsoft lists.  Thanks,

-Chris

--
Chris Malley
PixelZoom, Inc.             Voice: +1.303.494.8849
835 Orman Drive             EMail: cmalley@pixelzoom.com
Boulder CO 80303-2616



RE: Base64 encoding

Posted by Randy Charles Morin <ra...@sportmarkets.com>.
I wrote the following base64 class.
http://www.kbcafe.com/articles/base64.html
I hope it help.

Second, you should be able to send the document unencoded. I successfully
did this with MSSOAP2 (client and server). I haven't tried this w/ Apache
SOAP.

Randy Charles Morin
Author of Programming Windows Services
http://www.kbcafe.com/

-----Original Message-----
From: cmalley@mail.nbc.attcanada.ca
[mailto:cmalley@mail.nbc.attcanada.ca]On Behalf Of Chris Malley
Sent: Thursday, December 20, 2001 10:03 AM
To: soap-user
Subject: Base64 encoding


I have a set of SOAP services that send XML documents
as parameters and responses.   Since these XML documents
will be enbedded in SOAP documents, I'm Base64 (aka, MIME)
encoding them.   I'm using the Apache SOAP Base64 class to
do the encoding/decoding on the server.

My problem is on the client side.  My client is implemented
in C++ using Microsoft SOAP v2, and I'm having trouble finding
something similar to handle base64 for the client.  I'm fairly
new to Windows development, so the answer may be staring me
in the face.  Any pointers?

Second question: Is this encoding really necessary, or
could I just send the embedded documents unencoded?

Sorry to ask this on the Apache SOAP list, but I haven't
gotten anywhere on the Microsoft lists.  Thanks,

-Chris

--
Chris Malley
PixelZoom, Inc.             Voice: +1.303.494.8849
835 Orman Drive             EMail: cmalley@pixelzoom.com
Boulder CO 80303-2616



RE: Base64 encoding

Posted by Randy Charles Morin <ra...@sportmarkets.com>.
One last thing. If you have problems with MSSOAP and don't get a response on
the usual forums. CC me email too!

Randy Charles Morin
Author of Programming Windows Services
http://www.kbcafe.com/

-----Original Message-----
From: cmalley@mail.nbc.attcanada.ca
[mailto:cmalley@mail.nbc.attcanada.ca]On Behalf Of Chris Malley
Sent: Thursday, December 20, 2001 10:03 AM
To: soap-user
Subject: Base64 encoding


I have a set of SOAP services that send XML documents
as parameters and responses.   Since these XML documents
will be enbedded in SOAP documents, I'm Base64 (aka, MIME)
encoding them.   I'm using the Apache SOAP Base64 class to
do the encoding/decoding on the server.

My problem is on the client side.  My client is implemented
in C++ using Microsoft SOAP v2, and I'm having trouble finding
something similar to handle base64 for the client.  I'm fairly
new to Windows development, so the answer may be staring me
in the face.  Any pointers?

Second question: Is this encoding really necessary, or
could I just send the embedded documents unencoded?

Sorry to ask this on the Apache SOAP list, but I haven't
gotten anywhere on the Microsoft lists.  Thanks,

-Chris

--
Chris Malley
PixelZoom, Inc.             Voice: +1.303.494.8849
835 Orman Drive             EMail: cmalley@pixelzoom.com
Boulder CO 80303-2616