You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scout-dev@ws.apache.org by "Lin Sun (JIRA)" <sc...@ws.apache.org> on 2007/04/30 18:18:15 UTC

[jira] Created: (SCOUT-29) AuthTokenImpl.getAuthInfo() doesn't seem to work correctly

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


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 generic="2.0" operator="jUDDI.org">
  <authInfo>authToken:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX</authInfo>
</authToken> 

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 xmlns="urn:uddi-org:api_v2">
  <authInfo>authToken:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX</authInfo>
</authToken> 

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


[jira] Updated: (SCOUT-29) AuthTokenImpl.getAuthInfo() doesn't seem to work correctly

Posted by "Lin Sun (JIRA)" <sc...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/SCOUT-29?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lin Sun updated SCOUT-29:
-------------------------

    Attachment: uddiresponse.xml

attach the input file for the test case

> 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: scout29.patch, TestScout.java, TestScout.java, uddiresponse.xml
>
>
> 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 generic="2.0" operator="jUDDI.org">
>   <authInfo>authToken:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX</authInfo>
> </authToken> 
> 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 xmlns="urn:uddi-org:api_v2">
>   <authInfo>authToken:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX</authInfo>
> </authToken> 
> 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


[jira] Reopened: (SCOUT-29) AuthTokenImpl.getAuthInfo() doesn't seem to work correctly

Posted by "Kurt Stam (JIRA)" <sc...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/SCOUT-29?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kurt Stam reopened SCOUT-29:
----------------------------

      Assignee: Kurt Stam  (was: Anil Saldhana)

Need to add the right Fix Version

> 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
>            Assignee: Kurt Stam
>             Fix For: 1.0rc1
>
>         Attachments: scout29.patch, scout29.patch, TestScout.java, TestScout.java, uddiresponse.xml
>
>
> 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 generic="2.0" operator="jUDDI.org">
>   <authInfo>authToken:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX</authInfo>
> </authToken> 
> 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 xmlns="urn:uddi-org:api_v2">
>   <authInfo>authToken:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX</authInfo>
> </authToken> 
> 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


[jira] Closed: (SCOUT-29) AuthTokenImpl.getAuthInfo() doesn't seem to work correctly

Posted by "Kurt Stam (JIRA)" <sc...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/SCOUT-29?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kurt Stam closed SCOUT-29.
--------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 1.0)
                   1.0rc1

> 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
>            Assignee: Kurt Stam
>             Fix For: 1.0rc1
>
>         Attachments: scout29.patch, scout29.patch, TestScout.java, TestScout.java, uddiresponse.xml
>
>
> 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 generic="2.0" operator="jUDDI.org">
>   <authInfo>authToken:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX</authInfo>
> </authToken> 
> 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 xmlns="urn:uddi-org:api_v2">
>   <authInfo>authToken:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX</authInfo>
> </authToken> 
> 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


[jira] Commented: (SCOUT-29) AuthTokenImpl.getAuthInfo() doesn't seem to work correctly

Posted by "Lin Sun (JIRA)" <sc...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/SCOUT-29?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12493439 ] 

Lin Sun commented on SCOUT-29:
------------------------------

Hi Kurt, I tried the juddi 1.0-snapshot jar and reverted my changes in scout.   Retested it, but I got a responseName = "fault" for authtoken request.  Later on, at a businessList request I do see the correct namespace there.   

I'd appreciate if you can apply the patch, as there are lots of other users using juddi 0.5rc4 and may not want to move to trunk yet.

Thanks, Lin

> 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: scout29.patch, TestScout.java, TestScout.java, uddiresponse.xml
>
>
> 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 generic="2.0" operator="jUDDI.org">
>   <authInfo>authToken:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX</authInfo>
> </authToken> 
> 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 xmlns="urn:uddi-org:api_v2">
>   <authInfo>authToken:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX</authInfo>
> </authToken> 
> 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


[jira] Commented: (SCOUT-29) AuthTokenImpl.getAuthInfo() doesn't seem to work correctly

Posted by "Kurt Stam (JIRA)" <sc...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/SCOUT-29?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12493281 ] 

Kurt Stam commented on SCOUT-29:
--------------------------------

The patch doesn't break anything, but it I never had a problem. I seem to already have the namespace on the fragment.

<authToken generic="2.0" operator="jUDDI.org" xmlns="urn:uddi-org:api_v2">
  <authInfo>authToken:391ECFB0-F352-11DB-B353-B6E0E73AF499</authInfo>
</authToken>

Begs the question, are you running against juddi and if so the trunk?

I'd like to understand our differences before applying the patch.

> 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: scout29.patch, 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 generic="2.0" operator="jUDDI.org">
>   <authInfo>authToken:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX</authInfo>
> </authToken> 
> 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 xmlns="urn:uddi-org:api_v2">
>   <authInfo>authToken:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX</authInfo>
> </authToken> 
> 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


[jira] Commented: (SCOUT-29) AuthTokenImpl.getAuthInfo() doesn't seem to work correctly

Posted by "Kurt Stam (JIRA)" <sc...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/SCOUT-29?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12492708 ] 

Kurt Stam commented on SCOUT-29:
--------------------------------

Can you do an update? I'm pretty sure I fixed this late last week.

--Kurt

> 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 generic="2.0" operator="jUDDI.org">
>   <authInfo>authToken:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX</authInfo>
> </authToken> 
> 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 xmlns="urn:uddi-org:api_v2">
>   <authInfo>authToken:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX</authInfo>
> </authToken> 
> 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


[jira] Commented: (SCOUT-29) AuthTokenImpl.getAuthInfo() doesn't seem to work correctly

Posted by "Kurt Stam (JIRA)" <sc...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/SCOUT-29?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12492722 ] 

Kurt Stam commented on SCOUT-29:
--------------------------------

The first should be fixed too since I switched back to the representation:

<xml-fragment xmlns="urn:uddi-org:api_v2">
  <authInfo>authToken:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX</authInfo>
</xml-fragment> 

but if you have a more satisfying solution than I'd love to use that :).

> 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 generic="2.0" operator="jUDDI.org">
>   <authInfo>authToken:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX</authInfo>
> </authToken> 
> 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 xmlns="urn:uddi-org:api_v2">
>   <authInfo>authToken:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX</authInfo>
> </authToken> 
> 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


[jira] Commented: (SCOUT-29) AuthTokenImpl.getAuthInfo() doesn't seem to work correctly

Posted by "Lin Sun (JIRA)" <sc...@ws.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 generic="2.0" operator="jUDDI.org">
>   <authInfo>authToken:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX</authInfo>
> </authToken> 
> 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 xmlns="urn:uddi-org:api_v2">
>   <authInfo>authToken:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX</authInfo>
> </authToken> 
> 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


[jira] Commented: (SCOUT-29) AuthTokenImpl.getAuthInfo() doesn't seem to work correctly

Posted by "Lin Sun (JIRA)" <sc...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/SCOUT-29?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12493373 ] 

Lin Sun commented on SCOUT-29:
------------------------------

Hi Kurt, thanks a lot for reviewing the patch!  I just updated a newer version of the test case to demonstrate the prob.

I have stepped through the code with latest scout trunk as of yesterday night and here's the output (after //) from the debugger.  I am using juddi-0.9rc4.

           URL wsDDUrl = file.toURL();
            InputStream in = wsDDUrl.openStream();
            
            XmlObject uddiResponse = XmlObject.Factory.parse(in);

//uddiResponse:

//<authToken generic="2.0" operator="jUDDI.org">
//  <authInfo>authToken:BBA35720-F41B-11DB-9720-B43E231BA173</authInfo>
//</authToken>

            AuthToken at;
            XmlObject o = uddiResponse.changeType(
                    AuthTokenDocument.type);

//got an com.sun.jdi.InvocationException occurred invoking method, but no more info than that.
//o:
//<authToken generic="2.0" operator="jUDDI.org">
//  <authInfo>authToken:BBA35720-F41B-11DB-9720-B43E231BA173</authInfo>
//</authToken>

            at = ((AuthTokenDocument) o).getAuthToken();

//at: null

Thanks, Lin

> 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: scout29.patch, TestScout.java, TestScout.java, uddiresponse.xml
>
>
> 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 generic="2.0" operator="jUDDI.org">
>   <authInfo>authToken:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX</authInfo>
> </authToken> 
> 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 xmlns="urn:uddi-org:api_v2">
>   <authInfo>authToken:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX</authInfo>
> </authToken> 
> 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


[jira] Reopened: (SCOUT-29) AuthTokenImpl.getAuthInfo() doesn't seem to work correctly

Posted by "Lin Sun (JIRA)" <sc...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/SCOUT-29?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lin Sun reopened SCOUT-29:
--------------------------


see my previous post... thanks.

> 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: scout29.patch, TestScout.java, TestScout.java, uddiresponse.xml
>
>
> 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 generic="2.0" operator="jUDDI.org">
>   <authInfo>authToken:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX</authInfo>
> </authToken> 
> 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 xmlns="urn:uddi-org:api_v2">
>   <authInfo>authToken:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX</authInfo>
> </authToken> 
> 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


[jira] Commented: (SCOUT-29) AuthTokenImpl.getAuthInfo() doesn't seem to work correctly

Posted by "Kurt Stam (JIRA)" <sc...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/SCOUT-29?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12493174 ] 

Kurt Stam commented on SCOUT-29:
--------------------------------

OK I'll check it out. I'm confused why all the test simply work for me, even without this patch.

> 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: scout29.patch, 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 generic="2.0" operator="jUDDI.org">
>   <authInfo>authToken:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX</authInfo>
> </authToken> 
> 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 xmlns="urn:uddi-org:api_v2">
>   <authInfo>authToken:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX</authInfo>
> </authToken> 
> 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


Re: [jira] Commented: (SCOUT-29) AuthTokenImpl.getAuthInfo() doesn't seem to work correctly

Posted by Lin Sun <li...@gmail.com>.
Hi Kurt, I am running maven 1 now trying to get the unit test running.

I was running maven 2 before today.   And like you said, maven 2 doesn't 
kick off the unit test.

Okay, my comments spoke a bit too soon.   I fixed the other error below 
(see attachment) and
I am onto more downloading dependencies issue.

jdom-1.0.jar
commons-discovery-0.2.jar
axis-1.2.1.jar
axis-saaj-1.2.1.jar
axis-jaxrpc-1.2.1.jar
xercesImpl-2.8.0.jar
mysql-connector-java-3.1.13.jar
jnpserver-3.2.3.jar
jbossall-client-3.2.1.jar

I am going to tweak the maven.repo.remote a bit to see if I can get pass 
this error.  Thanks.

Lin


Kurt T Stam wrote:
> Lin which maven are you running? 1 or 2?
> 
> Lin Sun (JIRA) wrote:
>>     [ https://issues.apache.org/jira/browse/SCOUT-29?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12492903 ] 
>>
>> Lin Sun commented on SCOUT-29:
>> ------------------------------
>>
>> Hi Kurt, 
>>
>> I fixed the prob in downloading the jars by using the following maven repo instead (i updated both the trunk\project.properties and trunk\etc\project.properties files)
>>
>> maven.repo.remote=\
>> http://mirrors.ibiblio.org/pub/mirrors/maven,\
>> http://people.apache.org/repo/m1-snapshot-repository/,\
>> http://repo1.maven.org/maven/,\
>> http://people.apache.org/~deepal/maven/,\
>> http://ws.zones.apache.org/repository/,\
>> http://people.apache.org/repo/m1-ibiblio-rsync-repository/,\
>> http://jibx.sourceforge.net/maven/,\
>> http://fisheye5.cenqua.com/browse/fi/repo
>>
>> Let me know if you want me to submit a jira and patch for it.    However my maven build still failed.  got an 
>>
>> --- Nested Exception ---
>> org.codehaus.plexus.util.xml.pull.XmlPullParserException: Unrecognised tag: 'pac
>> kaging' (position: START_TAG seen ...</version>\r\n\t\t\t<packaging>... @95:15)
>>
>> Re your comment on 30/Apr/07 10:30 AM,  where do you think in the code that would append the xmlns="urn:uddi-org:api_v2" when it is not specified in uddiResponse?    I assume you mean here:
>>
>> XmlObject o = uddiResponse.changeType(
>>                     AuthTokenDocument.type);
>>
>> but that didn't happen in my test.  Thanks, Lin
>>
>>   
>>> 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 generic="2.0" operator="jUDDI.org">
>>>   <authInfo>authToken:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX</authInfo>
>>> </authToken> 
>>> 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 xmlns="urn:uddi-org:api_v2">
>>>   <authInfo>authToken:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX</authInfo>
>>> </authToken> 
>>> 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
>>>     
>>
>>   


Re: [jira] Commented: (SCOUT-29) AuthTokenImpl.getAuthInfo() doesn't seem to work correctly

Posted by Kurt T Stam <ks...@apache.org>.
Lin which maven are you running? 1 or 2?

Lin Sun (JIRA) wrote:
>     [ https://issues.apache.org/jira/browse/SCOUT-29?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12492903 ] 
>
> Lin Sun commented on SCOUT-29:
> ------------------------------
>
> Hi Kurt, 
>
> I fixed the prob in downloading the jars by using the following maven repo instead (i updated both the trunk\project.properties and trunk\etc\project.properties files)
>
> maven.repo.remote=\
> http://mirrors.ibiblio.org/pub/mirrors/maven,\
> http://people.apache.org/repo/m1-snapshot-repository/,\
> http://repo1.maven.org/maven/,\
> http://people.apache.org/~deepal/maven/,\
> http://ws.zones.apache.org/repository/,\
> http://people.apache.org/repo/m1-ibiblio-rsync-repository/,\
> http://jibx.sourceforge.net/maven/,\
> http://fisheye5.cenqua.com/browse/fi/repo
>
> Let me know if you want me to submit a jira and patch for it.    However my maven build still failed.  got an 
>
> --- Nested Exception ---
> org.codehaus.plexus.util.xml.pull.XmlPullParserException: Unrecognised tag: 'pac
> kaging' (position: START_TAG seen ...</version>\r\n\t\t\t<packaging>... @95:15)
>
> Re your comment on 30/Apr/07 10:30 AM,  where do you think in the code that would append the xmlns="urn:uddi-org:api_v2" when it is not specified in uddiResponse?    I assume you mean here:
>
> XmlObject o = uddiResponse.changeType(
>                     AuthTokenDocument.type);
>
> but that didn't happen in my test.  Thanks, Lin
>
>   
>> 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 generic="2.0" operator="jUDDI.org">
>>   <authInfo>authToken:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX</authInfo>
>> </authToken> 
>> 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 xmlns="urn:uddi-org:api_v2">
>>   <authInfo>authToken:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX</authInfo>
>> </authToken> 
>> 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
>>     
>
>   

[jira] Commented: (SCOUT-29) AuthTokenImpl.getAuthInfo() doesn't seem to work correctly

Posted by "Lin Sun (JIRA)" <sc...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/SCOUT-29?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12492903 ] 

Lin Sun commented on SCOUT-29:
------------------------------

Hi Kurt, 

I fixed the prob in downloading the jars by using the following maven repo instead (i updated both the trunk\project.properties and trunk\etc\project.properties files)

maven.repo.remote=\
http://mirrors.ibiblio.org/pub/mirrors/maven,\
http://people.apache.org/repo/m1-snapshot-repository/,\
http://repo1.maven.org/maven/,\
http://people.apache.org/~deepal/maven/,\
http://ws.zones.apache.org/repository/,\
http://people.apache.org/repo/m1-ibiblio-rsync-repository/,\
http://jibx.sourceforge.net/maven/,\
http://fisheye5.cenqua.com/browse/fi/repo

Let me know if you want me to submit a jira and patch for it.    However my maven build still failed.  got an 

--- Nested Exception ---
org.codehaus.plexus.util.xml.pull.XmlPullParserException: Unrecognised tag: 'pac
kaging' (position: START_TAG seen ...</version>\r\n\t\t\t<packaging>... @95:15)

Re your comment on 30/Apr/07 10:30 AM,  where do you think in the code that would append the xmlns="urn:uddi-org:api_v2" when it is not specified in uddiResponse?    I assume you mean here:

XmlObject o = uddiResponse.changeType(
                    AuthTokenDocument.type);

but that didn't happen in my test.  Thanks, Lin

> 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 generic="2.0" operator="jUDDI.org">
>   <authInfo>authToken:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX</authInfo>
> </authToken> 
> 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 xmlns="urn:uddi-org:api_v2">
>   <authInfo>authToken:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX</authInfo>
> </authToken> 
> 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


[jira] Updated: (SCOUT-29) AuthTokenImpl.getAuthInfo() doesn't seem to work correctly

Posted by "Lin Sun (JIRA)" <sc...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/SCOUT-29?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lin Sun updated SCOUT-29:
-------------------------

    Attachment: TestScout.java

Attaching a newer version of the test case to demonstrate the prob.

> 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: scout29.patch, TestScout.java, 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 generic="2.0" operator="jUDDI.org">
>   <authInfo>authToken:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX</authInfo>
> </authToken> 
> 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 xmlns="urn:uddi-org:api_v2">
>   <authInfo>authToken:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX</authInfo>
> </authToken> 
> 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


[jira] Commented: (SCOUT-29) AuthTokenImpl.getAuthInfo() doesn't seem to work correctly

Posted by "Kurt Stam (JIRA)" <sc...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/SCOUT-29?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12492868 ] 

Kurt Stam commented on SCOUT-29:
--------------------------------

I think you actually have it working, but you need to actually set a user, for which you are going to get the authorization token. The token coming back should not be all XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX, but some key. Try looking at the unittests, for instance the JAX01PublishOrgTest, and see how in the BaseTestCase a user is set:

protected String userid = System.getProperty("uddi.test.uid") == null ? 
    						"jbossesb" : 
    						System.getProperty("uddi.test.uid");

    protected String passwd = System.getProperty("uddi.test.pass") == null ? 
							"password" : 
							System.getProperty("uddi.test.pass");

Does that help?

> 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 generic="2.0" operator="jUDDI.org">
>   <authInfo>authToken:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX</authInfo>
> </authToken> 
> 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 xmlns="urn:uddi-org:api_v2">
>   <authInfo>authToken:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX</authInfo>
> </authToken> 
> 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


[jira] Commented: (SCOUT-29) AuthTokenImpl.getAuthInfo() doesn't seem to work correctly

Posted by "Kurt Stam (JIRA)" <sc...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/SCOUT-29?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12493392 ] 

Kurt Stam commented on SCOUT-29:
--------------------------------

http://people.apache.org/repo/m1-snapshot-repository/juddi/juddi/SNAPSHOT/juddi-1.0-SNAPSHOT.jar

I guess we'll have to update the websites soon.. man they are stale.

> 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: scout29.patch, TestScout.java, TestScout.java, uddiresponse.xml
>
>
> 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 generic="2.0" operator="jUDDI.org">
>   <authInfo>authToken:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX</authInfo>
> </authToken> 
> 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 xmlns="urn:uddi-org:api_v2">
>   <authInfo>authToken:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX</authInfo>
> </authToken> 
> 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


[jira] Resolved: (SCOUT-29) AuthTokenImpl.getAuthInfo() doesn't seem to work correctly

Posted by "Kurt Stam (JIRA)" <sc...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/SCOUT-29?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kurt Stam resolved SCOUT-29.
----------------------------

    Resolution: Fixed

Added the part of the patch where the NS is set, but I made it conditional, in case there is a NS set already.

> 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: scout29.patch, TestScout.java, TestScout.java, uddiresponse.xml
>
>
> 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 generic="2.0" operator="jUDDI.org">
>   <authInfo>authToken:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX</authInfo>
> </authToken> 
> 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 xmlns="urn:uddi-org:api_v2">
>   <authInfo>authToken:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX</authInfo>
> </authToken> 
> 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


[jira] Commented: (SCOUT-29) AuthTokenImpl.getAuthInfo() doesn't seem to work correctly

