473,399 Members | 2,858 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,399 software developers and data experts.

SOAP (access multiple <element name> wsdl) in Classic ASP

Hi All,

I'm using SOAP3.0. I was able to successfully call a WSDL file and get
a value properly. But when the WSDL changed to have a MULTIPLE
<element name> it was failing.

This code works BEFORE: strCurrency =
oSOAP.eServeSearch(CSTR(Request.Form("T1")))
until the WSDL file changed to have more <element name>
T1 is just a field that accepts a STRING

***** ASP ERROR due to the changes in WSDL:

Error Type:
Microsoft VBScript runtime (0x800A01C2)
Wrong number of arguments or invalid property assignment: 'strCurrency'
/soap_disp.asp, line 53


Please help me. I'm not sure if I have to use a SOAP Serializer????

Thanks in advance.....

Jeff
jparulan@gmail.com



*********** ASP CODE *************
<%

Dim strCurrency, strDialCode, strGMT

Call SoapRequest()
%>

<HTML>
<BODY>

<P>
<font face="verdana" size="-2"><b>Currency: </b> <%=strCurrency%>
</font>

</BODY>
</HTML>

<%
Function SoapRequest

If Request.ServerVariables("REQUEST_METHOD") = "POST" Then
'initialize the variables

Dim oSOAP
' Instantiate the SOAP object
Set oSOAP = Server.CreateObject("MSSOAP.SoapClient30")
oSOAP.ClientProperty("ServerHTTPRequest") = True

'**** Call the eServeInquiry.wsdl
oSOAP.mssoapinit("eeInquiry.wsdl")

oSOAP.eServeSearch(CSTR(Request.Form("T1")))

'*** if the above line is called like this, IT FAILS *******
'*** since the response returns multiple <element name> at THIS TIME
'strCurrency = oSOAP.eServeSearch(CSTR(Request.Form("T1")))

'Response.write("Test: " &
oSOAP.eServeSearch(CSTR(Request.Form("T1"))) )

set oSOAP = Nothing

End If
End Function
%>


************** WSDL FILE **************************************

<?xml version="1.0" ?>
- <definitions
targetNamespace="urn:PegaRULES:SOAP:eServeSoapPack age:eServeInquiry"
xmlns:tns="urn:PegaRULES:SOAP:eServeSoapPackage:eS erveInquiry"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns1="urn:JPM-Work:eServeInfo"
xmlns="http://schemas.xmlsoap.org/wsdl/">
- <types>
- <schema targetNamespace="urn:JPM-Work:eServeInfo"
elementFormDefault="unqualified"
xmlns="http://www.w3.org/2001/XMLSchema">
- <complexType name="pagedata">
- <sequence>
<element name="Amount" minOccurs="0" type="xsd:decimal" />
<element name="CDTID" minOccurs="0" type="xsd:string" />
<element name="CHIPSSendSequence" minOccurs="0" type="xsd:string" />
<element name="CompStatus" minOccurs="0" type="xsd:string" />
<element name="CustomerName" minOccurs="0" type="xsd:string" />
<element name="DBTID" minOccurs="0" type="xsd:string" />
<element name="ErrorParty" minOccurs="0" type="xsd:string" />
<element name="ErrorType" minOccurs="0" type="xsd:string" />
<element name="FEDOMAD" minOccurs="0" type="xsd:string" />
<element name="GFP_ID" minOccurs="0" type="xsd:long" />
<element name="InstructionType" minOccurs="0" type="xsd:string" />
<element name="OrigParty" minOccurs="0" type="xsd:string" />
<element name="SIStatusWork" minOccurs="0" type="xsd:string" />
<element name="TransactionDate" minOccurs="0" type="xsd:date" />
<element name="TransactionType" minOccurs="0" type="xsd:string" />
</sequence>
</complexType>
</schema>
- <schema
targetNamespace="urn:PegaRULES:SOAP:eServeSoapPack age:eServeInquiry"
elementFormDefault="unqualified"
xmlns="http://www.w3.org/2001/XMLSchema">
- <element name="eServeSearch">
- <complexType>
- <sequence>
<element name="CaseID" type="xsd:string" />
</sequence>
</complexType>
</element>
- <element name="eServeSearchResponse">
- <complexType>
- <sequence>
<element name="eServePage" type="ns1:pagedata" />
</sequence>
</complexType>
</element>
</schema>
</types>
- <message name="eServeSearch">
<part name="parameters" element="tns:eServeSearch" />
</message>
- <message name="eServeSearchResponse">
<part name="parameters" element="tns:eServeSearchResponse" />
</message>
- <portType name="eServeInquiryType">
- <operation name="eServeSearch">
<input message="tns:eServeSearch" />
<output message="tns:eServeSearchResponse" />
</operation>
</portType>
- <binding name="eServeInquiryBinding" type="tns:eServeInquiryType">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
- <operation name="eServeSearch">
<soap:operation style="document"
soapAction="urn:PegaRULES:SOAP:eServeSoapPackage:e ServeInquiry#eServeSearch"
/>
- <input>
<soap:body use="literal" />
</input>
- <output>
<soap:body use="literal" />
</output>
</operation>
</binding>
- <service name="eServeInquiryService">
- <port name="eServeInquiryPort" binding="tns:eServeInquiryBinding">
<soap:address
location="http://.ny..com:8889/prweb/PRSOAPServlet" />

