473,326 Members | 2,136 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

consuming Java webservice with VB6 help...

jeffbroodwar
118 100+
hi, i need help about consuming webservice created in java with vb6. i've created the webservice in netbeans with sun java server bundle and used MS Soap toolkit 3.0 on the client side.

i've attached the sample client source code in vb6 :

__________________________________________________ ________________

'********************* Created procedure *****************************
Private Sub Connect()

strClient = "http://localhost:8080/HiWS/HiWS?WSDL"

End sub

'********************* Form events ************************************
Private Sub cmdDoHello_Click()

Dim Client As New MSSOAPLib30.SoapClient30

Connect
Client.MSSoapInit (strClient)

txtSoapMessage.Text = Client.sayHi("Jeff")

End Sub

__________________________________________________ ________________

just a reminder.. i've added microsoft soap type libraryv3.0 in the references window.

*sayHi is the method of the java webservice

i'm receiving the following errors :

client: incorrect number of parameters supplied for soap request hresult=0x80070057: the parameter is incorrect.
-client: unspecified client error. HRESULT=0x80070057: the parameter is incorrect.

-I hope someone can help me with this one..... i'm running out of time... thanx in advance.
Nov 8 '06 #1
5 5516
jeffbroodwar,
Having the same difficulty, except using Tomcat 5.5 and/or 6.0. Any chance that you've solved your problem?
I created a really simple web service in .net, and communicaion with vb6 using ms soap toolkit 3.0 worked just fine. I noticed that the wsdls are different though, where the one created in the .net web service was a bit more verbose:

<s:schema elementFormDefault="qualified" targetNamespace="http://tempuri.org/">

<s:element name="HelloWorld">
<s:complexType/>
</s:element>

<s:element name="HelloWorldResponse">

<s:complexType>

<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="HelloWorldResult" type="s:string"/>
</s:sequence>
</s:complexType>
</s:element>
</s:schema>

as compared to the one in Java created using jax-ws 2.0, which linked into a xsd:

<xsd:schema>
<xsd:import namespace="http://example.com" schemaLocation="HelloService_schema1.xsd"/>
</xsd:schema>


Myself being kind of a newbie w/ the whole web service thing, I doubt that could have a lot to do with it...still, who knows...
Nov 20 '06 #2
By the way, an ugly hack would be to write a .net wrapper to subscribe to the java webservice, and expose it to COM...if you have that option available...although COM-to-.Net interop really sucks...
Nov 20 '06 #3
jeffbroodwar
118 100+
fortunately i was able to get this thing working... consuming the java service with vb6. IF the service will only display text. ex: Hello World !. but if a service like addition,database query,etc. (something that will require input...) it sez... invalid parameters... guess the problem now is on the syntax itself... check this out :

================================================== ===
Private sub Connect()

strClient = "http://localhost:8080/JavaMathService2/JavaMathService2?WSDL"

End sub
================================================== ===

Private sub Button1_Click()



Dim i as IXMLDOMSelection
Dim Client as New mssoaplib30.SoapClient30

Connect
Client.MSSoapInit (strClient)

Set i = Client.databasesample(val(text1.text))
txtbox1.text = i.context.Text


End sub
================================================== ===
just add :
Soap library version 3.0
Microsoft XML, v6.0

an error pops up telling me about missing element....meaning the value of text1.text (ID number) was not read as an input. don't know how to pass this element/value so that it will return to txtbox1 "SODA".

take note : (ID #1 = SODA)

please check this... you might be able to figure it out...... thanx

Regards,
Jeff
Nov 21 '06 #4
AricC
1,892 Expert 1GB
You should post this or a link to this post down in the VB forum there are quite a few really good VB6 programmers that hang out there.
Nov 22 '06 #5
jeffbroodwar
118 100+
okie, thanx aricc

Best Regards,
Jeff
Nov 23 '06 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Sunil | last post by:
Hi, How can we consume a webservice developed using Oracle JDeveloper from a asp.net client. The webservice provides a Proxy Jar and Proxy Source download. Please provide urls or articles that...
0
by: sush | last post by:
Hi, I have a question, somebody with exposure please answer. I need to call a JAVA webservice from C# (VS.6 & SOAP tool kit or VS.net). The Java webservice has been deployed on SOAP RPC Router ....
1
by: Scott McFadden | last post by:
Has anyone consumed a .net webservice from java? What java library did you use to consume the .net webservice? Is their a java tool that generates the java Soap proxy code given the .NET wsdl? ...
0
by: Alexiel | last post by:
Hi, i have a problem, I have a Java Client and i call my webservice on ..NET. This run perfectly just except when i send parameters don't work fine. I send my code : This is my java...
0
jeffbroodwar
by: jeffbroodwar | last post by:
hi, i need help about consuming webservice created in java with vb6. i've created the webservice in netbeans with sun java server bundle and used MS Soap toolkit 3.0 on the client side. i've...
2
jeffbroodwar
by: jeffbroodwar | last post by:
hi, i need help about consuming webservice created in java with vb6. i've created the webservice in netbeans with sun java server bundle and used MS Soap toolkit 3.0 on the client side. i've...
0
jeffbroodwar
by: jeffbroodwar | last post by:
hi, i need help about consuming webservice created in java with vb6. i've created the webservice in netbeans with sun java server bundle and used MS Soap toolkit 3.0 on the client side. i've...
4
by: Boni | last post by:
I want consuming a webserivce trough a proxy. I use this code. myService s = new myService (); System.Net.WebProxy proxyObject = new System.Net.WebProxy("http://proxyhost:8080"); s.Proxy =...
3
by: bharadwajrv | last post by:
i'm consuming a Webservice (created in java) in .Net 2003 (in C#)... whenever i invoke the webmethod, i'm getting below error message "Additional information: Client found response content type of...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.