Hi I've got a web service running through an Oracle SOAP server. I'm calling this web service from ASP (using microsoft SOAP) - see code. This works fine, but when I call a method that passes a string as input parameter - I get the following problem: Error Type: /DateTimeService-DateTimeJ2EE-context-root/datetimepkj2ee.DateTimeServiceJ2EE (0x80004005) No Deserializer found to deserialize a ' refix' using encoding style 'http://schemas.xmlsoap.org/soap/encoding/'. [java.lang.IllegalArgumentException] /MSSoapSamples30/Calc/Client/Rpc/AspVbs/ProcessNatis.asp, line 25 Here is the ProcessNatis.asp file - client that calls the web service: <%@ LANGUAGE = VBScript %> <HTML> <HEAD> <TITLE>Result</TITLE> </HEAD> <BODY> <% Dim SoapClient Set SoapClient = Server.CreateObject("MSSOAP.SoapClient30") SoapClient.MSSoapInit2 _ Server.MapPath("DateTimeServiceJ2EE.wsdl"), _ "", _ "DateTimeServiceJ2EE", _ "DateTimeServiceJ2EEPort", _ "http://datetimepkj2ee/DateTimeServiceJ2EE.wsdl" Dim string, res string = "AAA" res = CStr(SoapClient.getDateString(CStr(string))) Set SoapClient = Nothing %> <B>Result:</B> <%=res%><P><P> </BODY> </HTML>
Thanks - I've tried this and still gives me the same results.
author and deputy
Joined: Jul 13, 2001
Originally posted by Henkie Maritz: Thanks - I've tried this and still gives me the same results.
Hi Henkie, I tried to access the apache soap service from MS Soap.I mean Apache Axis is Soap service provider and my VB.NET is a client. I followed two different ways. 1.I used www.asp.net to generate .vb file using webservice proxy generator,then i wrote a small .aspx file to access the .vb file(which will inturn call the axis web service) 2.Using wsdl.exe from .NET SDK,not tried yet,but the steps are feasible. So why dont you try to make use of this automated tools instead of writing code urself.This will also avoid any type casting problem.I tried sending and receiving string as input/output,Of course you have to make some changes on the code generated automatically.