Posted by "Lin Sun (JIRA)" <sc...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/SCOUT-29?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12493390 ] 

Lin Sun commented on SCOUT-29:
------------------------------

Hi Kurt, I'll try.  Do you know where I can download the latest binary of juddi?  I am having trouble to check out juddi's code, so I thought might be easy just to get the binary (afraid that I might run into build issue).

Thanks, Lin

> 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: scout29.patch, TestScout.java, TestScout.java, uddiresponse.xml
>
>
> 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 generic="2.0" operator="jUDDI.org">
>   <authInfo>authToken:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX</authInfo>
> </authToken> 
> 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 xmlns="urn:uddi-org:api_v2">
>   <authInfo>authToken:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX</authInfo>
> </authToken> 
> 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


[jira] Updated: (SCOUT-29) AuthTokenImpl.getAuthInfo() doesn't seem to work correctly

Posted by "Lin Sun (JIRA)" <sc...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/SCOUT-29?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lin Sun updated SCOUT-29:
-------------------------

    Attachment: scout29.patch

Since this code has been updated a bit by other commits, attach a new patch for easy applying.

> 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: scout29.patch, scout29.patch, TestScout.java, TestScout.java, uddiresponse.xml
>
>
> 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 generic="2.0" operator="jUDDI.org">
>   <authInfo>authToken:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX</authInfo>
> </authToken> 
> 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 xmlns="urn:uddi-org:api_v2">
>   <authInfo>authToken:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX</authInfo>
> </authToken> 
> 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


[jira] Commented: (SCOUT-29) AuthTokenImpl.getAuthInfo() doesn't seem to work correctly

Posted by "Lin Sun (JIRA)" <sc...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/SCOUT-29?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12493603 ] 

Lin Sun commented on SCOUT-29:
------------------------------

Hi Kurt,

Actually, the code
response.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns", this.getUddiNamespace());

doesn't seem to work.  I have tested it without any other changes in the patch, and it would not change the uddiresponse at all  That's why I put in the other code to set the namespace when it is not set yet.

Thanks, Lin

> 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: scout29.patch, TestScout.java, TestScout.java, uddiresponse.xml
>
>
> 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 generic="2.0" operator="jUDDI.org">
>   <authInfo>authToken:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX</authInfo>
> </authToken> 
> 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 xmlns="urn:uddi-org:api_v2">
>   <authInfo>authToken:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX</authInfo>
> </authToken> 
> 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


[jira] Commented: (SCOUT-29) AuthTokenImpl.getAuthInfo() doesn't seem to work correctly

Posted by "Lin Sun (JIRA)" <sc...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/SCOUT-29?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12492883 ] 

Lin Sun commented on SCOUT-29:
------------------------------

Hi Kurt, the authtoken I got back have some key (upper case characters and numbers)... there isn't any X in it, I just replaced them with X for this JIRA.   

The request sent in the RegistryImpl.java's execute(XmlObject uddiRequest, URI endPointURI) method is like:

<get_authToken userID="user" cred="password" xmlns="urn:uddi-org:api_v2"/> 

but the response doesn't contain xmlns="urn:uddi-org:api_v2" which caused the prob that the code cannot find the authtoken.    I think setting the xmlns="urn:uddi-org:api_v2" in the response will make everything work(and I've tested it) but I don't know how to set it programmatically yet.     Any insight is appreciated while I continue looking into this.  Thanks.

Lin

> 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 generic="2.0" operator="jUDDI.org">
>   <authInfo>authToken:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX</authInfo>
> </authToken> 
> 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 xmlns="urn:uddi-org:api_v2">
>   <authInfo>authToken:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX</authInfo>
> </authToken> 
> 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


[jira] Commented: (SCOUT-29) AuthTokenImpl.getAuthInfo() doesn't seem to work correctly

Posted by "Lin Sun (JIRA)" <sc...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/SCOUT-29?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12492724 ] 

Lin Sun commented on SCOUT-29:
------------------------------

Maybe you are right.  Let me run the end to end test and capture the uddiResponse using the debugger (this will take a little while).

