Return-Path: Delivered-To: apmail-ws-scout-dev-archive@www.apache.org Received: (qmail 92738 invoked from network); 1 May 2007 14:37:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 May 2007 14:37:36 -0000 Received: (qmail 47912 invoked by uid 500); 1 May 2007 14:37:42 -0000 Delivered-To: apmail-ws-scout-dev-archive@ws.apache.org Received: (qmail 47879 invoked by uid 500); 1 May 2007 14:37:42 -0000 Mailing-List: contact scout-dev-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: scout-dev@ws.apache.org List-Id: Delivered-To: mailing list scout-dev@ws.apache.org Received: (qmail 47867 invoked by uid 99); 1 May 2007 14:37:42 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 May 2007 07:37:42 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 May 2007 07:37:35 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 563F471404A for ; Tue, 1 May 2007 07:37:15 -0700 (PDT) Message-ID: <21702199.1178030235313.JavaMail.jira@brutus> Date: Tue, 1 May 2007 07:37:15 -0700 (PDT) From: "Lin Sun (JIRA)" To: scout-dev@ws.apache.org Subject: [jira] Commented: (SCOUT-29) AuthTokenImpl.getAuthInfo() doesn't seem to work correctly In-Reply-To: <12762128.1177949895492.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/SCOUT-29?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12492888 ] Lin Sun commented on SCOUT-29: ------------------------------ I haven't been able get maven 1 build working. It always failed immediately for me, when attempting to download velocity-1.4-dev.jar. Where is the JAX01PublishOrgTest? I could not find it. > AuthTokenImpl.getAuthInfo() doesn't seem to work correctly > ---------------------------------------------------------- > > Key: SCOUT-29 > URL: https://issues.apache.org/jira/browse/SCOUT-29 > Project: Scout > Issue Type: Bug > Components: Scout Implementation > Affects Versions: 1.0 > Environment: Win XP + Sun 1.5 SDK, latest scout trunk. > Reporter: Lin Sun > Assigned To: Anil Saldhana > Fix For: 1.0 > > Attachments: TestScout.java > > > I created a simple test case to demonstrate the prob. Basically, the test case would read a file and parse it to uddiResponse, then the code changes the uddiResponse to AuthToken type. Then the code calls AuthTokenImpl.getAuthInfo() but that returned null. > The content of uddiresponse.xml file is captured value of uddiResponse via a debugger of another test in the execute(XmlObject uddiRequest, URI endPointURI) method in RegistryImpl.java: > > authToken:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX > > When the code calls for AuthTokenImpl.getAuthInfo(), it calls find_element_user(AUTHINFO$0, 0). This won't find anything because > 1) the namespace isn't right in the uddiresponse.xml. So I updated the file a bit: > > authToken:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX > > This can be possibly fixed by set the response's namespace in the execute(XmlObject uddiRequest, URI endPointURI) method and I'll try working on that. > 2) the find_element_user (in XObj.java) won't be able to travel to the authInfo tag because the x._nextSibling is null. (x._firstChild is the authInfo). > here's the exerpt of the code from xmlbeans: > public TypeStoreUser find_element_user ( QName name, int i ) > { > for ( Xobj x = _firstChild ; x != null ; x = x._nextSibling ) > if (x.isElem() && x._name.equals( name ) && --i < 0) > return x.getUser(); > return null; > } > I tried to change the following from > private static final javax.xml.namespace.QName AUTHINFO$0 = > new javax.xml.namespace.QName("urn:uddi-org:api_v2", "authInfo"); > to > private static final javax.xml.namespace.QName AUTHINFO$0 = > new javax.xml.namespace.QName("urn:uddi-org:api_v2", "authToken"); > and i was able to get the "authToken:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX" returned when I call AuthTokenImpl.getAuthInfo(). However, the AuthTokenImpl.java is generated so I don't know how to modify it. > Any comments/advise? Thanks, Lin -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: scout-dev-unsubscribe@ws.apache.org For additional commands, e-mail: scout-dev-help@ws.apache.org