[prev in list] [next in list] [prev in thread] [next in thread] 

List:       juddi-user
Subject:    [jUDDI-users] RE: How to request external UDDI registries?
From:       "Al Caponi" <don_alcaponi () yahoo ! com ! sg>
Date:       2002-01-24 2:37:04
[Download RAW message or body]

MessageI succeeded in requesting the following URL which I've got from a
Yahoo UDDI technical groups post:

http://www-3.ibm.com:80/services/uddi/testregistry/inquiryapi


For the previous post (http://uddi.hp.com/inquire) I finally got an
exception after 15 mins:
    java.net.SocketException: Connection reset by peer: JVM_recv in socket
input stream read

I've included the port number 80 afterwards and I'm still waiting.

My guess would be that I've got the wrong URL.

Al


  -----Original Message-----
  From: Al Caponi [mailto:don_alcaponi@yahoo.com.sg]
  Sent: Thursday, January 24, 2002 5:56 PM
  To: jUDDI-users@lists.sourceforge.net
  Subject: How to request external UDDI registries?


      Hi all,
      I'm trying to connect to an external UDDI registry and I've been
waiting for ard 10mins without any reply coming in.
      My code is as follows:

      /* START CODE */
      import org.juddi.request.FindBusinessRequest;
      import org.juddi.soap.client.SOAPClient;

      public class FindBusinessRequestTest
      {

        public FindBusinessRequestTest()
        {
        }

        public static void main(String[] args) throws Exception
        {
          FindBusinessRequest fbr = new FindBusinessRequest();

          fbr.setName("test");
          fbr.setMaxRows(10);

          String url = "http://uddi.hp.com/inquire";
          String resp = SOAPClient.sendUDDIRequest(url, fbr.toXML());
          System.out.println(resp);

        }
      }

      /* END CODE */

      I guess it's ok to use the SOAPClient to perform that request right?

      What am I missing here?

      Regards
      Al

[Attachment #3 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.2614.3500" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=630453110-24012002>I 
succeeded&nbsp;in requesting the following URL which I've got from a Yahoo UDDI 
technical groups post:</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=630453110-24012002>&nbsp;&nbsp;&nbsp; 
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=630453110-24012002><A 
href="http://www-3.ibm.com:80/services/uddi/testregistry/inquiryapi">http://www-3.ibm.com:80/services/uddi/testregistry/inquiryapi</A></SPAN></FONT></DIV>
 <DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=630453110-24012002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=630453110-24012002></SPAN></FONT>&nbsp;</DIV></SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=630453110-24012002>For 
the previous post (<A 
href="http://uddi.hp.com/inquire">http://uddi.hp.com/inquire</A>) I finally got 
an exception after 15 mins:</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=630453110-24012002>&nbsp;&nbsp;&nbsp; java.net.SocketException: Connection 
reset by peer: JVM_recv in socket input stream read</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=630453110-24012002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=630453110-24012002>I've 
included the port number 80 afterwards and I'm still 
waiting.</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=630453110-24012002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=630453110-24012002>My 
guess would be that I've got the wrong URL.</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=630453110-24012002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=630453110-24012002>Al</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=630453110-24012002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=630453110-24012002></SPAN></FONT>&nbsp;</DIV>
<BLOCKQUOTE dir=ltr 
style="BORDER-LEFT: #0000ff 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; \
PADDING-LEFT: 5px">  <DIV align=left class=OutlookMessageHeader dir=ltr><FONT \
face=Tahoma   size=2>-----Original Message-----<BR><B>From:</B> Al Caponi 
  [mailto:don_alcaponi@yahoo.com.sg]<BR><B>Sent:</B> Thursday, January 24, 2002 
  5:56 PM<BR><B>To:</B> jUDDI-users@lists.sourceforge.net<BR><B>Subject:</B> How 
  to request external UDDI registries?<BR><BR></DIV></FONT>
  <BLOCKQUOTE dir=ltr 
  style="BORDER-LEFT: #0000ff 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; \
PADDING-LEFT: 5px">  <BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
      <DIV><FONT color=#0000ff face=Arial size=2><SPAN 
      class=320544709-24012002>Hi all,</SPAN></FONT></DIV>
      <DIV><FONT color=#0000ff face=Arial size=2><SPAN 
      class=320544709-24012002>I'm trying to connect to an external UDDI 
      registry and I've been waiting for ard 10mins without any reply coming 
      in.</SPAN></FONT></DIV>
      <DIV><FONT color=#0000ff face=Arial size=2><SPAN 
      class=320544709-24012002>My code is as follows:</SPAN></FONT></DIV>
      <DIV><FONT color=#0000ff face=Arial size=2><SPAN 
      class=320544709-24012002></SPAN></FONT>&nbsp;</DIV>
      <DIV><FONT color=#0000ff face=Arial size=2><SPAN 
      class=320544709-24012002>/* START CODE */</SPAN></FONT></DIV>
      <DIV><FONT color=#0000ff face=Arial size=2><SPAN 
      class=320544709-24012002>import 
      org.juddi.request.FindBusinessRequest;<BR>import 
      org.juddi.soap.client.SOAPClient;</SPAN></FONT></DIV>
      <DIV>&nbsp;</DIV>
      <DIV><FONT color=#0000ff face=Arial size=2><SPAN 
      class=320544709-24012002>public class 
      FindBusinessRequestTest<BR>{</SPAN></FONT></DIV>
      <DIV>&nbsp;</DIV>
      <DIV><FONT color=#0000ff face=Arial size=2><SPAN 
      class=320544709-24012002>&nbsp; public FindBusinessRequestTest()<BR>&nbsp; 
      {<BR>&nbsp; }</SPAN></FONT></DIV>
      <DIV>&nbsp;</DIV>
      <DIV><FONT color=#0000ff face=Arial size=2><SPAN 
      class=320544709-24012002>&nbsp; public static void main(String[] args) 
      throws Exception<BR>&nbsp; {<BR>&nbsp;&nbsp;&nbsp; FindBusinessRequest fbr 
      = new FindBusinessRequest();</SPAN></FONT></DIV>
      <DIV>&nbsp;</DIV>
      <DIV><FONT color=#0000ff face=Arial size=2><SPAN 
      class=320544709-24012002>&nbsp;&nbsp;&nbsp; 
      fbr.setName("test");<BR>&nbsp;&nbsp;&nbsp; 
      fbr.setMaxRows(10);<BR>&nbsp;&nbsp;&nbsp;</SPAN></FONT></DIV>
      <DIV><FONT color=#0000ff face=Arial size=2><SPAN 
      class=320544709-24012002>&nbsp;&nbsp;&nbsp;&nbsp;String url = "<A 
      href='http://uddi.hp.com/inquire"'>http://uddi.hp.com/inquire"</A>;<BR>&nbsp;&nbsp;&nbsp; \
  String resp = SOAPClient.sendUDDIRequest(url, 
      fbr.toXML());<BR>&nbsp;&nbsp;&nbsp; 
      System.out.println(resp);</SPAN></FONT></DIV>
      <DIV>&nbsp;</DIV>
      <DIV><FONT color=#0000ff face=Arial size=2><SPAN 
      class=320544709-24012002>&nbsp; }<BR>}</SPAN></FONT></DIV>
      <DIV><FONT color=#0000ff face=Arial size=2><SPAN 
      class=320544709-24012002></SPAN></FONT>&nbsp;</DIV>
      <DIV><FONT color=#0000ff face=Arial size=2><SPAN 
      class=320544709-24012002>/* END CODE */</SPAN></FONT></DIV>
      <DIV><FONT color=#0000ff face=Arial size=2><SPAN 
      class=320544709-24012002></SPAN></FONT>&nbsp;</DIV>
      <DIV><FONT color=#0000ff face=Arial size=2><SPAN 
      class=320544709-24012002>I guess it's ok to use the SOAPClient to perform 
      that request right?</SPAN></FONT></DIV>
      <DIV>&nbsp;</DIV>
      <DIV><FONT color=#0000ff face=Arial size=2><SPAN 
      class=320544709-24012002>What am I missing here?</SPAN></FONT></DIV>
      <DIV><FONT color=#0000ff face=Arial size=2><SPAN 
      class=320544709-24012002></SPAN></FONT>&nbsp;</DIV>
      <DIV><FONT color=#0000ff face=Arial size=2><SPAN 
      class=320544709-24012002>Regards</SPAN></FONT></DIV>
      <DIV><FONT color=#0000ff face=Arial size=2><SPAN 
      class=320544709-24012002>Al</SPAN></FONT></DIV></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>



_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic