473,569 Members | 2,688 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

consuming Java webservice with VB6 help...

jeffbroodwar
118 New Member
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_Clic k()

Dim Client As New MSSOAPLib30.Soa pClient30

Connect
Client.MSSoapIn it (strClient)

txtSoapMessage. Text = Client.sayHi("J eff")

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=0x80070 057: the parameter is incorrect.
-client: unspecified client error. HRESULT=0x80070 057: 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 5537
freakybeard
2 New Member
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 elementFormDefa ult="qualified" targetNamespace ="http://tempuri.org/">

<s:element name="HelloWorl d">
<s:complexTyp e/>
</s:element>

<s:element name="HelloWorl dResponse">

<s:complexTyp e>

<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="HelloWorl dResult" 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_s chema1.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
freakybeard
2 New Member
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...alt hough COM-to-.Net interop really sucks...
Nov 20 '06 #3
jeffbroodwar
118 New Member
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,databa se 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/JavaMathService 2/JavaMathService 2?WSDL"

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

Private sub Button1_Click()



Dim i as IXMLDOMSelectio n
Dim Client as New mssoaplib30.Soa pClient30

Connect
Client.MSSoapIn it (strClient)

Set i = Client.database sample(val(text 1.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....mean ing 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 Recognized Expert Top Contributor
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 New Member
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
5301
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 can help. Appreciate your help in advance. S
0
1105
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 . But there is no absloute path for the WSDL docs, everything should go via this router. I have gone through different scenario and everywhere it is...
1
1459
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? thanks scottm
0
1588
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 client..........
0
1229
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 attached the sample client source code in vb6 : __________________________________________________________________ '********************* Created...
2
2780
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 attached the sample client source code in vb6 : __________________________________________________ ________________ '********************* Created...
0
1220
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 attached the sample client source code in vb6 : __________________________________________________ ________________ '********************* Created...
4
5982
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 = proxyObject; It doesn't works, it returns a error HTTP 407: Proxy Authentication Required ( Access is denied. ). But my proxy don't need a user...
3
3265
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 'text/html; charset=ISO-8859-1', but expected 'text/xml'." but when the same webservice is called from SOAPUI (an open source application...
0
7703
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8138
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7679
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
1
5514
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5223
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3657
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2117
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1228
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
946
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.