Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / June 2005

Tip: Looking for answers? Try searching our database.

Web service reference proxy in client does not display methods

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
seeIT - 20 Jun 2005 15:49 GMT
In a client application a simple webservice (add/multiply) was added to
solution panel but proxy methods do not appear.  WSDL description in solution
panel follows:

<?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://tempuri.org/WebService1/Service1"
xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
targetNamespace="http://tempuri.org/WebService1/Service1"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
 <wsdl:types>
   <s:schema elementFormDefault="qualified"
targetNamespace="http://tempuri.org/WebService1/Service1">
     <s:element name="WebAdd">
       <s:complexType>
         <s:sequence>
           <s:element minOccurs="1" maxOccurs="1" name="x" type="s:int" />
           <s:element minOccurs="1" maxOccurs="1" name="y" type="s:int" />
         </s:sequence>
       </s:complexType>
     </s:element>
     <s:element name="WebAddResponse">
       <s:complexType>
         <s:sequence>
           <s:element minOccurs="0" maxOccurs="1" name="WebAddResult" />
         </s:sequence>
       </s:complexType>
     </s:element>
     <s:element name="WebMultiply">
       <s:complexType>
         <s:sequence>
           <s:element minOccurs="1" maxOccurs="1" name="x" type="s:int" />
           <s:element minOccurs="1" maxOccurs="1" name="y" type="s:int" />
         </s:sequence>
       </s:complexType>
     </s:element>
     <s:element name="WebMultiplyResponse">
       <s:complexType>
         <s:sequence>
           <s:element minOccurs="1" maxOccurs="1" name="WebMultiplyResult"
type="s:int" />
         </s:sequence>
       </s:complexType>
     </s:element>
   </s:schema>
 </wsdl:types>
 <wsdl:message name="WebAddSoapIn">
   <wsdl:part name="parameters" element="tns:WebAdd" />
 </wsdl:message>
 <wsdl:message name="WebAddSoapOut">
   <wsdl:part name="parameters" element="tns:WebAddResponse" />
 </wsdl:message>
 <wsdl:message name="WebMultiplySoapIn">
   <wsdl:part name="parameters" element="tns:WebMultiply" />
 </wsdl:message>
 <wsdl:message name="WebMultiplySoapOut">
   <wsdl:part name="parameters" element="tns:WebMultiplyResponse" />
 </wsdl:message>
 <wsdl:portType name="Service1Soap">
   <wsdl:operation name="WebAdd">
     <documentation xmlns="http://schemas.xmlsoap.org/wsdl/">This Method
adds x and y.</documentation>
     <wsdl:input message="tns:WebAddSoapIn" />
     <wsdl:output message="tns:WebAddSoapOut" />
   </wsdl:operation>
   <wsdl:operation name="WebMultiply">
     <documentation xmlns="http://schemas.xmlsoap.org/wsdl/">this method
multiplies x by y.</documentation>
     <wsdl:input message="tns:WebMultiplySoapIn" />
     <wsdl:output message="tns:WebMultiplySoapOut" />
   </wsdl:operation>
 </wsdl:portType>
 <wsdl:binding name="Service1Soap" type="tns:Service1Soap">
   <soap:binding transport="http://schemas.xmlsoap.org/soap/http"
style="document" />
   <wsdl:operation name="WebAdd">
     <soap:operation
soapAction="http://tempuri.org/WebService1/Service1/WebAdd" style="document"
/>
     <wsdl:input>
       <soap:body use="literal" />
     </wsdl:input>
     <wsdl:output>
       <soap:body use="literal" />
     </wsdl:output>
   </wsdl:operation>
   <wsdl:operation name="WebMultiply">
     <soap:operation
soapAction="http://tempuri.org/WebService1/Service1/WebMultiply"
style="document" />
     <wsdl:input>
       <soap:body use="literal" />
     </wsdl:input>
     <wsdl:output>
       <soap:body use="literal" />
     </wsdl:output>
   </wsdl:operation>
 </wsdl:binding>
 <wsdl:service name="Service1">
   <documentation xmlns="http://schemas.xmlsoap.org/wsdl/" />
   <wsdl:port name="Service1Soap" binding="tns:Service1Soap">
     <soap:address location="http://localhost/WebService1/Service1.asmx" />
   </wsdl:port>
Marvin Smit - 20 Jun 2005 16:39 GMT
Hi,

ehhh.... I assume you have made a small error in the "Copy-Paste" of
this WSDL since its closing "wsdl:service" and "wsdl:definitions" are
missing.

Have you tried executing the "Refresh" on the Web Reference?

Hope this helps,

Marvin Smit

>In a client application a simple webservice (add/multiply) was added to
>solution panel but proxy methods do not appear.  WSDL description in solution
[quoted text clipped - 103 lines]
>      <soap:address location="http://localhost/WebService1/Service1.asmx" />
>    </wsdl:port>
seeIT - 20 Jun 2005 18:56 GMT
You are right.  I left out the closing two lines:
 </wsdl:service>
</wsdl:definitions>

i did an update by right clicking on the reference and selecting "update web
reference" but this did not change anything.  It inly shows the .map, .disco
and .wsdl entries

> Hi,
>
[quoted text clipped - 115 lines]
> >      <soap:address location="http://localhost/WebService1/Service1.asmx" />
> >    </wsdl:port>
seeIT - 20 Jun 2005 22:01 GMT
Found my problem.  Methods are not displayed in the solution pane.  Proxy
methods are accepted in code.  Just growing pains. Thanks for the help.

> Hi,
>
[quoted text clipped - 115 lines]
> >      <soap:address location="http://localhost/WebService1/Service1.asmx" />
> >    </wsdl:port>

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.