By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,771 Members | 1,709 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,771 IT Pros & Developers. It's quick & easy.

Unable to consume a web service

P: n/a
Hello,

I have a set of web services running on Java server that are exposed
through axis 1.2.1. I can invoke these services in browser and through
a java test client. However, when I try to consume them in VB .NET I
get objects with nothing in them. Interestingly, if I call a webservice
that returns a string, then it all works fine. I have pasted the wsdl
file for review. Any suggestions would be greatly appreciated. I used
the wsdl.exe /l:VB utility to create the VB .NET class to consume the
service.

Regards,
Leslie

<?xml version="1.0" encoding="UTF-8"?>

<wsdl:definitions
targetNamespace="urn:AuthLogin"
xmlns:tns="urn:AuthLogin"
xmlns:typens="urn:AuthLogin"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">

<!-- type defs -->
<wsdl:types>
<schema elementFormDefault="qualified"
targetNamespace="urn:AuthLogin"
xmlns="http://www.w3.org/2001/XMLSchema">
<element name="getUserId">
<complexType>
<sequence>
<element name="serviceId" type="xsd:string"/>
<element name="login" type="xsd:string"/>
<element name="password" type="xsd:string"/>
</sequence>
</complexType>
</element>

<element name="getUserIdResponse">
<complexType>
<sequence>
<element name="getUserIdReturn" type="xsd:string"/>
</sequence>
</complexType>
</element>

<element name="autoResetPassword">
<complexType>
<sequence>
<element name="serviceId" type="xsd:string"/>
<element name="login" type="xsd:string"/>
</sequence>
</complexType>
</element>

<element name="autoResetPasswordResponse">
<complexType>
<sequence>
<element name="autoResetPasswordReturn" type="xsd:string"/>
</sequence>
</complexType>
</element>

<element name="getLogin">
<complexType>
<sequence>
<element name="serviceId" type="xsd:string"/>
<element name="login" type="xsd:string"/>
</sequence>
</complexType>
</element>

<element name="getLoginResponse">
<complexType>
<sequence>
<element name="getLoginReturn" type="tns:WSLoginValue"/>
</sequence>
</complexType>
</element>

<complexType name="WSLoginValue">
<sequence>
<element name="authFailureCount" type="xsd:int"/>
<element name="changePassword" nillable="true"
type="xsd:dateTime"/>
<element name="createDate" nillable="true" type="xsd:dateTime"/>
<element name="createdBy" nillable="true" type="xsd:string"/>
<element name="currentLoginHost" nillable="true"
type="xsd:string"/>
<element name="gracePeriodExp" nillable="true"
type="xsd:dateTime"/>
<element name="guest" type="xsd:boolean"/>
<element name="lastAuthAttempt" nillable="true"
type="xsd:dateTime"/>
<element name="locked" type="xsd:boolean"/>
<element name="login" nillable="true" type="xsd:string"/>
<element name="newUser" type="xsd:boolean"/>
<element name="password" nillable="true" type="xsd:string"/>
<element name="passwordEquivalentToken" nillable="true"
type="xsd:string"/>
<element name="passwordExp" nillable="true" type="xsd:dateTime"/>
<element name="resetPassword" type="xsd:boolean"/>
<element name="service" nillable="true" type="xsd:string"/>
<element name="status" nillable="true" type="xsd:string"/>
<element name="token" nillable="true" type="xsd:string"/>
<element name="userId" nillable="true" type="xsd:string"/>
</sequence>
</complexType>

<element name="removeLogin">
<complexType>
<sequence>
<element name="serviceId" type="xsd:string"/>
<element name="loginId" type="xsd:string"/>
</sequence>
</complexType>
</element>

<element name="removeLoginResponse">
<complexType/>
</element>

<element name="getAllLogins">
<complexType>
<sequence>
<element name="userId" type="xsd:string"/>
</sequence>
</complexType>
</element>

<element name="getAllLoginsResponse">
<complexType>
<sequence>
<element maxOccurs="unbounded" name="getAllLoginsReturn"
type="typens:WSLoginValue"/>
</sequence>
</complexType>
</element>
<element name="logout">
<complexType>
<sequence>
<element name="userId" type="xsd:string"/>
</sequence>
</complexType>
</element>

<element name="logoutResponse">
<complexType/>
</element>

<element name="addLogin">
<complexType>
<sequence>
<element name="loginValue" type="typens:WSLoginValue"/>
</sequence>
</complexType>
</element>

<element name="addLoginResponse">
<complexType/>
</element>

<element name="updateLogin">
<complexType>
<sequence>
<element name="lv" type="typens:WSLoginValue"/>
</sequence>
</complexType>
</element>

<element name="updateLoginResponse">
<complexType/>
</element>

<element name="encrypt">
<complexType>
<sequence>
<element name="clearText" type="xsd:string"/>
</sequence>
</complexType>
</element>

