Hi DouglasDD,

-----Urspr�ngliche Nachricht-----
>Von: Douglas D. Dickinson [mailto:[EMAIL PROTECTED]]
>Gesendet: Dienstag, 13. Februar 2001 01:55
>An: jboss-user
>Betreff: [jBoss-User] ZOAP: need a SOAP client to test with...


>I appologize is the message is a bit confused,
>but the truth is that I *am* confused!

>After some fiddling I *believe* that I have ZOAP creating SOAP interfaces
for the EJBs that >I deploy.
>(At least jboss no longer throws exceptions when I drop my .jar into
jboss/deploy/)

>My main question is:
>Where can I find a *simple* tool to allow me to:
>  - see what the zoap-deployed soap interfaces look like.
>  - fire SOAP queries at my deployed EJB via SOAP.

Create a client-side SoapInvocationHandler along the test.Test.setup() code:


      URL proxyURL=     new URL("http://appserverhost:2121/");

      URL targetURL=  new URL(proxyURL,"jndiName/");

      SoapBinding newBinding=new
org.zoap.soap.meta.builtin.DefaultBinding();

      testProxy=(TestInterface)
        java.lang.reflect.Proxy.newProxyInstance(
          Thread.currentThread().getContextClassLoader(),
            new Class[] {TestInterface.class},
              new
SoapInvocationHandler(null,proxyURL,targetURL,newBinding));

and then simply call a business method:

        testProxy.test();

Otherwise (if you use the "explicit" Binding DefaultMetaBinding), your
meta-data and service descriptions are indeed described by the contents of
the .scl and .xsd files.

>Other questions:
>  - What port(s) are the zoap interfaces on?

2121 per default (see the http entry in org.jboss.zoap.conf)

>  - Anyone using  Perl's SOAP::Lite module?

no ... yet, ZOAP is not fully interoperable with, e.g., Apache-SOAP, because
we still need
a special org.zoap.soap.meta.SoapEncodingBinding (this would, however,
restrict the possibilities of the transported data-structures wrt. null
values and polymorphism!) or a
org.zoap.soap.meta.XMIEncodingBinding. 

I�m looking for volunteers to assist with this task!

>As I understand it there are 2 different ways to zoap-enable an EJB jar:
>(1) Simple:  Add to META-INF/jboss.xml
>      This is almost working for me
>(2) Complex: META-INF/com/me/ClassNames*.scl & *.xsd
>      This seems to be the method use in test-bean.jar/test-client.jar

see my previous mail about automatic versus explicit binding.

>  - I have no idea what the *.scl or *.xsd files are or how they are
created.

As said before, either use the automatic mode or help us to implement
XMIEncondingBinding or SoapEncodingBinding ... we at info have a generator
embedded into Together/J for that (but it makes too much presumptions about
the kind of business model you use such that it is not of general use).

>Any clarifications greatly appreciated.
>( Please forgive my ignorance I'm very new to all of:  EJBs, SOAP, jboss, &
zoap !-)

Please forgive that the ZOAP package is not very well documented because of
a lack of time.

Best,
CGJ


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
List Help?:          [EMAIL PROTECTED]

Reply via email to