Hi,

if i try to login into GW 8.0.1 via SOAP with proxy option set i get the following error. My gwws.jar is the current one and normal login without a proxy works well:

Fehler beim Aufheben der Serialisierung: Unerwarteter Status im XML-Leseprogramm. Erwartet: END aber gefunden: START: {http://schemas.novell.com/2005/01/GroupWise/types}userid
at com.sun.xml.rpc.client.StreamingSender._handleRunt imeExceptionInSend(StreamingSender.java:331)
at com.sun.xml.rpc.client.StreamingSender._send(Strea mingSender.java:313)
at com.novell.groupwise.ws.GroupWisePortType_Stub.log inRequest(GroupWisePortType_Stub.java:1605)
at de.baloerrach.portal.portlet.GWSoapHelper.login(GW SoapHelper.java:322)
at de.baloerrach.portal.portlet.GWSoapHelper.access$4 (GWSoapHelper.java:243)
at de.baloerrach.portal.portlet.GWSoapHelper$LoginThr ead.run(GWSoapHelper.java:635)
Caused by: Fehler beim Aufheben der Serialisierung: Unerwarteter Status im XML-Leseprogramm. Erwartet: END aber gefunden: START: {http://schemas.novell.com/2005/01/GroupWise/types}userid
at com.sun.xml.rpc.encoding.literal.LiteralObjectSeri alizerBase.deserialize(LiteralObjectSerializerBase .java:128)
at com.novell.groupwise.ws.LoginResponse_LiteralSeria lizer.doDeserialize(LoginResponse_LiteralSerialize r.java:94)
at com.sun.xml.rpc.encoding.literal.LiteralObjectSeri alizerBase.internalDeserialize(LiteralObjectSerial izerBase.java:216)
at com.sun.xml.rpc.encoding.literal.LiteralObjectSeri alizerBase.deserialize(LiteralObjectSerializerBase .java:124)
at com.novell.groupwise.ws.GroupWisePortType_Stub._de serialize_loginRequest(GroupWisePortType_Stub.java :5278)
at com.novell.groupwise.ws.GroupWisePortType_Stub._re adFirstBodyElement(GroupWisePortType_Stub.java:472 8)
at com.sun.xml.rpc.client.StreamingSender._send(Strea mingSender.java:228)
... 4 more

(Sorry its german an it mean: Error while deserializing xml, expected was END but found was START). So the problem is thrown by LoginResponse_LiteralSerializer. The SOAP messages are the following:

<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Header>
<ans1:gwTrace xmlns:ans1="http://schemas.novell.com/2005/01/GroupWise/types">false</ans1:gwTrace>
</env:Header>
<env:Body>
<gwm:loginResponse
xmlns:gwm="http://schemas.novell.com/2005/01/GroupWise/methods"
xmlns:gwt="http://schemas.novell.com/2005/01/GroupWise/types">
<gwm:session>iIdsyS4M4Mwm1JI0</gwm:session>
<gwm:userinfo>
<gwt:name>GWAccess</gwt:name>
<gwt:email>GWAccess@dhbw-loerrach.de
</gwt:email>
<gwt:uuid>908E3C10-05DA-0000-A232-32003D00E600
</gwt:uuid>
<gwt:userid>GWAccess</gwt:userid>
</gwm:userinfo>
<gwm:gwVersion>8.0.1 </gwm:gwVersion>
<gwm:build>89145</gwm:build>
<gwm:serverUTCTime>2010-03-11T09:50:18Z
</gwm:serverUTCTime>
<gwm:status>
<gwt:code>0</gwt:code>
</gwm:status>
</gwm:loginResponse>
</env:Body>
</env:Envelope>

For a non proxy connection (that works) the answer is this:

<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Header>
<ans1:gwTrace xmlns:ans1="http://schemas.novell.com/2005/01/GroupWise/types">false</ans1:gwTrace>
</env:Header>
<env:Body>
<gwm:loginResponse
xmlns:gwm="http://schemas.novell.com/2005/01/GroupWise/methods"
xmlns:gwt="http://schemas.novell.com/2005/01/GroupWise/types">
<gwm:session>iIdsyS4M4Mwm1JI0</gwm:session>
<gwm:userinfo>
<gwt:name>GWAccess</gwt:name>
<gwt:email>GWAccess@dhbw-loerrach.de
</gwt:email>
<gwt:uuid>908E3C10-05DA-0000-A232-32003D00E600
</gwt:uuid>
<gwt:userid>GWAccess</gwt:userid>
</gwm:userinfo>
<gwm:gwVersion>8.0.1 </gwm:gwVersion>
<gwm:build>89145</gwm:build>
<gwm:serverUTCTime>2010-03-11T09:50:18Z
</gwm:serverUTCTime>
<gwm:status>
<gwt:code>0</gwt:code>
</gwm:status>
</gwm:loginResponse>
</env:Body>
</env:Envelope>

Here is the Java code that was used to perform the login:

Stub clientStub = (Stub) (new GroupwiseService_Impl().getGroupwiseSOAPPort());


clientStub._setProperty(javax.xml.rpc.Stub.ENDPOIN T_ADDRESS_PROPERTY, endpoint);


m_gwservice = (GroupWisePortType) clientStub;


com.novell.groupwise.ws.PlainText ptLogin = new PlainText();
ptLogin.setUsername(user);
ptLogin.setPassword(passwd);


Proxy proxyLogin = null;

if(proxy != null)
{


proxyLogin = new Proxy(user,passwd,proxy);

}


m_loginResponse = m_gwservice.loginRequest(proxyLogin==null?(Authent ication)ptLogin:proxyLogin /* TODO */, "de",
new BigDecimal(1.0), "BAL GWSoap Helper",gwTrace, false);

Any clues?

Thanks
Hendrik