Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > .NET Web Services
.NET Web Services Discussions about .NET XML Web Service technologies including ASMX files, WSDL and SOAP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Web Services section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old September 11th, 2006, 08:33 PM
Registered User
Join Date: Sep 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Proxy class method calls: No error, No data!

Hi I've been experiencing troubles generating and using proxy classes to a web service in VS 2005.

I've successfully generated the correct (as far as I'm aware) classes from the wsdl document and am able to send the desired request to the web service by a proxy class method call. But, the fields of the object that are returned from the proxy class' method are uninitialized (null or zero). No error is raised. I don't understand why it is not parsed/deserialized correctly.

Please help.

Below are snippets of the wsdl doc and the soap message returned.

<?xml version="1.0" encoding="UTF-8"?>
    <schema xmlns="http://www.w3.org/2001/XMLSchema"
      <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
      <complexType name="Response">
          <element name="statusCode" type="xsd:int"/>
          <element name="message" type="xsd:string"/>
      <complexType name="resetTransferMonitorResponse">
        <complexContent><extension base="bders:Response"/></complexContent>

  <message name="resetTransferMonitorResponse">
    <part name="resetTransferMonitorReturn" type="bders:resetTransferMonitorResponse"/>
  <message name="resetTransferMonitorRequest">
    <part name="resellerId" type="xsd:int"/>
    <part name="resellerUsername" type="xsd:string"/>
    <part name="resellerPassword" type="xsd:string"/>
    <part name="frequency" type="xsd:long"/>

  <portType name="BDResellerWebServices">
    <operation name="resetTransferMonitor" parameterOrder="resellerId resellerUsername resellerPassword frequency">
      <input name="resetTransferMonitorRequest" message="bders:resetTransferMonitorRequest"/>
      <output name="resetTransferMonitorResponse" message="bders:resetTransferMonitorResponse"/>

  <binding name="BDERSSoapBinding" type="bders:BDResellerWebServices">
    <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="resetTransferMonitor">
      <wsdlsoap:operation soapAction=""/>
      <input name="resetTransferMonitorRequest">
        <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://bders"/>
      <output name="resetTransferMonitorResponse">
        <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://bders"/>

  <service name="BDERS">


<?xml version="1.0" encoding="UTF-8"?>
    <bders:resetTransferMonitorResponse xmlns:bders="http://bders">
      <bders:resetTransferMonitorReturn xsi:type="bders:resetTransferMonitorResponse">
        <bders:statusCode xsi:type="xsd:int">0</bders:statusCode>
        <bders:message xsi:type="xsd:string">Will monitor every 21600 seconds.</bders:message>

Similar Threads
Thread Thread Starter Forum Replies Last Post
program that calls its method automatically mfahadwallam Java Basics 3 January 29th, 2008 06:50 AM
complile error : method or data member not found! Tasha Access VBA 6 May 1st, 2007 03:49 PM
Method calls within same class w/Interface gmontanaro C# 0 April 6th, 2006 05:44 PM
object parameters to remote method calls DotNetJunk General .NET 1 April 29th, 2005 04:02 AM
Third party program library method calls invocatio yeeck VB Components 0 June 20th, 2003 01:33 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.