permaculture playing cards*
The moose likes Other Languages and the fly likes Translating JAVA code to VBA (excel) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Languages » Other Languages
Bookmark "Translating JAVA code to VBA (excel)" Watch "Translating JAVA code to VBA (excel)" New topic
Author

Translating JAVA code to VBA (excel)

Hans verwaals
Greenhorn

Joined: Oct 30, 2010
Posts: 3
Dear Friends,

I have got the Java code from the vendor to post a XML message with a JPG file to the webservice. Here you can find the Java code:


I have tried to tranlate this but without success, anybody know how to post the stuff like the code above?

This is the part of my code:



Im struggling with the objHttp.send (myDom.XML) part and dont know how to add the XML and the file to the send commando like in the java code. Within Java they are working with constructors?? Could somebody help me with this code? A golden star for the solution -
Mohamed Sanaulla
Saloon Keeper

Joined: Sep 08, 2007
Posts: 3071
    
  33

Welcome to JavaRanch!!

Please use UseCodeTags to post the source code. It will be easier to read and will get quick responses.


Mohamed Sanaulla | My Blog
Hans verwaals
Greenhorn

Joined: Oct 30, 2010
Posts: 3
Hi,
I have put the code tags - Now watching every minute if there is a reaction, so i can test it immediately...Thanks in advance and hope for a quick reply...
Mohamed Sanaulla
Saloon Keeper

Joined: Sep 08, 2007
Posts: 3071
    
  33

You want to know how it can be done in VB for the given Java code? Hoping that there is someone around who could help you with VB. I dont think it would sit in a Beginning Java forum, moderators will be able to move this around to a more suitable forum so that you can get better responses.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39409
    
  28
mohamed sanaullah wrote:. . . . I dont think it would sit in a Beginning Java forum, moderators will be able to move this . . .
Agree. Moved.

If you post on a VB forum elsewhere, please tell people there, and here, about your duplicate posting.
Hans verwaals
Greenhorn

Joined: Oct 30, 2010
Posts: 3
Here you can find more information about the class MultipartRequestEntity

http://hc.apache.org/httpclient-3.x/apidocs/org/apache/commons/httpclient/methods/multipart/MultipartRequestEntity.html

The main question is how to handle this within Visual Basic for Applications?? How can i add this stuff into my references?

jiri spacek
Greenhorn

Joined: Mar 29, 2011
Posts: 1
Hi, did you solve your problem? I have/ propably same problem and I doun't know how to solve it. I described my problem on page.
http://stackoverflow.com/questions/5458083/post-soap-multipart-message-via-vba-ms-access-with-msxml2-xmlhttp-saxparseexce
Can you look on it and compare it with your problem?
Thanks
George
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Translating JAVA code to VBA (excel)