I was simply using my test app to test it.  Will put an update a bit later.  Thanks again!

Lin

> 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 generic="2.0" operator="jUDDI.org">
>   <authInfo>authToken:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX</authInfo>
> </authToken> 
> 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 xmlns="urn:uddi-org:api_v2">
>   <authInfo>authToken:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX</authInfo>
> </authToken> 
> 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


[jira] Commented: (SCOUT-29) AuthTokenImpl.getAuthInfo() doesn't seem to work correctly

Posted by "Lin Sun (JIRA)" <sc...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/SCOUT-29?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12492837 ] 

Lin Sun commented on SCOUT-29:
------------------------------

Hi Kurt, prob 1 still exists.  I was running the test in geronimo env.

Basically, the client sends the following request:

<get_authToken userID="XXXX" cred="XXXX" xmlns="urn:uddi-org:api_v2"/> 

And the uddiResponse is like:

<authToken generic="2.0" operator="jUDDI.org">
  <authInfo>authToken:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX</authInfo>
</authToken> 

So I want to set the response's namespace in the RegistryImpl.java's execute(XmlObject uddiRequest, URI endPointURI) method.  I've tried different ways, but haven't gotten it work yet.

I tried to add the following in RegistryImpl.java, before the response is parsed to uddiResponse.

        response.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns", this.getUddiNamespace());

or 
        response.setAttribute("namespaceURI", this.getUddiNamespace());

Also tried to add the nanespace after the response is parsed to uddiResponse:

            XmlObject uddiResponse = XmlObject.Factory.parse(in);
    
            XmlCursor cursor = uddiResponse.newCursor();
            cursor.toStartDoc();
            cursor.toFirstChild();
            //set the namespace if it is empty
            if ("".equals(cursor.getName().getNamespaceURI())) {
                System.out.println("empty namespace URI");
                cursor.setName(new QName("urn:uddi-org:api_v2", cursor.getName().getLocalPart()));
                cursor.dispose();
            }

I do see the change to "<xml-fragment ..." after "((AuthTokenDocument) o).getAuthToken()" is called, but the xmlns value isn't there which caused getAuthInfo() return null.

Any ideas?  Thanks, Lin

> 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 generic="2.0" operator="jUDDI.org">
>   <authInfo>authToken:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX</authInfo>
> </authToken> 
> 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 xmlns="urn:uddi-org:api_v2">
>   <authInfo>authToken:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX</authInfo>
> </authToken> 
> 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


[jira] Commented: (SCOUT-29) AuthTokenImpl.getAuthInfo() doesn't seem to work correctly

Posted by "Lin Sun (JIRA)" <sc...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/SCOUT-29?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12492721 ] 

Lin Sun commented on SCOUT-29:
------------------------------

Hi Kurt, thanks for the info.  Yes, I've confirmed that the second prob is fixed.

The first issue still remains and I'll look into it unless you beat me.:)

Lin

> 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 generic="2.0" operator="jUDDI.org">
>   <authInfo>authToken:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX</authInfo>
> </authToken> 
> 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 xmlns="urn:uddi-org:api_v2">
>   <authInfo>authToken:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX</authInfo>
> </authToken> 
> 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


update juddi level?

Posted by Lin Sun <li...@gmail.com>.
FYI - I have been having some fun in scout lately.  If SCOUT-29 isn't 
committed by the Scout team because of the prob is fixed in juddi trunk, 
we may have to update to a newer version of juddi, for geronimo 2.0.

Lin


Kurt Stam (JIRA) wrote:
>     [ https://issues.apache.org/jira/browse/SCOUT-29?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12493375 ] 
> 
> Kurt Stam commented on SCOUT-29:
> --------------------------------
> 
> Hi Lin, this is starting to become an interesting conversation ;). Anyway I fixed some namespace handling on the jUDDI trunk a few months back. Can you try using the trunk. I'm wondering if this is a scout problem or a jUDDI problem. In the meantime I will give your code a spin.
> 
> --Kurt
> 
>> 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: scout29.patch, TestScout.java, TestScout.java, uddiresponse.xml
>>
>>
>> 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 generic="2.0" operator="jUDDI.org">
>>   <authInfo>authToken:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX</authInfo>
>> </authToken> 
>> 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 xmlns="urn:uddi-org:api_v2">
>>   <authInfo>authToken:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX</authInfo>
>> </authToken> 
>> 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.

