all groups > dotnet web services > march 2007 >
You're in the

dotnet web services

group:

WSDL not properly parsed


WSDL not properly parsed HYPERVIEW NO[at]SPAM hotmail.com
3/21/2007 11:55:58 AM
dotnet web services:
I am generating a web service from an application called Remedy. It
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.RemedyGetCTIStatus.StatusType,
ByRef Type As String) As String


The WDSL is:

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="urn:CHG_GetCTI" xmlns="http://
schemas.xmlsoap.org/wsdl/" xmlns:ns0="http://www.edmonton.ca/
ChangeRequest.xsd" xmlns:s="urn:CHG_GetCTI" xmlns:soap="http://
schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://
schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://
schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/
XMLSchema">
<wsdl:types>
<xsd:schema elementFormDefault="qualified"
targetNamespace="urn:CHG_GetCTI">
<xsd:import namespace="http://www.edmonton.ca/ChangeRequest.xsd"/>
<xsd:element name="GetItem" type="s:GetInputMap"/>
<xsd:complexType name="GetInputMap">
<xsd:sequence>
<xsd:element name="Change_ID" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="GetItemResponse" type="ns0:ChangeRequest"/>
<xsd:element name="AuthenticationInfo" type="s:AuthenticationInfo"/
[quoted text, click to view]
<xsd:complexType name="AuthenticationInfo">
<xsd:sequence>
<xsd:element name="userName" type="xsd:string"/>
<xsd:element name="password" type="xsd:string"/>
<xsd:element minOccurs="0" name="authentication"
type="xsd:string"/>
<xsd:element minOccurs="0" name="locale" type="xsd:string"/>
<xsd:element minOccurs="0" name="timeZone" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
<xsd:schema elementFormDefault="qualified" targetNamespace="http://
www.edmonton.ca/ChangeRequest.xsd" xmlns:xsd="http://www.w3.org/2001/
XMLSchema">
<xsd:complexType name="ChangeRequest">
<xsd:sequence>
<xsd:element name="Category" type="xsd:string"/>
<xsd:element name="Type" type="xsd:string"/>
<xsd:element name="Item" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
</wsdl:types>
<wsdl:message name="ARAuthenticate">
<wsdl:part element="s:AuthenticationInfo" name="parameters"/>
</wsdl:message>
<wsdl:message name="GetItemSoapOut">
<wsdl:part element="s:GetItemResponse" name="parameters"/>
</wsdl:message>
<wsdl:message name="GetItemSoapIn">
<wsdl:part element="s:GetItem" name="parameters"/>
</wsdl:message>
<wsdl:portType name="CHG_GetCTIPortType">
<wsdl:operation name="GetItem">
<wsdl:input message="s:GetItemSoapIn"/>
<wsdl:output message="s:GetItemSoapOut"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="CHG_GetCTISoapBinding"
type="s:CHG_GetCTIPortType">
<soap:binding style="document" transport="http://
schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="GetItem">
<soap:operation soapAction="urn:CHG_GetCTI/GetItem"
style="document"/>
<wsdl:input>
<soap:header message="s:ARAuthenticate" part="parameters"
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_GetCTIService">
<wsdl:documentation>
Get Category, Type and Item of a CR </wsdl:documentation>
<wsdl:port binding="s:CHG_GetCTISoapBinding"
name="CHG_GetCTISoap">
<soap:address location="http://blue:8080/arsys/services/
ARService?server=remedy_dev1webService=CHG_GetCTI"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
Re: WSDL not properly parsed HYPERVIEW NO[at]SPAM hotmail.com
3/21/2007 12:05:13 PM
Oops, the function that VS defines looks like:

Public Function GetItem(ByVal Change_ID As String, ByRef Type As
String, ByRef Item As String) As String
AddThis Social Bookmark Button