</port>
</service>
</definitions>
Aug 30 '06 #1
3 11663
sashi
1,754 Expert 1GB
Hi there,

Microsoft VBScript runtime (0x800A01C2)
Wrong number of arguments or invalid property assignment means insufficient number of input supplied. Lets assume, the function XYZ accepts 3 input, you need to pass 3 inputs along with instead of 2 inputs. Please refer to below sample.. take care my fren.. :)

Expand|Select|Wrap|Line Numbers
  1. Function XYZ(strName, strAddress, nPhoneNo)
  2.     ... perform some action here...
  3.  End Function  
  4.  
Expand|Select|Wrap|Line Numbers
  1. 'Proper usage will be
  2. Dim strDetails
  3.     strDetails = XYZ("Name", "Address", "601667724")
  4.  
  5. 'Improper usage will be
  6.    strDetails = XYZ("Name", "601667724")
  7.  
Aug 30 '06 #2
The error is kind of misleading. I don't think the problem was "wrong # of args" but it's the "invalid prop assignment". When my team changed the WSDL to have more <element name>, the single assignment stopped working:

strCurrency = oSOAP.eServeSearch(CSTR(Request.Form("T1")))

When I un-assigned the function call, it worked, but how do I access the <element name>????
oSOAP.eServeSearch(CSTR(Request.Form("T1")))

Thanks,
Jeff

************************************************** **********************
Hi there,

Microsoft VBScript runtime (0x800A01C2)
Wrong number of arguments or invalid property assignment means insufficient number of input supplied. Lets assume, the function XYZ accepts 3 input, you need to pass 3 inputs along with instead of 2 inputs. Please refer to below sample.. take care my fren.. :)

Expand|Select|Wrap|Line Numbers
  1. Function XYZ(strName, strAddress, nPhoneNo)
  2.     ... perform some action here...
  3.  End Function  
  4.  
Expand|Select|Wrap|Line Numbers
  1. 'Proper usage will be
  2. Dim strDetails
  3.     strDetails = XYZ("Name", "Address", "601667724")
  4.  
  5. 'Improper usage will be
  6.    strDetails = XYZ("Name", "601667724")
  7.  
Aug 30 '06 #3
Hello,

You will try with below link

http://www.codeproject.com/KB/vbscript/SOAP___Classic_ASP.aspx

by,
a2z info
http://www.a2zinterviewquestions.com



The error is kind of misleading. I don't think the problem was "wrong # of args" but it's the "invalid prop assignment". When my team changed the WSDL to have more <element name>, the single assignment stopped working:

strCurrency = oSOAP.eServeSearch(CSTR(Request.Form("T1")))

When I un-assigned the function call, it worked, but how do I access the <element name>????
oSOAP.eServeSearch(CSTR(Request.Form("T1")))

Thanks,
Jeff

************************************************** **********************
Mar 17 '08 #4

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

Similar topics

3
by: Christopher | last post by:
I came across this line in a lib I am studing, it simply has class cSceneNode; all by itself. what is that line doing? I am used to seeing a declaration: MyClass test; or definition: class...
0
by: trexim | last post by:
Hi, I have a rpc operation in my WSDL: <operation name="My-Function"> <documentation>Some misc function of mine</documentation> <input message="tns:myFunctionRequest"/> <output...
8
by: SteveK | last post by:
I'm getting the error: "Cannot implicitly convert type 'MovesDBMigrate.MotionNameElementTypes' to 'int'" for this line of code: m_nameElementTableNames = "Tbl_NameCharacters"; Of course if...
0
by: Doug | last post by:
I got this as soon as I installed Vis Studio 2003, which either requires different permissions to inetpub\wwwroot or changed them during installation. I couldn't open an existing solution or...
4
by: Don Wash | last post by:
Hi All! I'm getting the following Error: No DLLs has been compiled yet and nothing in the \bin directory. So it is not the versioning problem or anything like that. And here are the...
3
by: noreponse1 | last post by:
Hello, I have a solution that contains two projects. I have 2 dlls that these projects use. Here's how it's set up: Solution -ProjectA --References ---DLLA -ProjectB
1
by: mahesh.kanakaraj | last post by:
Hi folks, I just have a doubt on whether the below DTD declaration for an element is valid or not. <!ELEMENT e_name ( ( stu * | ( vw , x ) + ) + ) > ^ ^ ^ ^ ^ ^ ...
1
by: inteladu | last post by:
I have created an object TF_T.....and I seem to be stuck at this error....please need some suggestions to overcome this.....please....very very urgent!!! thanks!!!
4
by: smadadi | last post by:
When iam trying to save changes to some of the reports i am getting the error message as 'Couldn't save currently locked by user admin on machine <name>' happening with only some of the reports not...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
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...
0
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...

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.