You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@juddi.apache.org by Sameer <st...@cs.vt.edu> on 2005/11/23 10:05:43 UTC
uddi4j/c# to juddi interfacing problems
Hi,
I am building a private UDDI registry.
I am using juddi as uddi server which connects to mysql database.
Juddi is installed as a webapp on Tomcat 5.5.12. All the components
pass "Happy" Tests provided within.
My Tomcat has other apps such as AXIS, SOAP.
Now I am trying to connect to this juddi with uddi4j and c# uddi API.
Both the client applications fails to convey soap properly.
uddi4j client gives error:
*********** Running FindBusinessExample ***********
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)
C# client gives error: XMLException: Root element is missing.
So I tried to look at the Packets sent to Apache using Axis TCP Monitor:
Output:
Request from UDDI4J client:
POST //juddi//inquiry HTTP/1.0
Host: 127.0.0.1:3456
Content-Type: text/xml; charset=utf-8
Content-Length: 530
SOAPAction: ""
<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Body>
<uddiv2:find_business xmlns:uddiv2="urn:uddi-org:api_v2"
generic="2.0" maxRows="5">
<uddiv2:findQualifiers>
<uddiv2:findQualifier>caseSensitiveMatch</uddiv2:findQualifier>
</uddiv2:findQualifiers>
<uddiv2:name>Microsoft</uddiv2:name>
</uddiv2:find_business>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Request from C# Client:
POST //juddi//inquiry HTTP/1.1
VsDebuggerCausalityData: AwAAAEcip0zOGQ1BjW1Lc6vN1msAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAA*****More than 40 lines of different characters
over here ******* AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAA
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client
Protocol 1.1.4322.2032; MS UDDI .Net SDK 2.0.2128.1)
Content-Type: text/xml; charset=utf-8
SOAPAction: ""
Content-Length: 355
Expect: 100-continue
Connection: Keep-Alive
Host: 127.0.0.1:3456
<?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>
<find_business generic="2.0" xmlns="urn:uddi-org:api_v2">
<name xml:lang="en">Microsoft</name>
</find_business></soap:Body>
</soap:Envelope>
Both receiving Response:
HTTP/1.1 100 Continue
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: text/xml;charset=utf-8
Content-Length: 470
Date: Wed, 23 Nov 2005 08:21:19 GMT
<?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>
<soapenv:Fault>
<faultcode
xmlns:ns1="http://xml.apache.org/axis/">ns1:Server.generalException</faultco
de>
<faultstring></faultstring>
<faultactor></faultactor>
<detail/>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
I see that there is some difference in the way tags are getting formed in
both the cases
and ultimately juddi understands nothing from both of them. : (
Can anybody please please tell me what is the problem.
Thanks,
Sameer