Advertisement

01.02.2007 at 01:58PM PST, ID: 22108775
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.4

wsdl and classic ASP (Simple)

Asked by Hojoformo in Active Server Pages (ASP)

Tags: , , ,

Can someone help me with defining classic ASP logic for retrieving  data from a ASP.NET web service WSDL using SOAP. I am not sure I am calling event and passing the variables correcly.  I just need to call the ASP.NET web service with 5 parmeters and accept the result set.  

     Dim oSOAP
     Dim objSoapClient
     Dim AccountNumber = 1234
     Dim BillMonth = 12
     Dim BillYear = 12
     Dim StartDate = "2/1/2006"
     Dim EndDate = "2/28/2006"
     Dim CallMethod

     'Create a SOAP client and callthe C# web services)
     SET objSoapClient = Server.CreateObject("MSSOAP.SoapClient")
     objSoapClient.ClientProperty("ServerHTTPRequest") = True

    Call objSoapClient.mssoapinit("http://ua-www.energydirect.com/ENetBillCalc.asmx?WSDL", "BillCalc")

    'Now I want to pass my selection fields to the web services and return results to the results table.  

        CallMethod = objSoapClient.CalculateBill(results, "AccountNumber" , "BillMonth", "BillYear", "StartDate", "EndDate")  

        Is this correct?  Is CalculateBill the correct event to call from the WSDL below?  

     response.write(results)

 Here is the WSDL

<?xml version="1.0" encoding="utf-8" ?>
- <wsdl:definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://BillGen.com/ENetBillCalc/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" targetNamespace="http://BillGen.com/ENetBillCalc/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
- <wsdl:types>
- <s:schema elementFormDefault="qualified" targetNamespace="http://BillGen.com/ENetBillCalc/">
- <s:element name="CalculateBill">
- <s:complexType>
- <s:sequence>
  <s:element minOccurs="0" maxOccurs="1" name="AccountNumber" type="s:string" />
  <s:element minOccurs="1" maxOccurs="1" name="BillMonth" type="s:int" />
  <s:element minOccurs="1" maxOccurs="1" name="BillYear" type="s:int" />
  <s:element minOccurs="1" maxOccurs="1" name="StartDate" type="s:dateTime" />
  <s:element minOccurs="1" maxOccurs="1" name="EndDate" type="s:dateTime" />
  </s:sequence>
  </s:complexType>
  </s:element>
- <s:element name="CalculateBillResponse">
- <s:complexType>
- <s:sequence>
  <s:element minOccurs="1" maxOccurs="1" name="ResultCode" type="s:int" />
  <s:element minOccurs="0" maxOccurs="1" name="ResultMessage" type="s:string" />
  <s:element minOccurs="0" maxOccurs="1" name="RateName" type="s:string" />
  <s:element minOccurs="1" maxOccurs="1" name="LineItemCount" type="s:int" />
  <s:element minOccurs="0" maxOccurs="1" name="LineItems" type="tns:ArrayOfLineItem" />
  </s:sequence>
  </s:complexType>
  </s:element>
- <s:complexType name="ArrayOfLineItem">
- <s:sequence>
  <s:element minOccurs="0" maxOccurs="unbounded" name="LineItem" nillable="true" type="tns:LineItem" />
  </s:sequence>
  </s:complexType>
- <s:complexType name="LineItem">
- <s:sequence>
  <s:element minOccurs="1" maxOccurs="1" name="LineNumber" type="s:int" />
  <s:element minOccurs="0" maxOccurs="1" name="Description" type="s:string" />
  <s:element minOccurs="0" maxOccurs="1" name="Amount" type="s:string" />
  <s:element minOccurs="0" maxOccurs="1" name="AmountUnit" type="s:string" />
  <s:element minOccurs="0" maxOccurs="1" name="Rate" type="s:string" />
  <s:element minOccurs="0" maxOccurs="1" name="RateUnit" type="s:string" />
  <s:element minOccurs="0" maxOccurs="1" name="NetAmount" type="s:string" />
  <s:element minOccurs="0" maxOccurs="1" name="ParameterCode" type="s:string" />
  </s:sequence>
  </s:complexType>
  <s:element name="BGLoginParams" type="tns:BGLoginParams" />
- <s:complexType name="BGLoginParams">
- <s:sequence>
  <s:element minOccurs="0" maxOccurs="1" name="username" type="s:string" />
  <s:element minOccurs="0" maxOccurs="1" name="password" type="s:string" />
  </s:sequence>
  </s:complexType>
  </s:schema>
  </wsdl:types>
- <wsdl:message name="CalculateBillSoapIn">
  <wsdl:part name="parameters" element="tns:CalculateBill" />
  </wsdl:message>
- <wsdl:message name="CalculateBillSoapOut">
  <wsdl:part name="parameters" element="tns:CalculateBillResponse" />
  </wsdl:message>
- <wsdl:message name="CalculateBillBGLoginParams">
  <wsdl:part name="BGLoginParams" element="tns:BGLoginParams" />
  </wsdl:message>
- <wsdl:portType name="BGBillCalcSoap">
- <wsdl:operation name="CalculateBill">
  <wsdl:input message="tns:CalculateBillSoapIn" />
  <wsdl:output message="tns:CalculateBillSoapOut" />
  </wsdl:operation>
  </wsdl:portType>
- <wsdl:binding name="BGBillCalcSoap" type="tns:BGBillCalcSoap">
  <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
- <wsdl:operation name="CalculateBill">
  <soap:operation soapAction="http://BillGen.com/ENetBillCalc/CalculateBill" style="document" />
- <wsdl:input>
  <soap:body use="literal" />
  <soap:header message="tns:CalculateBillBGLoginParams" part="BGLoginParams" use="literal" />
  </wsdl:input>
- <wsdl:output>
  <soap:body use="literal" />
  </wsdl:output>
  </wsdl:operation>
  </wsdl:binding>
- <wsdl:service name="BGBillCalc">
- <wsdl:port name="BGBillCalcSoap" binding="tns:BGBillCalcSoap">
  <soap:address location="http://ua-www.energydirect.com:9443/ENetBillCalc.asmx" />
  </wsdl:port>
  </wsdl:service>
  </wsdl:definitions>


Start Free Trial
 
Loading Advertisement...
 
[+][-]01.02.2007 at 03:46PM PST, ID: 18232254

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.03.2007 at 08:15AM PST, ID: 18236284

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.03.2007 at 11:21AM PST, ID: 18238021

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.03.2007 at 01:50PM PST, ID: 18239242

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.03.2007 at 02:32PM PST, ID: 18239585

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Active Server Pages (ASP)
Tags: asp, wsdl, complextype, classic
Sign Up Now!
Solution Provided By: SquareHead
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32