juddi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harvey Jiang <harv...@objectconsulting.com.au>
Subject is it a defect for lang_code
Date Fri, 19 Nov 2004 05:42:58 GMT
Hi all,

When I send the request described below:

<save_business generic="2.0"
xmlns="urn:uddi-org:api_v2"><authInfo>authToken:9E974CB0-39E5-11D9-8CB0-9479
47F4D08B</authInfo><businessEntity businessKey=""><name xml:lang="en-US"
xmlns:xml="http://www.w3.org/XML/1998/namespace">ConfiguratorA</name></busin
essEntity></save_business>

(Note: the attribute xml:lang="en-US")

I received the following error:

Response message:
<Fault><faultstring>ORA-01401: inserted value too large for column
</faultstring></Fault>
ORA-01401: inserted value too large for column
	at org.uddi4j.UDDIElement.<init>(Unknown Source)
	at org.uddi4j.response.BusinessDetail.<init>(Unknown Source)
	at org.uddi4j.client.UDDIProxy.save_business(Unknown Source)
	at
au.com.oopl.soa.ws.service.publish.PublishSample.publishBusinesses(PublishSa
mple.java:253)
	at
au.com.oopl.soa.ws.service.publish.PublishSample.main(PublishSample.java:80)

When I sent the request:

<save_business generic="2.0"
xmlns="urn:uddi-org:api_v2"><authInfo>authToken:07F23510-39E8-11D9-B510-837E
57DA3565</authInfo><businessEntity businessKey=""><name xml:lang="en"
xmlns:xml="http://www.w3.org/XML/1998/namespace">ConfiguratorA</name></busin
essEntity></save_business>

(Note: the attribute xml:lang="en")

I received the following error:

TransportFactory: Using transport
name:org.uddi4j.transport.ApacheAxisTransport

Request message:
<get_authToken generic="2.0" userID="harveyj" cred="password"
xmlns="urn:uddi-org:api_v2"/>

Response message:
<authToken generic="2.0" operator="jUDDI.org"
xmlns="urn:uddi-org:api_v2"><authInfo>authToken:07F23510-39E8-11D9-B510-837E
57DA3565</authInfo></authToken>

Request message:
<save_business generic="2.0"
xmlns="urn:uddi-org:api_v2"><authInfo>authToken:07F23510-39E8-11D9-B510-837E
57DA3565</authInfo><businessEntity businessKey=""><name xml:lang="en"
xmlns:xml="http://www.w3.org/XML/1998/namespace">ConfiguratorA</name></busin
essEntity></save_business>
org.uddi4j.transport.TransportException: Error: URI=null Line=1: Illegal
Namespace prefix: "xml".
	at org.uddi4j.transport.ApacheAxisTransport.send(Unknown Source)
	at org.uddi4j.transport.TransportBase.send(Unknown Source)
	at org.uddi4j.client.UDDIProxy.send(Unknown Source)
	at org.uddi4j.client.UDDIProxy.save_business(Unknown Source)
	at
au.com.oopl.soa.ws.service.publish.PublishSample.publishBusinesses(PublishSa
mple.java:253)
	at
au.com.oopl.soa.ws.service.publish.PublishSample.main(PublishSample.java:80)

Nested exception:
org.xml.sax.SAXException: Error: URI=null Line=1: Illegal Namespace prefix:
"xml".
	at
org.apache.axis.utils.XMLUtils$ParserErrorHandler.error(XMLUtils.java:619)
	at org.apache.crimson.parser.Parser2.error(Parser2.java:3359)
	at
org.apache.crimson.parser.Parser2.processAttributeNS(Parser2.java:1772)
	at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1620)
	at org.apache.crimson.parser.Parser2.content(Parser2.java:1963)
	at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1691)
	at org.apache.crimson.parser.Parser2.content(Parser2.java:1963)
	at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1691)
	at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:667)
	at org.apache.crimson.parser.Parser2.parse(Parser2.java:337)
	at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448)
	at
org.apache.crimson.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:1
85)
	at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:322)
	at
org.apache.axis.message.MessageElement.getAsDocument(MessageElement.java:688
)
	at
org.apache.axis.message.MessageElement.getAsDOM(MessageElement.java:714)
	at org.uddi4j.transport.ApacheAxisTransport.send(Unknown Source)
	at org.uddi4j.transport.TransportBase.send(Unknown Source)
	at org.uddi4j.client.UDDIProxy.send(Unknown Source)
	at org.uddi4j.client.UDDIProxy.save_business(Unknown Source)
	at
au.com.oopl.soa.ws.service.publish.PublishSample.publishBusinesses(PublishSa
mple.java:253)
	at
au.com.oopl.soa.ws.service.publish.PublishSample.main(PublishSample.java:80)

I understand that in the spec the attribute xml:lang is designed as two
characters.
 
Do we have to change the juddi database schema which allows four characters
for the lang_code?

Regards, Harvey

Mime
View raw message