> Ensure that the proxy class generated is with the latest WSDL.
Can you shed some more light on what is the solution that you are talking
about and the exe is executed where?
Thanks for your reply.
The proxy class is from the latest WSDL.
The .exe is executed in a windows xp environment, forgot to mention that.
The solution is a document/literal web service that is supposed to log a
user in. The client supplies a username and a password.
The code for the client:
MainController service = new MainController();
service.Url = "http://10.0.102.112:8080/trim/ws";
try
{
checkUserAccessLogin login = new checkUserAccessLogin();
login.String_1 = brukernavn.Text;
login.String_2 = passord.Text;
checkUserAccessLoginResponse response =
service.checkUserAccessLogin(login);
Users user = response.result;
}
catch (Exception ex)
{
MessageBox.Show("ERROR: " + ex.Message);
}
relevant parts of the WSDL:
<complexType name="checkUserAccessLogin">
−
<sequence>
<element name="String_1" nillable="true" type="string"/>
<element name="String_2" nillable="true" type="string"/>
</sequence>
</complexType>
<element name="checkUserAccessLogin" type="tns:checkUserAccessLogin"/>
<complexType name="Users">
−
<sequence>
<element name="address" nillable="true" type="string"/>
<element name="cellPhone" nillable="true" type="string"/>
<element name="email" nillable="true" type="string"/>
<element name="firstName" nillable="true" type="string"/>
<element name="groupID" nillable="true" type="int"/>
<element name="homePhone" nillable="true" type="string"/>
<element name="isActive" type="int"/>
<element name="isAdmin" type="int"/>
<element name="isDeleted" type="int"/>
<element name="language" nillable="true" type="string"/>
<element name="lastIP" nillable="true" type="string"/>
<element name="lastLogin" nillable="true" type="string"/>
<element name="lastName" nillable="true" type="string"/>
<element name="position" nillable="true" type="string"/>
<element name="postNo" nillable="true" type="string"/>
<element name="postRegion" nillable="true" type="string"/>
<element name="userID" nillable="true" type="int"/>
<element name="userName" nillable="true" type="string"/>
<element name="userPass" nillable="true" type="string"/>
<element name="workPhone" nillable="true" type="string"/>
</sequence>
</complexType>
</types>
−
<message name="MainControllerInterface_checkUserAccessLogin ">
<part element="ns1:checkUserAccessLogin" name="parameters"/>
</message>
<operation name="checkUserAccessLogin">
<input message="tns:MainControllerInterface_checkUserAcce ssLogin"/>
<output message="tns:MainControllerInterface_checkUserAcce ssLoginResponse"/>
</operation>
<soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
−
<operation name="checkUserAccessLogin">
<soap:operation soapAction=""/>
−
<input>
<soap:body use="literal"/>
</input>
−
<output>
<soap:body use="literal"/>
</output>
</operation>
hope this helps.