File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Translating JAVA code to VBA (excel)

 
Hans verwaals
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 3159
33
Google App Engine Java Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch!!

Please use UseCodeTags to post the source code. It will be easier to read and will get quick responses.
 
Hans verwaals
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 3159
33
Google App Engine Java Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 47232
52
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic