You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by venkata akella <ve...@yahoo.com> on 2001/12/13 23:11:16 UTC

Beanserializer example

Can someone give reference to a working example(client
and service) shows Beanserializer done using apache
soap.

thanks
Sastry
 

__________________________________________________
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

RE: SOLVED probman calling stateless EJB's

Posted by Jeremy Levy <je...@yahoo.com>.
I was missing a line in the descriptor for java class... OOPS thanks anwyays

-----Original Message-----
From: Jeremy Levy [mailto:jelevy01@yahoo.com]
Sent: Friday, December 14, 2001 2:28 PM
To: soap-user@xml.apache.org
Subject: probman calling stateless EJB's


I am trying to call a stateless EJB in Jboss from soap but am getting the
following in tomcat:

=============================================
In TemplateProvider.locate()
URI: urn:juiced
DD.ServiceClass: org.apache.soap.providers.StatelessEJBProvider
DD.ProviderClass: null
Call.MethodName: providerLogin

in my program i get:
java.lang.NullPointerException
        at
com.juiced.provider.callcentral.CallCentral.providerLogin(CallCentral.java:1
28)

line 128 is the line where I return the value to my program the value that
was returned from the soap call...

My deploymentdescriptor.xml is:

<isd:service xmlns:isd="http://xml.apache.org/xml-soap/deployment"
             id="urn:juiced">
  <isd:provider type="org.apache.soap.providers.StatelessEJBProvider"
                scope="Application"
                methods="providerLogin providerInit providerSession
userAuth">
    <isd:option key="JNDIName" value="SessionManager"/>
    <isd:option key="FullHomeInterfaceName"
value="com.juiced.central.sessionmanager.SessionManagerHome" />
    <isd:option key="ContextProviderURL" value="jnp://localhost:1099" />
    <isd:option key="FullContextFactoryName"
value="org.jnp.interfaces.NamingContextFactory" />
  </isd:provider>


<isd:faultListener>org.apache.soap.server.DOMFaultListener</isd:faultListene
r>


<isd:mappings>
    <isd:map encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
             xmlns:x="urn:juiced-init" qname="x:cd"
             javaType="com.juiced.common.accessPoint"

java2XMLClassName="org.apache.soap.encoding.soapenc.BeanSerializer"

xml2JavaClassName="org.apache.soap.encoding.soapenc.BeanSerializer"/>

<isd:map encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
             xmlns:x="urn:juiced-session" qname="x:ps"
             javaType="com.juiced.common.userSession"

java2XMLClassName="org.apache.soap.encoding.soapenc.BeanSerializer"

xml2JavaClassName="org.apache.soap.encoding.soapenc.BeanSerializer"/>

<isd:map encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
             xmlns:x="urn:juiced-session" qname="x:fu"
             javaType="com.juiced.common.firewallUpdate"

java2XMLClassName="org.apache.soap.encoding.soapenc.BeanSerializer"

xml2JavaClassName="org.apache.soap.encoding.soapenc.BeanSerializer"/>
  </isd:mappings>

</isd:service>


I put a system.out.println in my jboss method, so I am pretty sure that is
never getting run...   I had a look at the example ejb soap came with but
when I tried to deploy it I got a ton of errors...  Has anyone gotten that
to work in Jboss?

I am sure my objects are passing okay because I had the whole thing working
while soap was calling a class, then i took those methods and converted it
to an ejb and now this happens..

any help would be greatly appreachaited.

THank you

Jeremy


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


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


RE: SOLVED probman calling stateless EJB's

Posted by Jeremy Levy <je...@yahoo.com>.
I was missing a line in the descriptor for java class... OOPS thanks anwyays

-----Original Message-----
From: Jeremy Levy [mailto:jelevy01@yahoo.com]
Sent: Friday, December 14, 2001 2:28 PM
To: soap-user@xml.apache.org
Subject: probman calling stateless EJB's


I am trying to call a stateless EJB in Jboss from soap but am getting the
following in tomcat:

=============================================
In TemplateProvider.locate()
URI: urn:juiced
DD.ServiceClass: org.apache.soap.providers.StatelessEJBProvider
DD.ProviderClass: null
Call.MethodName: providerLogin

in my program i get:
java.lang.NullPointerException
        at
com.juiced.provider.callcentral.CallCentral.providerLogin(CallCentral.java:1
28)

line 128 is the line where I return the value to my program the value that
was returned from the soap call...

My deploymentdescriptor.xml is:

<isd:service xmlns:isd="http://xml.apache.org/xml-soap/deployment"
             id="urn:juiced">
  <isd:provider type="org.apache.soap.providers.StatelessEJBProvider"
                scope="Application"
                methods="providerLogin providerInit providerSession
userAuth">
    <isd:option key="JNDIName" value="SessionManager"/>
    <isd:option key="FullHomeInterfaceName"
value="com.juiced.central.sessionmanager.SessionManagerHome" />
    <isd:option key="ContextProviderURL" value="jnp://localhost:1099" />
    <isd:option key="FullContextFactoryName"
value="org.jnp.interfaces.NamingContextFactory" />
  </isd:provider>


<isd:faultListener>org.apache.soap.server.DOMFaultListener</isd:faultListene
r>


<isd:mappings>
    <isd:map encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
             xmlns:x="urn:juiced-init" qname="x:cd"
             javaType="com.juiced.common.accessPoint"

java2XMLClassName="org.apache.soap.encoding.soapenc.BeanSerializer"

xml2JavaClassName="org.apache.soap.encoding.soapenc.BeanSerializer"/>

<isd:map encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
             xmlns:x="urn:juiced-session" qname="x:ps"
             javaType="com.juiced.common.userSession"

java2XMLClassName="org.apache.soap.encoding.soapenc.BeanSerializer"

xml2JavaClassName="org.apache.soap.encoding.soapenc.BeanSerializer"/>

<isd:map encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
             xmlns:x="urn:juiced-session" qname="x:fu"
             javaType="com.juiced.common.firewallUpdate"

java2XMLClassName="org.apache.soap.encoding.soapenc.BeanSerializer"

xml2JavaClassName="org.apache.soap.encoding.soapenc.BeanSerializer"/>
  </isd:mappings>

</isd:service>


I put a system.out.println in my jboss method, so I am pretty sure that is
never getting run...   I had a look at the example ejb soap came with but
when I tried to deploy it I got a ton of errors...  Has anyone gotten that
to work in Jboss?

I am sure my objects are passing okay because I had the whole thing working
while soap was calling a class, then i took those methods and converted it
to an ejb and now this happens..

any help would be greatly appreachaited.

THank you

Jeremy


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


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


probman calling stateless EJB's

Posted by Jeremy Levy <je...@yahoo.com>.
I am trying to call a stateless EJB in Jboss from soap but am getting the
following in tomcat:

=============================================
In TemplateProvider.locate()
URI: urn:juiced
DD.ServiceClass: org.apache.soap.providers.StatelessEJBProvider
DD.ProviderClass: null
Call.MethodName: providerLogin

in my program i get:
java.lang.NullPointerException
        at
com.juiced.provider.callcentral.CallCentral.providerLogin(CallCentral.java:1
28)

line 128 is the line where I return the value to my program the value that
was returned from the soap call...

My deploymentdescriptor.xml is:

<isd:service xmlns:isd="http://xml.apache.org/xml-soap/deployment"
             id="urn:juiced">
  <isd:provider type="org.apache.soap.providers.StatelessEJBProvider"
                scope="Application"
                methods="providerLogin providerInit providerSession
userAuth">
    <isd:option key="JNDIName" value="SessionManager"/>
    <isd:option key="FullHomeInterfaceName"
value="com.juiced.central.sessionmanager.SessionManagerHome" />
    <isd:option key="ContextProviderURL" value="jnp://localhost:1099" />
    <isd:option key="FullContextFactoryName"
value="org.jnp.interfaces.NamingContextFactory" />
  </isd:provider>


<isd:faultListener>org.apache.soap.server.DOMFaultListener</isd:faultListene
r>


<isd:mappings>
    <isd:map encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
             xmlns:x="urn:juiced-init" qname="x:cd"
             javaType="com.juiced.common.accessPoint"

java2XMLClassName="org.apache.soap.encoding.soapenc.BeanSerializer"

xml2JavaClassName="org.apache.soap.encoding.soapenc.BeanSerializer"/>

<isd:map encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
             xmlns:x="urn:juiced-session" qname="x:ps"
             javaType="com.juiced.common.userSession"

java2XMLClassName="org.apache.soap.encoding.soapenc.BeanSerializer"

xml2JavaClassName="org.apache.soap.encoding.soapenc.BeanSerializer"/>

<isd:map encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
             xmlns:x="urn:juiced-session" qname="x:fu"
             javaType="com.juiced.common.firewallUpdate"

java2XMLClassName="org.apache.soap.encoding.soapenc.BeanSerializer"

xml2JavaClassName="org.apache.soap.encoding.soapenc.BeanSerializer"/>
  </isd:mappings>

</isd:service>


I put a system.out.println in my jboss method, so I am pretty sure that is
never getting run...   I had a look at the example ejb soap came with but
when I tried to deploy it I got a ton of errors...  Has anyone gotten that
to work in Jboss?

I am sure my objects are passing okay because I had the whole thing working
while soap was calling a class, then i took those methods and converted it
to an ejb and now this happens..

any help would be greatly appreachaited.

THank you

Jeremy


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


Re: Beanserializer example

Posted by venkata akella <ve...@yahoo.com>.
Thanaks alot guys.. for very good references...

Sastry

--- Chris Malley <cm...@pixelzoom.com> wrote:
> venkata akella wrote:
> > 
> > Can someone give reference to a working
> example(client
> > and service) shows Beanserializer done using
> apache
> > soap.
> > 
> > thanks
> > Sastry
> 
> 
> A good example can be found in "Java & XML, 2nd
> Edition"
> from O'Reilly.  Chapters 12 & 13 are an excellent
> intro
> to Apache SOAP and general SOAP concepts.
> 
> Source code for the example is here:
>
http://newinstance.com/writing/javaxml2/javaxml2_examples/javaxml2_ch12.zip
> 
> -Chris
> 
> -- 
> Chris Malley
> PixelZoom, Inc.             Voice: +1.303.494.8849
> 835 Orman Drive             EMail:
> cmalley@pixelzoom.com
> Boulder CO 80303-2616


__________________________________________________
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

probman calling stateless EJB's

Posted by Jeremy Levy <je...@yahoo.com>.
I am trying to call a stateless EJB in Jboss from soap but am getting the
following in tomcat:

=============================================
In TemplateProvider.locate()
URI: urn:juiced
DD.ServiceClass: org.apache.soap.providers.StatelessEJBProvider
DD.ProviderClass: null
Call.MethodName: providerLogin

in my program i get:
java.lang.NullPointerException
        at
com.juiced.provider.callcentral.CallCentral.providerLogin(CallCentral.java:1
28)

line 128 is the line where I return the value to my program the value that
was returned from the soap call...

My deploymentdescriptor.xml is:

<isd:service xmlns:isd="http://xml.apache.org/xml-soap/deployment"
             id="urn:juiced">
  <isd:provider type="org.apache.soap.providers.StatelessEJBProvider"
                scope="Application"
                methods="providerLogin providerInit providerSession
userAuth">
    <isd:option key="JNDIName" value="SessionManager"/>
    <isd:option key="FullHomeInterfaceName"
value="com.juiced.central.sessionmanager.SessionManagerHome" />
    <isd:option key="ContextProviderURL" value="jnp://localhost:1099" />
    <isd:option key="FullContextFactoryName"
value="org.jnp.interfaces.NamingContextFactory" />
  </isd:provider>


<isd:faultListener>org.apache.soap.server.DOMFaultListener</isd:faultListene
r>


<isd:mappings>
    <isd:map encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
             xmlns:x="urn:juiced-init" qname="x:cd"
             javaType="com.juiced.common.accessPoint"

java2XMLClassName="org.apache.soap.encoding.soapenc.BeanSerializer"

xml2JavaClassName="org.apache.soap.encoding.soapenc.BeanSerializer"/>

<isd:map encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
             xmlns:x="urn:juiced-session" qname="x:ps"
             javaType="com.juiced.common.userSession"

java2XMLClassName="org.apache.soap.encoding.soapenc.BeanSerializer"

xml2JavaClassName="org.apache.soap.encoding.soapenc.BeanSerializer"/>

<isd:map encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
             xmlns:x="urn:juiced-session" qname="x:fu"
             javaType="com.juiced.common.firewallUpdate"

java2XMLClassName="org.apache.soap.encoding.soapenc.BeanSerializer"

xml2JavaClassName="org.apache.soap.encoding.soapenc.BeanSerializer"/>
  </isd:mappings>

</isd:service>


I put a system.out.println in my jboss method, so I am pretty sure that is
never getting run...   I had a look at the example ejb soap came with but
when I tried to deploy it I got a ton of errors...  Has anyone gotten that
to work in Jboss?

I am sure my objects are passing okay because I had the whole thing working
while soap was calling a class, then i took those methods and converted it
to an ejb and now this happens..

any help would be greatly appreachaited.

THank you

Jeremy


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


Re: Beanserializer example

Posted by venkata akella <ve...@yahoo.com>.
Thanaks alot guys.. for very good references...

Sastry

--- Chris Malley <cm...@pixelzoom.com> wrote:
> venkata akella wrote:
> > 
> > Can someone give reference to a working
> example(client
> > and service) shows Beanserializer done using
> apache
> > soap.
> > 
> > thanks
> > Sastry
> 
> 
> A good example can be found in "Java & XML, 2nd
> Edition"
> from O'Reilly.  Chapters 12 & 13 are an excellent
> intro
> to Apache SOAP and general SOAP concepts.
> 
> Source code for the example is here:
>
http://newinstance.com/writing/javaxml2/javaxml2_examples/javaxml2_ch12.zip
> 
> -Chris
> 
> -- 
> Chris Malley
> PixelZoom, Inc.             Voice: +1.303.494.8849
> 835 Orman Drive             EMail:
> cmalley@pixelzoom.com
> Boulder CO 80303-2616


__________________________________________________
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

Re: Beanserializer example

Posted by Chris Malley <cm...@pixelzoom.com>.
venkata akella wrote:
> 
> Can someone give reference to a working example(client
> and service) shows Beanserializer done using apache
> soap.
> 
> thanks
> Sastry


A good example can be found in "Java & XML, 2nd Edition"
from O'Reilly.  Chapters 12 & 13 are an excellent intro
to Apache SOAP and general SOAP concepts.

Source code for the example is here:
http://newinstance.com/writing/javaxml2/javaxml2_examples/javaxml2_ch12.zip

-Chris

-- 
Chris Malley
PixelZoom, Inc.             Voice: +1.303.494.8849
835 Orman Drive             EMail: cmalley@pixelzoom.com
Boulder CO 80303-2616

Re: Beanserializer example

Posted by Chris Malley <cm...@pixelzoom.com>.
venkata akella wrote:
> 
> Can someone give reference to a working example(client
> and service) shows Beanserializer done using apache
> soap.
> 
> thanks
> Sastry


A good example can be found in "Java & XML, 2nd Edition"
from O'Reilly.  Chapters 12 & 13 are an excellent intro
to Apache SOAP and general SOAP concepts.

Source code for the example is here:
http://newinstance.com/writing/javaxml2/javaxml2_examples/javaxml2_ch12.zip

-Chris

-- 
Chris Malley
PixelZoom, Inc.             Voice: +1.303.494.8849
835 Orman Drive             EMail: cmalley@pixelzoom.com
Boulder CO 80303-2616

RE: Beanserializer example

Posted by Jeremy Levy <je...@yahoo.com>.
A wonderful reference is
http://www.oreilly.com/catalog/javaxml2/chapter/ch12.html, which very
clearly explains how to use the beanserializer.. And includes source
code..

Jeremy

-----Original Message-----
From: venkata akella [mailto:venkataakella@yahoo.com] 
Sent: Thursday, December 13, 2001 5:11 PM
To: soap-user@xml.apache.org
Subject: Beanserializer example


Can someone give reference to a working example(client
and service) shows Beanserializer done using apache
soap.

thanks
Sastry
 

__________________________________________________
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com


RE: Beanserializer example

Posted by Jeremy Levy <je...@yahoo.com>.
A wonderful reference is
http://www.oreilly.com/catalog/javaxml2/chapter/ch12.html, which very
clearly explains how to use the beanserializer.. And includes source
code..

Jeremy

-----Original Message-----
From: venkata akella [mailto:venkataakella@yahoo.com] 
Sent: Thursday, December 13, 2001 5:11 PM
To: soap-user@xml.apache.org
Subject: Beanserializer example


Can someone give reference to a working example(client
and service) shows Beanserializer done using apache
soap.

thanks
Sastry
 

__________________________________________________
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com