has a sort of wizard that is responsible for creating the web service.
It produces the following WDSL file that is properly parsed by
SOAPSonar and other applications. However, when I try to bring it into
both Visual Studio 2003 and 2005 it doesn't seem to parse out the WSDL
properly.
The problem is that the method called GetItem should have one input
parameter and three output strings (in some sort of XML structure).
When VS receives this WSDL it defines a method that looks like:
Public Function GetItem(ByVal Change_ID As String, ByRef Item As
String, ByRef Status As RemedyTest.Reme dyGetCTIStatus. StatusType,
ByRef Type As String) As String
The WDSL is:
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitio ns targetNamespace ="urn:CHG_GetCT I" xmlns="http://
schemas.xmlsoap .org/wsdl/" xmlns:ns0="http ://www.edmonton.ca/
ChangeRequest.x sd" xmlns:s="urn:CH G_GetCTI" xmlns:soap="htt p://
schemas.xmlsoap .org/wsdl/soap/" xmlns:soapenc=" http://
schemas.xmlsoap .org/soap/encoding/" xmlns:wsdl="htt p://
schemas.xmlsoap .org/wsdl/" xmlns:xsd="http ://www.w3.org/2001/
XMLSchema">
<wsdl:types>
<xsd:schema elementFormDefa ult="qualified"
targetNamespace ="urn:CHG_GetCT I">
<xsd:import namespace="http ://www.edmonton.ca/ChangeRequest.x sd"/>
<xsd:element name="GetItem" type="s:GetInpu tMap"/>
<xsd:complexTyp e name="GetInputM ap">
<xsd:sequence >
<xsd:element name="Change_ID " type="xsd:strin g"/>
</xsd:sequence>
</xsd:complexType >
<xsd:element name="GetItemRe sponse" type="ns0:Chang eRequest"/>
<xsd:element name="Authentic ationInfo" type="s:Authent icationInfo"/
><xsd:complexTyp e name="Authentic ationInfo">
<xsd:sequence >
<xsd:element name="userName" type="xsd:strin g"/>
<xsd:element name="password" type="xsd:strin g"/>
<xsd:element minOccurs="0" name="authentic ation"
type="xsd:strin g"/>
<xsd:element minOccurs="0" name="locale" type="xsd:strin g"/>
<xsd:element minOccurs="0" name="timeZone" type="xsd:strin g"/>
</xsd:sequence>
</xsd:complexType >
</xsd:schema>
<xsd:schema elementFormDefa ult="qualified" targetNamespace ="http://
www.edmonton.ca/ChangeRequest.x sd" xmlns:xsd="http ://www.w3.org/2001/
XMLSchema">
<xsd:complexTyp e name="ChangeReq uest">
<xsd:sequence >
<xsd:element name="Category" type="xsd:strin g"/>
<xsd:element name="Type" type="xsd:strin g"/>
<xsd:element name="Item" type="xsd:strin g"/>
</xsd:sequence>
</xsd:complexType >
</xsd:schema>
</wsdl:types>
<wsdl:message name="ARAuthent icate">
<wsdl:part element="s:Auth enticationInfo" name="parameter s"/>
</wsdl:message>
<wsdl:message name="GetItemSo apOut">
<wsdl:part element="s:GetI temResponse" name="parameter s"/>
</wsdl:message>
<wsdl:message name="GetItemSo apIn">
<wsdl:part element="s:GetI tem" name="parameter s"/>
</wsdl:message>
<wsdl:portTyp e name="CHG_GetCT IPortType">
<wsdl:operati on name="GetItem">
<wsdl:input message="s:GetI temSoapIn"/>
<wsdl:output message="s:GetI temSoapOut"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="CHG_GetCT ISoapBinding"
type="s:CHG_Get CTIPortType">
<soap:binding style="document " transport="http ://
schemas.xmlsoap .org/soap/http"/>
<wsdl:operati on name="GetItem">
<soap:operati on soapAction="urn :CHG_GetCTI/GetItem"
style="document "/>
<wsdl:input>
<soap:header message="s:ARAu thenticate" part="parameter s"
use="literal">
</soap:header>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="CHG_GetCT IService">
<wsdl:documenta tion>
Get Category, Type and Item of a CR </wsdl:documentat ion>
<wsdl:port binding="s:CHG_ GetCTISoapBindi ng"
name="CHG_GetCT ISoap">
<soap:address location="http://blue:8080/arsys/services/
ARService?serve r=remedy_dev1we bService=CHG_Ge tCTI"/>
</wsdl:port>
</wsdl:service>
</wsdl:definition s>