<element name="encryptResponse">
<complexType>
<sequence>
<element name="encryptReturn" type="xsd:string"/>
</sequence>
</complexType>
</element>

<element name="decrypt">
<complexType>
<sequence>
<element name="token" type="xsd:string"/>
</sequence>
</complexType>
</element>

<element name="decryptResponse">
<complexType>
<sequence>
<element name="decryptReturn" type="xsd:string"/>
</sequence>
</complexType>
</element>

</schema>

</wsdl:types>
<!-- message -->

<wsdl:message name="getLoginMsg">

<wsdl:part element="typens:getLogin" name="parameters"/>

</wsdl:message>

<wsdl:message name="getLoginResponseMsg">

<wsdl:part element="typens:getLoginResponse" name="parameters"/>

</wsdl:message>

<wsdl:message name="logoutMsg">

<wsdl:part element="typens:logout" name="parameters"/>

</wsdl:message>

<wsdl:message name="logoutResponseMsg">

<wsdl:part element="typens:logoutResponse" name="parameters"/>

</wsdl:message>

<wsdl:message name="autoResetPasswordMsg">

<wsdl:part element="typens:autoResetPassword" name="parameters"/>

</wsdl:message>

<wsdl:message name="autoResetPasswordResponseMsg">

<wsdl:part element="typens:autoResetPasswordResponse"
name="parameters"/>

</wsdl:message>

<wsdl:message name="getUserIdMsg">

<wsdl:part element="typens:getUserId" name="parameters"/>

</wsdl:message>
<wsdl:message name="getUserIdResponseMsg">

<wsdl:part element="typens:getUserIdResponse" name="parameters"/>

</wsdl:message>

<wsdl:message name="removeLoginMsg">

<wsdl:part element="typens:removeLogin" name="parameters"/>

</wsdl:message>

<wsdl:message name="removeLoginResponseMsg">

<wsdl:part element="tns:removeLoginResponse" name="parameters"/>

</wsdl:message>

<wsdl:message name="updateLoginMsg">

<wsdl:part element="typens:updateLogin" name="parameters"/>

</wsdl:message>

<wsdl:message name="updateLoginResponseMsg">

<wsdl:part element="typens:updateLoginResponse"
name="parameters"/>

</wsdl:message>

<wsdl:message name="addLoginMsg">

<wsdl:part element="typens:addLogin" name="parameters"/>

</wsdl:message>

<wsdl:message name="addLoginResponseMsg">

<wsdl:part element="typens:addLoginResponse" name="parameters"/>

</wsdl:message>

<wsdl:message name="getAllLoginsMsg">

<wsdl:part element="typens:getAllLogins" name="parameters"/>

</wsdl:message>

<wsdl:message name="getAllLoginsResponseMsg">

<wsdl:part element="typens:getAllLoginsResponse"
name="parameters"/>

</wsdl:message>

<wsdl:message name="encryptMsg">

<wsdl:part element="typens:encrypt" name="parameters"/>

</wsdl:message>

<wsdl:message name="encryptResponseMsg">

<wsdl:part element="typens:encryptResponse" name="parameters"/>

</wsdl:message>

<wsdl:message name="decryptMsg">

<wsdl:part element="typens:decrypt" name="parameters"/>

</wsdl:message>

<wsdl:message name="decryptResponseMsg">

<wsdl:part element="typens:decryptResponse" name="parameters"/>

</wsdl:message>
<!-- port type -->

<wsdl:portType name="AuthLogin">
<wsdl:operation name="getUserId">

<wsdl:input message="tns:getUserIdMsg"
name="getUserIdRequest"/>

<wsdl:output message="tns:getUserIdResponseMsg"
name="getUserIdResponse"/>

</wsdl:operation>

<wsdl:operation name="autoResetPassword">

<wsdl:input message="tns:autoResetPasswordMsg"
name="autoResetPasswordRequest"/>

<wsdl:output message="tns:autoResetPasswordResponseMsg"
name="autoResetPasswordResponse"/>

</wsdl:operation>

<wsdl:operation name="getLogin">

<wsdl:input message="tns:getLoginMsg" name="getLoginRequest"/>

<wsdl:output message="tns:getLoginResponseMsg"
name="getLoginResponse"/>

</wsdl:operation>

<wsdl:operation name="removeLogin">

<wsdl:input message="tns:removeLoginMsg"
name="removeLoginRequest"/>

<wsdl:output message="tns:removeLoginResponseMsg"
name="removeLoginResponse"/>

</wsdl:operation>

<wsdl:operation name="getAllLogins">

<wsdl:input message="tns:getAllLoginsMsg"
name="getAllLoginsRequest"/>

<wsdl:output message="tns:getAllLoginsResponseMsg"
name="getAllLoginsResponse"/>

</wsdl:operation>
<wsdl:operation name="logout">

<wsdl:input message="tns:logoutMsg" name="logoutRequest"/>

<wsdl:output message="tns:logoutResponseMsg"
name="logoutResponse"/>

</wsdl:operation>

<wsdl:operation name="addLogin">

<wsdl:input message="tns:addLoginMsg" name="addLoginRequest"/>

<wsdl:output message="tns:addLoginResponseMsg"
name="addLoginResponse"/>

</wsdl:operation>

<wsdl:operation name="updateLogin">

<wsdl:input message="tns:updateLoginMsg"
name="updateLoginRequest"/>

<wsdl:output message="tns:updateLoginResponseMsg"
name="updateLoginResponse"/>

</wsdl:operation>

<wsdl:operation name="encrypt">

<wsdl:input message="tns:encryptMsg" name="encryptRequest"/>

<wsdl:output message="tns:encryptResponseMsg"
name="encryptResponse"/>

</wsdl:operation>

<wsdl:operation name="decrypt">

<wsdl:input message="tns:decryptMsg" name="decryptRequest"/>

<wsdl:output message="tns:decryptResponseMsg"
name="decryptResponse"/>

</wsdl:operation>

</wsdl:portType>
<!-- binding -->

<wsdl:binding name="AuthLoginSoapBinding" type="tns:AuthLogin">

<wsdlsoap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="getUserId">

<wsdlsoap:operation soapAction=""/>

<wsdl:input name="getUserIdRequest">

<wsdlsoap:body use="literal"/>

</wsdl:input>

<wsdl:output name="getUserIdResponse">

<wsdlsoap:body use="literal"/>

</wsdl:output>

</wsdl:operation>

<wsdl:operation name="autoResetPassword">

<wsdlsoap:operation soapAction=""/>

<wsdl:input name="autoResetPasswordRequest">

<wsdlsoap:body use="literal"/>

</wsdl:input>

<wsdl:output name="autoResetPasswordResponse">

<wsdlsoap:body use="literal"/>

</wsdl:output>

</wsdl:operation>

<wsdl:operation name="getLogin">

<wsdlsoap:operation soapAction=""/>

<wsdl:input name="getLoginRequest">

<wsdlsoap:body use="literal"/>

</wsdl:input>

<wsdl:output name="getLoginResponse">

<wsdlsoap:body use="literal"/>

</wsdl:output>

</wsdl:operation>

<wsdl:operation name="removeLogin">

<wsdlsoap:operation soapAction=""/>

<wsdl:input name="removeLoginRequest">

<wsdlsoap:body use="literal"/>

</wsdl:input>

<wsdl:output name="removeLoginResponse">

<wsdlsoap:body use="literal"/>

</wsdl:output>

</wsdl:operation>

<wsdl:operation name="getAllLogins">

<wsdlsoap:operation soapAction=""/>

<wsdl:input name="getAllLoginsRequest">

<wsdlsoap:body use="literal"/>

</wsdl:input>

<wsdl:output name="getAllLoginsResponse">

<wsdlsoap:body use="literal"/>

</wsdl:output>

</wsdl:operation>
<wsdl:operation name="logout">

<wsdlsoap:operation soapAction=""/>

<wsdl:input name="logoutRequest">

<wsdlsoap:body use="literal"/>

</wsdl:input>

<wsdl:output name="logoutResponse">

<wsdlsoap:body use="literal"/>

</wsdl:output>

</wsdl:operation>

<wsdl:operation name="addLogin">

<wsdlsoap:operation soapAction=""/>

<wsdl:input name="addLoginRequest">

<wsdlsoap:body use="literal"/>

</wsdl:input>

<wsdl:output name="addLoginResponse">

<wsdlsoap:body use="literal"/>

</wsdl:output>

</wsdl:operation>

<wsdl:operation name="updateLogin">

<wsdlsoap:operation soapAction=""/>

<wsdl:input name="updateLoginRequest">

<wsdlsoap:body use="literal"/>

</wsdl:input>

<wsdl:output name="updateLoginResponse">

<wsdlsoap:body use="literal"/>

</wsdl:output>

</wsdl:operation>

<wsdl:operation name="encrypt">

<wsdlsoap:operation soapAction=""/>

<wsdl:input name="encryptRequest">

<wsdlsoap:body use="literal"/>

</wsdl:input>

<wsdl:output name="encryptResponse">

<wsdlsoap:body use="literal"/>

</wsdl:output>

</wsdl:operation>

<wsdl:operation name="decrypt">

<wsdlsoap:operation soapAction=""/>

<wsdl:input name="decryptRequest">

<wsdlsoap:body use="literal"/>

</wsdl:input>

<wsdl:output name="decryptResponse">

<wsdlsoap:body use="literal"/>

</wsdl:output>

</wsdl:operation>

</wsdl:binding>

<wsdl:service name="AuthLoginService">

<wsdl:port binding="tns:AuthLoginSoapBinding" name="AuthLogin">

<wsdlsoap:address
location="http://localhost:9082/axis/services/AuthLogin"/>

</wsdl:port>

</wsdl:service>

</wsdl:definitions>

Nov 23 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.