468,161 Members | 1,952 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,161 developers. It's quick & easy.

WSDL import

In arranging a simple WSDL so that the types, messages, portTypes and
bindings are in one WSDL and the service in another in the manner often
described as interface and implementation, I find that when trying to 'Add a
Web Reference' to the service (implementation) WSDL in VS.Net the message :-

'No Ports or Methods were found on this page'

is displayed, and obviously I get no proxy code.

If I merge the two WSDLs back together everything is fine. So it appears
that there is a problem with the wsdl import. Here is a very simple example
which exhibits this behaviour. Can anyone see what is wrong ??

Many thanks :-)

TestInterface.wsdl
============

<definitions xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="urn:frg"
targetNamespace="urn:frg">
<types>
<xs:schema targetNamespace="urn:frg" xmlns="urn:frg" xmlns:tns="urn:frg"
elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:element name="eRequest" type="xs:string"/>
<xs:element name="eResponse" type="xs:string"/>
</xs:schema>
</types>
<message name="Req">
<part name="p1" element="tns:eRequest"/>
</message>
<message name="Resp">
<part name="p2" element="tns:eResponse"/>
</message>
<portType name="myServicePT">
<operation name="myOP">
<input message="tns:Req"/>
<output message="tns:Resp"/>
</operation>
</portType>
<binding name="myServiceBin" type="tns:myServicePT">
<soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="myOP">
<soap:operation
soapAction="http://www.polaris-uk.co.uk/AccountEnquiryPT/AccountEnquiryOpRequest"/>
<input>
<soap:body parts="p1" use="literal"/>
</input>
<output>
<soap:body parts="p2" use="literal"/>
</output>
</operation>
</binding>
</definitions>
TestImpl.wsdl
=========

<definitions xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="urn:frg2"
xmlns:frg="urn:frg" targetNamespace="urn:frg2">
<import namespace="urn:frg"
location="http://w2kserver/imarket/TestInterface.wsdl"/>
<types/>
<service name="myService">
<port name="myServicePort" binding="frg:myServiceBin">
<soap:address location="http://W2KServer/iMarket/AccountEnqFULL.wsdl"/>
</port>
</service>
</definitions>
Nov 21 '05 #1
0 1761

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by billa1972 | last post: by
reply views Thread by Jigar.Patel | last post: by
reply views Thread by gcreed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.