Thanks to Steve's help I am now able to successfully run the uddi4j samples.  I had simply switched pubisher.url and inquiry.url in the uddi4j properties file.

I am still having trouble with the sun jaxr samples though. When I run the business query test I get the following exception.

Exception in thread "main" java.lang.IllegalArgumentException
    at com.sun.xml.registry.uddi.bindings_v2.impl.runtime.UnmarshallerImpl.unmarshal(Unknown Source)
    at com.sun.xml.registry.common.util.MarshallerUtil.jaxbUnmarshalObject(Unknown Source)
    at com.sun.xml.registry.uddi.Processor.processResponseJAXB(Unknown Source)
    at com.sun.xml.registry.uddi.Processor.processRequestJAXB(Unknown Source)
    at com.sun.xml.registry.uddi.UDDIMapper.findOrganizations(Unknown Source)
    at com.sun.xml.registry.uddi.BusinessQueryManagerImpl.findOrganizations(Unknown Source)
    at BusinessQueryTest.executeQueryTest(BusinessQueryTest.java:57)
    at BusinessQueryTest.main(BusinessQueryTest.java:29)

The request and response messages are as follows.

--- request ----
POST /juddi/inquiry HTTP/1.1
Content-Type: text/xml; charset=utf-8
Content-Length: 403
SOAPAction: ""
Cache-Control: no-cache
Pragma: no-cache
User-Agent: Java/1.5.0_01
Host: localhost:8080
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
 
<?xml version="1.0" encoding="utf-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header/><SOAP-ENV:Body><find_business xmlns="urn:uddi-org:api_v2" generic="2.0"><findQualifiers><findQualifier>sortByNameDesc</findQualifier></findQualifiers><name xml:lang="en">%USA%</name><name xml:lang="en-US">%USA%</name></find_business></SOAP-ENV:Body></SOAP-ENV:Envelope>


-- responce --
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: text/xml;charset=utf-8
Transfer-Encoding: chunked
Date: Fri, 06 Jan 2006 22:49:05 GMT
 
180
<?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>
  <businessList generic="2.0" operator="jUDDI.org" xmlns="urn:uddi-org:api_v2">
   <businessInfos/>
  </businessList>
 </soapenv:Body>
</soapenv:Envelope>
0
 

I'm not really sure what to make of the 180 and 0 around the soap response message.  I saw a similar issue in a previous post but no resolution was posted.

I've tried the same test against the public IBM registry and it worked properly.

Has anyone seen a resolution to this problem?

-Dan

On 1/6/06, Steve Viens <[EMAIL PROTECTED]> wrote:
Dan, I obviously didn't read your entire post ... sounds like you've already looked into the things I was interested in.
 
On 1/6/06, Steve Viens <[EMAIL PROTECTED]> wrote:
Dan, can you try invoking the find_business operation from the jUDDI Console and post the XML request/response here? 
 
Also, it would help in diagnosing the problem if you could provide a sample of the UDDI4j XML request message (and response if available).  You should be able to acquire this through the use of the Axis TCP Monitor.
 
Steve
 
On 1/5/06, Daniel Thibault <[EMAIL PROTECTED] > wrote:
Hey Everyone,

I'm looking for some help getting uddi4j or sun jaxr connected to jUDDI.

I've setup jUDDI 0.9rc4 with the following:
- J2SDK 1.5
- Tomcat 5.5.9
- Using Postgres for my DataStore
   - web.xml, juddi.propertied, and server.xml are all set to ....jdbc/juddiDB

The jUDDI Happiness Page is Happy with no errors indicated.

When I try running the uddi4j FindBussinessExample I get the following;

*********** Running FindBusinessExample ***********
UDDIException faultCode:soapenv:Client
 operator:jUDDI.org
 generic:2.0E_unsupported (10050) The implementor does not support a feature or API. The operation find_business is not supported by the UDDI version 2 Publish API.

 errno:10050

 errCode:E_unsupported
 errInfoText:E_unsupported (10050) The implementor does not support a feature or API. The operation find_business is not supported by the UDDI version 2 Publish API.

    at org.uddi4j.UDDIElement.<init>(UDDIElement.java:40)
    at org.uddi4j.response.BusinessList.<init>(BusinessList.java:85)
    at org.uddi4j.client.UDDIProxy.find_business(UDDIProxy.java :676)
    at FindBusinessExample.run(FindBusinessExample.java:74)
    at FindBusinessExample.main(FindBusinessExample.java:44)

The use of a sniffer indicates the SOAP message is being created properly.  I actually copied the message and pasted it into the jUDDI console and it performed the operation successfully.

I also tried running the sun jaxr samples and got a similar E_unsupported error.

A prior posted indicated a possible issue with the use of J2SDK 1.5 on the client side.  I tried reverting back to 1.4 and got the same unsupported result.

Any help with this problem would be greatly appreciated.

Thanks in advance
Dan


Reply via email to