Miles,
the return value -10 is only thrown if the user cannot be found.
>From the source Code:
String hql = "SELECT c from Users AS c " +
"WHERE " +
"(c.login LIKE :userOrEmail OR c.adresses.email LIKE
:userOrEmail ) " +
"AND c.deleted != :deleted";
Object idf = HibernateUtil.createSession();
Session session = HibernateUtil.getSession();
Transaction tx = session.beginTransaction();
Query query = session.createQuery(hql);
query.setString("userOrEmail", userOrEmail);
query.setString("deleted", "true");
List<Users> ll = query.list();
tx.commit();
HibernateUtil.closeSession(idf);
log.debug("debug SIZE: " + ll.size());
if (ll.size()==0) {
return new Long(-10);
....
As you can see something is definitely wrong with the account that you pass
or the params never reach the server the way you expect it.
Sebastian
2010/11/9 HMiles <[email protected]>
> I continue to be unsecussful at accessing openmeting using the
> soapgatewaymethod.
> Here is my raw http header and my raw xml that is sent "captured by
> using wireshark". Please can someone see what I am diong wroing?
>
> GET /test/OMLoginUserSGMethod.asp HTTP/1.1
>
> Accept: image/gif, image/jpeg, image/pjpeg, image/pjpeg, application/x-
> shockwave-flash, application/vnd.ms-excel, application/vnd.ms-
> powerpoint, application/msword, application/x-ms-application,
> application/x-ms-xbap, application/vnd.ms-xpsdocument, application/xaml
> +xml, */*
>
> Accept-Language: en-us
>
> User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/
> 4.0; FunWebProducts; .NET CLR 1.1.4322; InfoPath.1; .NET CLR
> 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 2.0.50727; .NET CLR
> 3.0.4506.2152; .NET CLR 3.5.30729; OfficeLiveConnector.1.3;
> OfficeLivePatch.0.0; yie8; AskTB5.6)
>
> Accept-Encoding: gzip, deflate
>
> Host: www.harvest4christ.net
>
> Connection: Keep-Alive
>
> Cookie: __qca=P0-1395927947-1288360127109;
> ASPSESSIONIDQQTTAQRA=FOODEBKDDDEJKJJBFOMDNECA;
> ASPSESSIONIDSSSTBQRB=NAINFCODIBHKDNLLNLKJNPII;
> ASPSESSIONIDQQRTAQQB=MINDDEBAONHCDBOODDNGDOMG
>
>
>
> HTTP/1.1 200 OK
>
> Date: Mon, 08 Nov 2010 22:52:09 GMT
>
> Server: Microsoft-IIS/6.0
>
> X-Powered-By: ASP.NET
>
> Content-Length: 183
>
> Content-Type: text/html
>
> Cache-control: private
>
> <?xml version="1.0" encoding="utf-8" standalone="no"?><SOAP-
> ENV:Envelope xmlns:SOAP-ENV="http://services.axis.openmeetings.org"
> xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:ns2="http://
> services.axis.openmeetings.org" xmlns:ns1="http://
> basic.beans.data.app.openmeetings.org/xsd" xmlns:wsaw="http://
> www.w3.org/2006/05/addressing/wsdl" xmlns:http="http://
> schemas.xmlsoap.org/wsdl/http/" xmlns:ns0="http://
> basic.beans.hibernate.app.openmeetings.org/xsd" xmlns:xs="http://
> www.w3.org/2001/XMLSchema" xmlns:mime="http://schemas.xmlsoap.org/wsdl/
> mime/ <http://schemas.xmlsoap.org/wsdl/%0Amime/>" xmlns:soap="
> http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"><SOAP-
> ENV:Body><ns2:loginUser xmlns:ns2="http://
> services.axis.openmeetings.org
> "><ns2:SID>1caf7f4f8b0f91a8595f37ad2253f18d</
> ns2:SID><ns2:username>admin</ns2:username><ns2:userpass>xxxxxxxxxx</
> ns2:userpass></ns2:loginUser></SOAP-ENV:Body></SOAP-ENV:Envelope>
>
>
> <ns:loginUserResponse xmlns:ns="http://
> services.axis.openmeetings.org"><ns:return>-10</ns:return></
> ns:loginUserResponse>
>
> This is the raw Http and Soap Request.
>
> --
> You received this message because you are subscribed to the Google Groups
> "OpenMeetings User" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<openmeetings-user%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/openmeetings-user?hl=en.
>
>
--
Sebastian Wagner
http://www.webbase-design.de
http://openmeetings.googlecode.com
http://www.wagner-sebastian.com
[email protected]
--
You received this message because you are subscribed to the Google Groups
"OpenMeetings User" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/openmeetings-user?hl=en.