Accessing WSDL through NetBeans servlet
Hello,
I'm really new to WSDL and need some clarification. I am trying to access WebServices through NetBeans-generated servlet and the login() method supposed to take userId and password:
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<StatusHeader xmlns="http://ws.globaltsg.com/TSGWebServices">
<clientHostAddress>string</clientHostAddress>
<serverRequestStartTime>dateTime</serverRequestStartTime>
<serverRequestEndTime>dateTime</serverRequestEndTime>
<serverVersion>unsignedInt</serverVersion>
<internalRequestId>unsignedInt</internalRequestId>
</StatusHeader>
</soap:Header>
<soap:Body>
<Login xmlns="http://ws.globaltsg.com/TSGWebServices">
<request>
<agencyId>string</agencyId>
<userName>string</userName>
<userPassword>string</userPassword>
</request>
</Login>
</soap:Body>
</soap:Envelope>
But all I get is a request_1 variable as parameter for login() function
try{// Call Web Service Operation
com.constellation1.WebService service =new com.constellation1.WebService();
com.constellation1.WebServiceSoap port = service.getWebServiceSoap();
// TODO initialize WS operation arguments here
com.constellation1.LoginRequest request_1 =new com.constellation1.LoginRequest();
port.login(request_1);
}catch (Exception ex){
// TODO handle custom exceptions here
}
My question is: How can I make the request_1 variable contain login information such as userId and password?
Please help,
Victor.
Message was edited by:
vic_sk

