473,748 Members | 8,367 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How do I consume a JAVA webservice through ASP client using SOAP

1 New Member
Greetings All!

I have a Java Web service that I wrote. I need to use Classic ASP as the client for this web service.

I have the following code in an asp page but I keep getting an error that states "Invalid procedure call or argument: 'doScan'" - doScan is the method in my Java Web service. When browsing to the WSDL file I don't get any errors...

Set oSOAP = Server.CreateOb ject("MSSOAP.So apClient")
oSOAP.ClientPro perty("ServerHT TPRequest") = True
oSOAP.mssoapini t("http://localhost:8080/ffws/FFWS?WSDL")
//'Create XML document and load XML from Web services method
Set objDOMDoc = Server.CreateOb ject("Msxml2.DO MDocument.4.0")
objDOMDoc.loadX ML(CStr(oSOAP.d oScan("carlos bolas")))

How do I reference the doScan method?

TIA
Jan 9 '08 #1
2 6448
LordRaven
1 New Member
Hi,
I have exactly the same problem.
Did You solve it finally in some way?
TIA

related to:
"I have a Java Web service that I wrote. I need to use Classic ASP as the client for this web service.

I have the following code in an asp page but I keep getting an error that states "Invalid procedure call or argument: 'doScan'" - doScan is the method in my Java Web service. When browsing to the WSDL file I don't get any errors...

Set oSOAP = Server.CreateOb ject("MSSOAP.So apClient")
oSOAP.ClientPro perty("ServerHT TPRequest") = True
oSOAP.mssoapini t("http://localhost:8080/ffws/FFWS?WSDL")
//'Create XML document and load XML from Web services method
Set objDOMDoc = Server.CreateOb ject("Msxml2.DO MDocument.4.0")
objDOMDoc.loadX ML(CStr(oSOAP.d oScan("carlos bolas")))

How do I reference the doScan method?"
Feb 10 '09 #2
HotSteppa
1 New Member
HI... I get the exact same error.
I've tried: (ASP page)

'-----------------------------------------
'Create an object of Soap Client
Set oSOAP = Server.CreateOb ject("MSSOAP.So apClient")
oSOAP.ClientPro perty("ServerHT TPRequest") = True
'Initaialize the Web Service
oSOAP.mssoapini t("http://localhost:8888/HelloWebService/HelloWorldWSSoa pHttpPort?wsdl" )
'Invoke the Web Service
Response.write( oSOAP.getHelloW orld("Test"))
'-----------------------------------------

Error:
Microsoft VBScript runtime (0x800A0005)
Invalid procedure call or argument: 'getHelloWorld'

I have no problem calling the Java web service via a browser and using: http://localhost:8888/HelloWebServic...pHttpPort?wsdl, it just can't find the procedure.

Thanks
Apr 30 '09 #3

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

Similar topics

4
422
by: John Bailo | last post by:
I wrote a .NET/c# webservice which I then needed to consume from java server pages. The simplest ( and best ) solution I found, was some code to open a socket, and send a SOAP message directly to it...constructing the SOAP message with a class that builds the string. Then I parse the return soap message for the result. Now I wonder, can I do the same thing in a c# client. All I want to do is
1
3475
by: Kumar T via .NET 247 | last post by:
Could you please explain me the steps for consuming JavaWebservice through .NET client. I know how to connect through.NET webservice and I followed the same steps for this, but itdid not work out. In the Add web reference dialog I entered theJava webservice url, it returned the Messages "Sorry, I don'tspeak via HTTP GET- you have to use HTTP POST to talk to me" inthe left pane and "Discovery Information not available" in theright pane. I...
7
4985
by: Christian Wilhelm | last post by:
Hi! I'm trying to call a Java WebService out of a .net Client. There are two Methods, one Method requires one Parameter of type Parameter, the other Method requires one Parameter of type Parameter. I can call the first Method without Problems, the Parameter can be deserialized by the WebService. But if I want to call the second Method and give it an Array of Parameters, then the following exception is thrown by the WebService:...
2
2758
by: yqlu | last post by:
I hava developed a client in C# that is connected to a 3-party XML Web Services developed in Java based on the AXIS 1.1. Most methods call are successful except for one method named "findObjects" and return a complex type "FieldSearchResult". The error message as following : "Cannot assign object of type System.String to an object of type System.String. There is an error in XML document (23, 97)." By the way,I hava written a client in Java...
0
1681
by: leslie_tighe | last post by:
Hello, I have a set of web services running on Java server that are exposed through axis 1.2.1. I can invoke these services in browser and through a java test client. However, when I try to consume them in VB .NET I get objects with nothing in them. Interestingly, if I call a webservice that returns a string, then it all works fine. I have pasted the wsdl file for review. Any suggestions would be greatly appreciated. I used the...
5
10400
by: David Lozzi | last post by:
Howdy, I wrote a web service in .Net for my customer. My customer has another vendor who now has to consume it but they are not using Visual Studio. Most of their pages are jsp, and they said they need to consume this web service using HTTP. The developer's IDE is Notepad. Yeah, weird I know. How is this done? I guess if I can get it to run ASP, IDE independant, that should make them happy. Any references you can point me to?
0
4533
by: karazy | last post by:
I have been reading all the forums and understand whats going wrong but am not sure how to fix it. I have written a basic doc/literal web service. But when it is called by a .net client it will return NULL. I used proxytrace to check the data that goes back and forward. I can see my request and response. See below at the bottom. I believe that this error occurs because of a problem .Net has in reading my doc/literal WSDL. Or my Axis...
0
2389
by: TraceyAnnison | last post by:
I wonder if you can help me - I'm new to this, and working in a project that has already been configured to work with Axis. We have a Java project built with the Spring framework, in order to provide webservices for access via SOAP. As I understand it (ie not very well!) Axis works to accept these SOAP messages from the client and transform them into calls on our Java methods, and do the reverse with the responses - cool! Which is excellent,...
1
8285
by: parimalb | last post by:
Hi All, I want to pass an array argument to the java webservice from perl client using SOAP::LITE package. Please let me know if anyone knows about this. The web method declaration in java is like this publishSimpleMetric(Arraylist<String> appinfo,Arraylist<String> metricinfo,String seperator); Now i tried to call the web service from perl client as follows ...
1
3050
by: moorcroft | last post by:
I'm sending the following SOAP request to a webservice (I've had to star out some parts of it for privacy purposes): <?xml version="1.0" encoding="UTF-8"?> <soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/"> <soap-env:Header/><soap-env:Body> <GetAppList xmlns="https://***.***.***.***/***/***.asmx?op=***"> <requestId>1</requestId> <laNumber>5</laNumber> <hashCode>*******</hashCode> </GetAppList>
0
8823
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9363
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9312
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
9238
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8237
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6073
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4864
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3300
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
2
2775
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.