I first send :
<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><ns1:find_business generic="2.0" xmlns="urn:uddi-org:api_v2" xmlns:ns1="urn:uddi-org:api_v2"><name xmlns="urn:uddi-org:api_v2">TS Default Organization</name></ns1:find_business></soapenv:Body></soapenv: Envelope>
and get back
<?xml version="1.0" encoding="UTF-8" ?><SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/"><SOAP: Body><businessList generic="2.0" xmlns="urn:uddi-org:api_v2" operator="www.ibm.com/services/uddi" truncated="false"><businessInfos><businessInfo businessKey="BCC176C0-4508-11D8-B936-000629DC0A53"><name xml:lang="en">TS Default Organization</name><description xml:lang="en">TS default Organization Data</description><serviceInfos><serviceInfo serviceKey="C8D8DCA0-4508-11D8-B936-000629DC0A53" businessKey="BCC176C0-4508-11D8-B936-000629DC0A53"><name xml:lang="en">Name:Test Service</name></serviceInfo><serviceInfo serviceKey="BCDA7D00-4508-11D8-B936-000629DC0A53" businessKey="BCC176C0-4508-11D8-B936-000629DC0A53"><name xml:lang="en">TS Default Service</name></serviceInfo></serviceInfos></businessInfo></ businessInfos></businessList></SOAP:Body></SOAP:Envelope>
then I do :
<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><ns1:get_businessDetail generic="2.0" xmlns="urn:uddi-org:api_v2" xmlns:ns1="urn:uddi-org:api_v2"><businessKey xmlns="urn:uddi-org:api_v2">BCC176C0-4508-11D8-B936-000629DC0A53</ businessKey></ns1:get_businessDetail></soapenv:Body></soapenv:Envelope>
and I get :
<?xml version="1.0" encoding="UTF-8" ?><SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/"><SOAP: Body><businessDetail generic="2.0" xmlns="urn:uddi-org:api_v2" operator="www.ibm.com/services/uddi" truncated="false"><businessEntity businessKey="BCC176C0-4508-11D8-B936-000629DC0A53" operator="www.ibm.com/services/uddi" authorizedName="100000BRCT"><discoveryURLs><discoveryURL useType="businessEntity">http://uddi.ibm.com/testregistry/uddiget? businessKey=BCC176C0-4508-11D8-B936-000629DC0A53</discoveryURL></ discoveryURLs><name xml:lang="en">TS Default Organization</name><description xml:lang="en">TS default Organization Data</description><contacts><contact><description xml:lang="en">TS default User Primary Contact Data</description><personName>TS Test Person</personName></contact><contact useType="defaultUser"><description xml:lang="en">Flintstone</description><personName>Fred Flintstone</personName><phone>123-1234</phone><email useType="whatever">[EMAIL PROTECTED]</email></contact><contact useType="defaultUser"><description xml:lang="en">Flintstone</description><personName>Wilma Flintstone</personName><phone>123-1234</phone><email useType="whatever">[EMAIL PROTECTED]</email></contact><contact useType="defaultUser"><description xml:lang="en">Rubble</description><personName>Betty Rubble</personName><phone>123-1234</phone><email useType="whatever">[EMAIL PROTECTED]</email></contact></ contacts><businessServices><businessService serviceKey="BCDA7D00-4508-11D8-B936-000629DC0A53" businessKey="BCC176C0-4508-11D8-B936-000629DC0A53"><name xml:lang="en">TS Default Service</name><description xml:lang="en">TS default Service Data</description></businessService><businessService serviceKey="C8D8DCA0-4508-11D8-B936-000629DC0A53" businessKey="BCC176C0-4508-11D8-B936-000629DC0A53"><name xml:lang="en">Name:Test Service</name><description xml:lang="en">Description: Testservice</description></businessService></businessServices></ businessEntity></businessDetail></SOAP:Body></SOAP:Envelope>
I'm going to go stare at the schemas to see if I can make any sense of this.
thanks
On Feb 9, 2005, at 3:26 PM, Davanum Srinivas wrote:
"java -jar axis.jar org.apache.axis.utils.tcpmon"
On Wed, 9 Feb 2005 15:17:24 -0500, Geir Magnusson Jr <[EMAIL PROTECTED]> wrote:
On Feb 9, 2005, at 3:08 PM, Viens, Stephen wrote:
Geir, is this what you're seeing in a/the juddi.log file?
I can't find a juddi.log file.
Here's what I'm doing - I'm using latest cvs/svn of scout and juddi as my jaxr implementation for the J2EE TCK for geronimo. I'm doing the simplest thing possible right now - just making a jaxr connection factory available via JNDI to the test suite. I'm not doing any configuration or -ish for either scout or juddi. Am happy to do anything to provide more insight.
It would help to see the request message (in XML) if that's possible.
Can you try making your query to the IBM registry through a TCP Monitor
(such as the one that comes with Axis?)
I can certainly try - I'm very new to WS, so I'm pretty ignorant of basic development practice, so bear w/ me as I come up to speed. Any hints to get more useful information out of what I am doing is appreciated, and I'm off now to figure out where to get and how to use the TCP monitor.
Thanks again
geir
Steve
-----Original Message----- From: Geir Magnusson Jr. [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 09, 2005 2:46 PM To: [email protected] Subject: Re: "Client error" (newbie question)
On Feb 9, 2005, at 10:36 AM, Anil Saldhana wrote:
Geir, looks like you are using the Crimson parser that comes with the JDK. You should be using Xerces. The way to do is to set a System property "java.endorsed.dirs" that points to your xerces jars.
Ok - I got xerces working but I seem to have the same thing :
[java]
[EMAIL PROTECTED] a7
1
[java] ?Org has users=false
[java] Telephone=123-1234
[java] Telephone=123-1234
[java] Telephone=123-1234
[java] Method:save_business: ENlength=1
[java] AxisFault
[java] faultCode: Client
[java] faultSubcode:
[java] faultString: Client Error
[java] faultActor:
[java] faultNode:
[java] faultDetail:
[java] {urn:uddi-org:api_v2}dispositionReport:<result
errno="10500"><errInfo errCode="E_fatalError">E_fatalError (10500)
Serious technical error has occurred while processing the request.
cvc-complex-type.4: Attribute 'businessKey' must appear on element
'businessEntity'.</errInfo></result>
[java]
[java] Client Error
[java] at
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder .j
a
va:221)
[java] at
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder. ja
v
a:128)
[java] at
org.apache.axis.encoding.DeserializationContext.endElement(Deserializ at
i
onContext.java:1077)
[java] at
org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
[java] at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknow n
Source)
[java] at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent Di
s
patcher.dispatch(Unknown Source)
[java] at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un kn
o
wn Source)
[java] at
org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
[java] at
org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
[java] at org.apache.xerces.parsers.XMLParser.parse(Unknown
Source)
[java] at
org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
[java] at javax.xml.parsers.SAXParser.parse(Unknown Source)
[java] at
org.apache.axis.encoding.DeserializationContext.parse(Deserialization Co
n
text.java:225)
[java] at
org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:645)
[java] at
org.apache.axis.Message.getSOAPEnvelope(Message.java:424)
[java] at
org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.j av
a
:723)
[java] at
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:94)
[java] at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrateg y.
j
ava:32)
[java] at
org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
[java] at
org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
[java] at
org.apache.axis.client.AxisClient.invoke(AxisClient.java:147)
[java] at
org.apache.axis.client.Call.invokeEngine(Call.java:2737)
[java] at org.apache.axis.client.Call.invoke(Call.java:2720)
[java] at org.apache.axis.client.Call.invoke(Call.java:1756)
[java] at
org.apache.juddi.proxy.AxisTransport.send(AxisTransport.java:59)
[java] at
org.apache.juddi.proxy.RegistryProxy.execute(RegistryProxy.java:371)
[java] at
org.apache.juddi.AbstractRegistry.saveBusiness(AbstractRegistry.java:
582)
[java] at
org.apache.ws.scout.registry.BusinessLifeCycleManagerImpl.executeOper at
i
on(BusinessLifeCycleManagerImpl.java:459)
[java] at
org.apache.ws.scout.registry.BusinessLifeCycleManagerImpl.saveOrganiz at
i
ons(BusinessLifeCycleManagerImpl.java:321)
Anil
--- "Geir Magnusson Jr." <[EMAIL PROTECTED]> wrote:
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilde r.
Ok - I'm a real newbie, and don't grok how one debugs things here.
I'm testing against IBMs public testregistry (is there a better one?). I have the following problem all over the place. I'm using the latest CVS of jUDDI and Scout. Can someone spend 2 min to describe what is going on, how I should start figuring out what the error is?
[java] Method:save_business: ENlength=1 [java] AxisFault [java] faultCode: Client [java] faultSubcode: [java] faultString: Client Error [java] faultActor: [java] faultNode: [java] faultDetail: [java] {urn:uddi-org:api_v2}dispositionReport:<result errno="10500"><errInfo errCode="E_fatalError">E_fatalError (10500) Serious technical error has occurred while processing the request. cvc-complex-type.4: Attribute 'businessKey' must appear on element 'businessEntity'.</errInfo></result> [java] [java] Client Error [java] at
j
aorg.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder .j
va:221) [java] at
a
vorg.apache.axis.encoding.DeserializationContext.endElement(Deseriali za
a:128) [java] at
t
iorg.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1712)
onContext.java:1077) [java] at
org.apache.crimson.parser.Parser2.content(Parser2.java:1963)[java] at
org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1691)[java] at
org.apache.crimson.parser.Parser2.content(Parser2.java:1963)[java] at
org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1691)[java] at
org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:667)[java] at
org.apache.crimson.parser.Parser2.parse(Parser2.java:337)[java] at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java: 448)[java] at
javax.xml.parsers.SAXParser.parse(SAXParser.java:345)[java] at
org.apache.axis.encoding.DeserializationContext.parse(Deserializatio nC[java] at
o
norg.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:645)
text.java:225) [java] at
org.apache.axis.Message.getSOAPEnvelope(Message.java:424)[java] at
org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender. ja[java] at
v
aorg.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:94)
:723) [java] at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrate gy[java] at
.
jorg.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
ava:32) [java] at
org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)[java] at
org.apache.axis.client.AxisClient.invoke(AxisClient.java:147)[java] at
org.apache.axis.client.Call.invokeEngine(Call.java:2737)[java] at
org.apache.juddi.proxy.AxisTransport.send(AxisTransport.java:59)[java] at org.apache.axis.client.Call.invoke(Call.java:2720) [java] at org.apache.axis.client.Call.invoke(Call.java:1756) [java] at
org.apache.juddi.proxy.RegistryProxy.execute(RegistryProxy.java:371)[java] at
org.apache.juddi.AbstractRegistry.saveBusiness(AbstractRegistry.java :[java] at
org.apache.ws.scout.registry.BusinessLifeCycleManagerImpl.executeOpe ra
582) [java] at
t
iorg.apache.ws.scout.registry.BusinessLifeCycleManagerImpl.saveOrgani za
on(BusinessLifeCycleManagerImpl.java:459) [java] at
t
i
ons(BusinessLifeCycleManagerImpl.java:321)
-- Geir Magnusson Jr +1-203-665-6437 [EMAIL PROTECTED]
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
-- Geir Magnusson Jr +1-203-665-6437 [EMAIL PROTECTED]
-- Geir Magnusson Jr +1-203-665-6437 [EMAIL PROTECTED]
-- Davanum Srinivas - http://webservices.apache.org/~dims/
-- Geir Magnusson Jr +1-203-665-6437 [EMAIL PROTECTED]
