You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@juddi.apache.org by Delphine Dumontet <de...@isima.fr> on 2004/01/29 17:35:47 UTC

Fw: Error while getting classifications

MessageHi all,

We are using JAX  R-browser from JWSDP package. An error occurs while getting classifications (from tModel table) with "findClassificationSchemeByName" method.
We want to add classifications into Juddi, and find them with a browser (JAXR-browser in our case). There's some troubles when a row is stored into tModel table and when we want to find it with his name; an exception occurs :

DefaultValidationEventHandler: [ERROR]: Unexpected element {urn:uddi-org:api_v2}
:description
     Location:
javax.xml.registry.JAXRException: javax.xml.bind.UnmarshalException: Unexpected
element {urn:uddi-org:api_v2}:description

Is anyone has an idea to solve this problem?

You can find the historic of our conversation with Steve Viens below.

Many thanks

Delphine
David


----- Original Message ----- 
From: David Hermet 
To: juddi-user@ws.apache.org 
Sent: Wednesday, January 21, 2004 5:17 PM
Subject: Re: Error while getting classifications


Hello,

As I said it, it works fine whith Microsoft test registry (http://test.uddi.microsoft.com/inquire) and here is SOAP requests and SOAP responses for jUDDI registry and jUDDI registry :

=> SOAP Request for Microsoft Registry :
-------------------------------------------------------------
POST /inquire HTTP/1.1
Content-Type: text/xml; charset="utf-8"
Content-Length: 262
SOAPAction: ""
User-Agent: Java/1.4.1_06
Host: test.uddi.microsoft.com
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
   <SOAP-ENV:Header/>
   <SOAP-ENV:Body>
      <find_tModel generic="2.0" xmlns="urn:uddi-org:api_v2">
         <name xml:lang="fr">ntis-gov:naics:1997</name>
      </find_tModel>
   </SOAP-ENV:Body></SOAP-ENV:Envelope>POST /inquire HTTP/1.1
Content-Type: text/xml; charset="utf-8"
Content-Length: 290
SOAPAction: ""
User-Agent: Java/1.4.1_06
Host: dhe:8081
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
   <SOAP-ENV:Header/>
   <SOAP-ENV:Body>
      <get_tModelDetail generic="2.0" xmlns="urn:uddi-org:api_v2">
         <tModelKey>uuid:c0b9fe13-179f-413d-8a5b-5004db8e5bb2</tModelKey>
      </get_tModelDetail>
   </SOAP-ENV:Body></SOAP-ENV:Envelope>


=> SOAP Request for jUDDI Registry :
--------------------------------------------------------
POST /juddi/inquiry HTTP/1.1
Content-Type: text/xml; charset="utf-8"
Content-Length: 262
SOAPAction: ""
User-Agent: Java/1.4.1_06
Host: DHE
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
   <SOAP-ENV:Header/>
   <SOAP-ENV:Body>
      <find_tModel generic="2.0" xmlns="urn:uddi-org:api_v2">
         <name xml:lang="fr">ntis-gov:naics:1997</name>
      </find_tModel>
   </SOAP-ENV:Body></SOAP-ENV:Envelope>POST /juddi/inquiry HTTP/1.1
Content-Type: text/xml; charset="utf-8"
Content-Length: 290
SOAPAction: ""
User-Agent: Java/1.4.1_06
Host: dhe:8082
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
   <SOAP-ENV:Header/>
   <SOAP-ENV:Body>
      <get_tModelDetail generic="2.0" xmlns="urn:uddi-org:api_v2">
         <tModelKey>uuid:C0B9FE13-179F-413D-8A5B-5004DB8E5BB2</tModelKey>
      </get_tModelDetail>
   </SOAP-ENV:Body></SOAP-ENV:Envelope>



=> SOAP Response for Microsoft Registry :
---------------------------------------------------------------
HTTP/1.1 200 OK
Date: Wed, 21 Jan 2004 15:02:50 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 1.1.4322
Cache-Control: private, max-age=0
Content-Type: text/xml; charset=utf-8
Content-Length: 502

<?xml version="1.0" encoding="utf-8"?>
   <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <soap:Body>
         <tModelList generic="2.0" operator="Microsoft Corporation" truncated="false" xmlns="urn:uddi-org:api_v2">
            <tModelInfos>
               <tModelInfo tModelKey="uuid:c0b9fe13-179f-413d-8a5b-5004db8e5bb2">
                  <name>ntis-gov:naics:1997</name>
               </tModelInfo>
            </tModelInfos>
         </tModelList>
      </soap:Body>
   </soap:Envelope>HTTP/1.1 100 Continue

HTTP/1.1 200 OK
Date: Wed, 21 Jan 2004 15:02:50 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 1.1.4322
Cache-Control: private, max-age=0
Content-Type: text/xml; charset=utf-8
Content-Length: 937

   <?xml version="1.0" encoding="utf-8"?>
      <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
         <soap:Body>
            <tModelDetail generic="2.0" operator="Microsoft Corporation" truncated="false" xmlns="urn:uddi-org:api_v2">
               <tModel tModelKey="uuid:c0b9fe13-179f-413d-8a5b-5004db8e5bb2" operator="IBM" authorizedName="IBM">
                  <name>ntis-gov:naics:1997</name>
                  <description xml:lang="en">Business Taxonomy: NAICS (1997 Release)</description>
                  <overviewDoc>
                     <description xml:lang="en">This tModel defines the NAICS industry taxonomy.</description>
                     <overviewURL>http://www.uddi.org/taxonomies/Core_Taxonomy_OverviewDoc.htm#NAICS</overviewURL>
                  </overviewDoc>
                  <categoryBag>
                     <keyedReference tModelKey="uuid:c1acf26d-9672-4404-9d70-39b756e62ab4" keyName="types" keyValue="categorization" />
                  </categoryBag>
               </tModel>
            </tModelDetail>
         </soap:Body>
      </soap:Envelope>

=> SOAP Response for jUDDI Registry :
-----------------------------------------------------------
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Transfer-Encoding: chunked
Date: Wed, 21 Jan 2004 15:20:45 GMT
Server: Apache Coyote/1.0

1ec
<?xml version="1.0" encoding="UTF-8"?>
   <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
      <soapenv:Body>
         <tModelList generic="2.0" operator="jUDDI.org" xmlns="urn:uddi-org:api_v2">
            <tModelInfos>
               <tModelInfo tModelKey="uuid:C0B9FE13-179F-413D-8A5B-5004DB8E5BB2">
                  <name>ntis-gov:naics:1997</name>
               </tModelInfo>
            </tModelInfos>
         </tModelList> 
      </soapenv:Body>
   </soapenv:Envelope>
0

HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Transfer-Encoding: chunked
Date: Wed, 21 Jan 2004 15:20:45 GMT
Server: Apache Coyote/1.0

3b9

   <?xml version="1.0" encoding="UTF-8"?>
      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
         <soapenv:Body>
            <tModelDetail generic="2.0" operator="jUDDI.org" xmlns="urn:uddi-org:api_v2">
               <tModel authorizedName="Administrator" operator="jUDDI.org" tModelKey="uuid:C0B9FE13-179F-413D-8A5B-5004DB8E5BB2">
                  <name>ntis-gov:naics:1997</name>
                  <description xml:lang="en">Business Taxonomy: NAICS(1997 Release)</description>
                  <overviewDoc>
                     <overviewURL>http://www.uddi.org/taxonomies/UDDI_Taxonomy_tModels.htm#NAICS</overviewURL>
                     <description xml:lang="en">This tModel defines the NAICS industry taxonomy.</description>
                  </overviewDoc>
                  <identifierBag/>
                  <categoryBag>
                     <keyedReference keyName="types" keyValue="categorization" tModelKey="uuid:C1ACF26D-9672-4404-9D70-39B756E62AB4"/>
                  </categoryBag>
               </tModel>
            </tModelDetail> 
         </soapenv:Body>
      </soapenv:Envelope>
0


The answers seems similar but do you know what means the strange characters ("1ec", "0", "3b9", "0") in the message ?

Thanks,
David


  ----- Original Message ----- 
  From: Viens, Steve 
  To: 'juddi-user@ws.apache.org' 
  Sent: Tuesday, January 20, 2004 5:36 PM
  Subject: RE: Error while getting classifications


  I would think the host would be "test.uddi.microsoft.com"  and the port would be "80".

  Steve
    -----Original Message-----
    From: David Hermet [mailto:david.hermet@isima.fr] 
    Sent: Tuesday, January 20, 2004 11:01 AM
    To: juddi-user@ws.apache.org
    Subject: Re: Error while getting classifications


    Hello,

    It works fine whith Microsoft test registry (http://test.uddi.microsoft.com/inquire).
    But how can i see the SOAP request/response generated from that test with Axis TCP Monitor (what is the value for parameter Target Hostname and parameter Target Port # ) ?

    Thanks,
    David.
      ----- Original Message ----- 
      From: Viens, Steve 
      To: 'juddi-user@ws.apache.org' 
      Sent: Tuesday, January 20, 2004 2:42 PM
      Subject: RE: Error while getting classifications


      David,

      The tModelList and tModelDetail responses below appear to be correctly formatted UDDI v2.0 responses and it also appears as if the tModelDetail response includes the data you are searching for. So, the jUDDI registry is doing what you're asking it to do ... the problem lies somewhere in the JAXR browser and how it's parsing the response.  

      I know this reply probably doesn't help you much.

      Does the JAXR Browser support all of UDDI v2.0? Have you tried using the JAXR Browser against one of the public UDDI registries?  Was it successful?  If so could you post the SOAP request/response generated from that test?  If it does work then I'd be curious to find out if/how the messages differ.

      If you do resolve this issue please consider posting the answer to this list so that others can benefit.

      Steve
        -----Original Message-----
        From: David Hermet [mailto:david.hermet@isima.fr] 
        Sent: Tuesday, January 20, 2004 5:18 AM
        To: juddi-user@ws.apache.org; steve@viens.net
        Subject: Re: Error while getting classifications


        Hello,

        There's some information about my problem and about jUDDI installation :

        I'm working with :
        - Windows 2000
        - Tomcat 4.1.27
        - Java 1.4.1_06
        - Juddi 0.7.0
        - MySql 4.0.17
        - UDDI4J 2.0beta
        - JWSDP 1.3 and JAXR 1.0.5

        ==> It works well, when the tModel table is empty or when the search record is not present :

        SOAP request :
        ----------------------
        POST /juddi/inquiry HTTP/1.1
        Content-Type: text/xml; charset="utf-8"
        Content-Length: 248
        SOAPAction: ""
        User-Agent: Java/1.4.1_06
        Host: localhost
        Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
        Connection: keep-alive

        <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
           <SOAP-ENV:Header/>
           <SOAP-ENV:Body>
              <find_tModel generic="2.0" xmlns="urn:uddi-org:api_v2">
                 <name xml:lang="fr">naics</name>
              </find_tModel>
           </SOAP-ENV:Body></SOAP-ENV:Envelope>


        SOAP response :
        -------------------------
        HTTP/1.1 200 OK
        Content-Type: text/xml; charset=utf-8
        Transfer-Encoding: chunked
        Date: Tue, 20 Jan 2004 09:54:02 GMT
        Server: Apache Coyote/1.0

        170
        <?xml version="1.0" encoding="UTF-8"?>
           <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
              <soapenv:Body>
                 <tModelList generic="2.0" operator="jUDDI.org" xmlns="urn:uddi-org:api_v2">
                    <tModelInfos/>
                 </tModelList> 
              </soapenv:Body>
           </soapenv:Envelope>
        0

        ==> It does not work, when the search record is present in the tModel Table :

        SOAP request :
        ----------------------
        POST /juddi/inquiry HTTP/1.1
        Content-Type: text/xml; charset="utf-8"
        Content-Length: 248
        SOAPAction: ""
        User-Agent: Java/1.4.1_06
        Host: localhost
        Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
        Connection: keep-alive

        <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
           <SOAP-ENV:Header/>
           <SOAP-ENV:Body>
              <find_tModel generic="2.0" xmlns="urn:uddi-org:api_v2">
                 <name xml:lang="fr">naics</name>
              </find_tModel>
           </SOAP-ENV:Body></SOAP-ENV:Envelope>POST /juddi/inquiry HTTP/1.1

        Content-Type: text/xml; charset="utf-8"
        Content-Length: 290
        SOAPAction: ""
        User-Agent: Java/1.4.1_06
        Host: dhe:8081
        Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
        Connection: keep-alive

        <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
           <SOAP-ENV:Header/>
           <SOAP-ENV:Body>
              <get_tModelDetail generic="2.0" xmlns="urn:uddi-org:api_v2">
                 <tModelKey>uuid:C0B9FE13-179F-413D-8A5B-5004DB8E5BB2</tModelKey>
              </get_tModelDetail>
           </SOAP-ENV:Body></SOAP-ENV:Envelope>


        SOAP response :
        -------------------------
        HTTP/1.1 200 OK
        Content-Type: text/xml; charset=utf-8
        Transfer-Encoding: chunked
        Date: Tue, 20 Jan 2004 10:08:04 GMT
        Server: Apache Coyote/1.0

        1ee
        <?xml version="1.0" encoding="UTF-8"?>
           <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
              <soapenv:Body>
                 <tModelList generic="2.0" operator="jUDDI.org" xmlns="urn:uddi-org:api_v2">
                    <tModelInfos>
                       <tModelInfo tModelKey="uuid:C0B9FE13-179F-413D-8A5B-5004DB8E5BB2">
                          <name>naics:1997(ntis-gov:)</name>
                       </tModelInfo>
                    </tModelInfos>
                 </tModelList> 
              </soapenv:Body>
           </soapenv:Envelope>
        0

        HTTP/1.1 200 OK
        Content-Type: text/xml; charset=utf-8
        Transfer-Encoding: chunked
        Date: Tue, 20 Jan 2004 10:08:04 GMT
        Server: Apache Coyote/1.0

        425

           <?xml version="1.0" encoding="UTF-8"?>
              <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
                 <soapenv:Body>
                    <tModelDetail generic="2.0" operator="jUDDI.org" xmlns="urn:uddi-org:api_v2">
                       <tModel authorizedName="Administrator" operator="jUDDI.org" tModelKey="uuid:C0B9FE13-179F-413D-8A5B-5004DB8E5BB2">
                          <name>naics:1997(ntis-gov:)</name>
                          <description xml:lang="en">Business Taxonomy: NAICS(1997 Release)</description>
                          <overviewDoc>
                             <overviewURL>http://www.uddi.org/taxonomies/UDDI_Taxonomy_tModels.htm#NAICS</overviewURL>
                             <description xml:lang="en">This tModel defines the NAICS industry taxonomy.</description>
                          </overviewDoc>
                          <identifierBag/>
                          <categoryBag>
                             <keyedReference keyName="types" keyValue="categorization" tModelKey="uuid:C1ACF26D-9672-4404-9D70-39B756E62AB4"/>
                             <keyedReference keyName="types" keyValue="checked" tModelKey="uuid:C1ACF26D-9672-4404-9D70-39B756E62AB4"/>
                          </categoryBag>
                       </tModel>
                    </tModelDetail> 
                 </soapenv:Body>
              </soapenv:Envelope>
        0


        Thanks for your help,
        David.


          ----- Original Message ----- 
          From: Steve Viens 
          To: juddi-user@ws.apache.org 
          Sent: Sunday, January 18, 2004 5:32 PM
          Subject: RE: Error while getting classifications


          David, 

          It looks as if the JAXR browser is having trouble parsing the jUDDI response ... and there's not enough information in the message below to know if that jUDDI response is a successful one or a fault. Could you execute this query using a TCP monitor of some sort (there's one bundled with Axis) so that we can see the actual SOAP request and response? 

          Also, please include some information about you're jUDDI installation such as jUDDI version, App Server, DB Server, etc.

          Steve

          -----Original Message-----
          From: David Hermet [mailto:david.hermet@isima.fr] 
          Sent: Friday, January 16, 2004 11:21 AM
          To: juddi-user@ws.apache.org
          Cc: Delphine D (Isima)
          Subject: Error while getting classifications
          Importance: High


          Hello,

          We are using JAX  R-browser from JWSDP package. An error occurs while getting classifications (from tModel table) with "findClassificationSchemeByName" method.
          We want to add classifications into Juddi, and find them with a browser (JAXR-browser in our case). There's some troubles when a row is stored into tModel table and when we want to find it with his name; an exception occurs :

          DefaultValidationEventHandler: [ERROR]: Unexpected element {urn:uddi-org:api_v2}
          :description
               Location:
          javax.xml.registry.JAXRException: javax.xml.bind.UnmarshalException: Unexpected
          element {urn:uddi-org:api_v2}:description

          Would you have an idea to resolve this problem?

          Thanks,
          David