[jira] Commented: (SCOUT-29) AuthTokenImpl.getAuthInfo() doesn't seem to work correctly

Posted by "Kurt Stam (JIRA)" <sc...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/SCOUT-29?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12493375 ] 

Kurt Stam commented on SCOUT-29:
--------------------------------

Hi Lin, this is starting to become an interesting conversation ;). Anyway I fixed some namespace handling on the jUDDI trunk a few months back. Can you try using the trunk. I'm wondering if this is a scout problem or a jUDDI problem. In the meantime I will give your code a spin.

--Kurt

> 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: scout29.patch, TestScout.java, TestScout.java, uddiresponse.xml
>
>
> 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 generic="2.0" operator="jUDDI.org">
>   <authInfo>authToken:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX</authInfo>
> </authToken> 
> 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 xmlns="urn:uddi-org:api_v2">
>   <authInfo>authToken:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX</authInfo>
> </authToken> 
> 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


[jira] Resolved: (SCOUT-29) AuthTokenImpl.getAuthInfo() doesn't seem to work correctly

Posted by "Davanum Srinivas (JIRA)" <sc...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/SCOUT-29?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Davanum Srinivas resolved SCOUT-29.
-----------------------------------

    Resolution: Fixed

Applied - svn revision 536553

thanks,
dims

> 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: scout29.patch, scout29.patch, TestScout.java, TestScout.java, uddiresponse.xml
>
>
> 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 generic="2.0" operator="jUDDI.org">
>   <authInfo>authToken:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX</authInfo>
> </authToken> 
> 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 xmlns="urn:uddi-org:api_v2">
>   <authInfo>authToken:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX</authInfo>
> </authToken> 
> 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


[jira] Updated: (SCOUT-29) AuthTokenImpl.getAuthInfo() doesn't seem to work correctly

Posted by "Lin Sun (JIRA)" <sc...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/SCOUT-29?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lin Sun updated SCOUT-29:
-------------------------

    Attachment: TestScout.java

> 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 generic="2.0" operator="jUDDI.org">
>   <authInfo>authToken:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX</authInfo>
> </authToken> 
> 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 xmlns="urn:uddi-org:api_v2">
>   <authInfo>authToken:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX</authInfo>
> </authToken> 
> 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


[jira] Updated: (SCOUT-29) AuthTokenImpl.getAuthInfo() doesn't seem to work correctly

Posted by "Lin Sun (JIRA)" <sc...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/SCOUT-29?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lin Sun updated SCOUT-29:
-------------------------

    Attachment: scout29.patch

This patch would attempt to set the namespace on the response.  If it has not been set yet later on in uddiresponse, this patch would set the namespace to the uddinamespace.  This is needed because if the namespace is null or empty, the find_element_user will not be able to return anything (as it searches for both the element and the uddinamespace).  With this patch, I am able to run the attached test case and many other tests.

> 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: scout29.patch, 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 generic="2.0" operator="jUDDI.org">
>   <authInfo>authToken:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX</authInfo>
> </authToken> 
> 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 xmlns="urn:uddi-org:api_v2">
>   <authInfo>authToken:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX</authInfo>
> </authToken> 
> 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


[jira] Commented: (SCOUT-29) AuthTokenImpl.getAuthInfo() doesn't seem to work correctly

Posted by "Kurt Stam (JIRA)" <sc...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/SCOUT-29?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12492885 ] 

Kurt Stam commented on SCOUT-29:
--------------------------------

If you run maven 1, you can run 'maven' and it will execute all the unittests. Do they run for you? It is using the same authentication mechanism and they all pass for me..

> 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 generic="2.0" operator="jUDDI.org">
>   <authInfo>authToken:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX</authInfo>
> </authToken> 
> 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 xmlns="urn:uddi-org:api_v2">
>   <authInfo>authToken:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX</authInfo>
> </authToken> 
> 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