View Single Post
Old 08-16-2011, 06:40 PM   #2 (permalink)
ShadowGAP
New Member
 
Join Date: Aug 2011
Model: 8520
PIN: N/A
Carrier: Vodafone
Posts: 2
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Problem using a java stub to consume a webservice

The message traced by tcpmon looks like this:

Quote:
<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope xmlnssi="" xmlnssd="" xmlns:soapenv="" xmlns:tns="">
<soapenv:Body>
<tns:MobServices___MobLoginUser>
<tns:sUsername>testmob</tns:sUsername>
<tns:sPassword>1234</tns:sPassword>
<tns:sToken> </tns:sToken>
</tns:MobServices___MobLoginUser>
</soapenv:Body>
</soapenv:Envelope>
which seems fine and the response of the server:

Quote:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="" xmlnssd="" xmlnssi="" xmlns:HNS="" xmlns:v1="">
<SOAP-ENV:Header>
<ROClientIDHeader xmlns="urn:MobCompassLibrary" SOAP-ENV:mustUnderstand="0">
<ID>{7BDD717F-C90E-4055-B04C-641330A9E54A}</ID>
</ROClientIDHeader>
</SOAP-ENV:Header>
<SOAP-ENV:Body xmlns:ro="">
<v1:MobServices___MobLoginUserResponse>
<v1:Result>
<v1:bLogged>true</v1:bLogged>
<v1:LoginMessage/>
<v1:userID>69</v1:userID>
<v1:userName>Test</v1:userName>
<v1:userNameFirst>Mobile</v1:userNameFirst>
<v1:userInits>SS </v1:userInits>
<v1:UserToken>MOB-9472797549D4461282251E70C5B1F8ED</v1:UserToken>
<v1:bAdministrator>false</v1:bAdministrator>
<v1:MainDepartmentID>18</v1:MainDepartmentID>
<v1:UsedLicences>6</v1:UsedLicences>
<v1:TotalLicences>80</v1:TotalLicences>
<v1:Sessions>
<v1:TExistingSession>
<v1:idRow>16129</v1:idRow>
<v1:UserToken>MOB-D0EF9302967240658FCFD54316C4A596</v1:UserToken>
<v1ateStart>2011-08-08T14:59:06.897</v1ateStart>
<v1:ReferenceCount>1</v1:ReferenceCount>
<v1:ToBeKilled>false</v1:ToBeKilled>
</v1:TExistingSession>
<v1:TExistingSession>
<v1:idRow>16130</v1:idRow>
<v1:UserToken>MOB-B46FF60735F5457EA72D9C7A2136DA83</v1:UserToken>
<v1ateStart>2011-08-08T15:04:11.35</v1ateStart>
<v1:ReferenceCount>1</v1:ReferenceCount>
<v1:ToBeKilled>false</v1:ToBeKilled>
</v1:TExistingSession>
</v1:Sessions>
<v1romptForSessionKilling>true</v1romptForSessionKilling>
<v1:bCorrectCredentials>true</v1:bCorrectCredentials>
</v1:Result>
</v1:MobServices___MobLoginUserResponse>
</SOAP-ENV:Body></SOAP-ENV:Envelope>
Offline   Reply With Quote