Celeste,
I am only trying to help brain storm with you.  I actually use spring to
configure my services instead of services.xml, use an embedded server instead
of tomcat, and use annotations and jaxb2, so my experience with xfire is a
bit different that your setup.  It's very nice that xfire supports such a
large variety of approachs to web services. 

The only thing that I see off hand that may be an issue:

In the wsdl I don't see where the prefix ns1: or tns: are defined.  

Is your wsdl generated?  If so, try using the xfire 1.2.1.

Thatcher

-----Original Message-----
From: Celeste Gunski [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 19, 2006 1:43 PM
To: [email protected]
Subject: Re: [xfire-user] Re: nullPointerException


ok, here they are:

        <xsd:element name="getOrganismo">
                <xsd:complexType>
                        <xsd:sequence>
                                <xsd:element maxOccurs="1" minOccurs="1"
name="codigo" nillable="true" type="xsd:string"/>
                        </xsd:sequence>
                </xsd:complexType>
        </xsd:element>

        <xsd:complexType name="Organismo">
                <xsd:sequence>
                        <xsd:element minOccurs="0" name="codigo"
nillable="true" type="xsd:string"/>
                        <xsd:element minOccurs="0" name="descripcion"
nillable="true" type="xsd:string"/>
                </xsd:sequence>
        </xsd:complexType>

        <xsd:element name="getOrganismoResponse">
                <xsd:complexType>
                        <xsd:sequence>
                                <xsd:element maxOccurs="1" minOccurs="1"
name="out" nillable="true" type="ns2:Organismo"
xmlns:ns2="2informat.mecon.ar"/>
                        </xsd:sequence>
                </xsd:complexType>
        </xsd:element>

i hope it helps :)

On 10/19/06, Chris Thatcher <[EMAIL PROTECTED]> wrote:
> Ok, finally how about the relevant types from repositorio_mecon.xsd?
>
> Thanks
> Thatcher
>
> -----Original Message-----
> From: Celeste Gunski [mailto:[EMAIL PROTECTED]
> Sent: Thursday, October 19, 2006 12:46 PM
> To: [email protected]
> Subject: Re: [xfire-user] Re: nullPointerException
>
>
> this is the services.xml file:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <beans xmlns="http://xfire.codehaus.org/config/1.0";>
>   <service>
>     <serviceClass>ar.mecon.informat.repositorio_meconImpl</serviceClass>
>     <style>document</style>
>     <use>literal</use>
>   </service>
> </beans>
>
> and the wsdl is:
>
> <definitions name="repositorio_mecon" 
> targetNamespace="informat.mecon.ar">
>
> <types>
>
> <xsd:schema>
> <xsd:import namespace="2informat.mecon.ar" 
> schemaLocation="file:/path/to/repositorio_mecon.xsd"/>
> </xsd:schema>
> </types>
>
> <message name="getOrganismoRequest">
> <part name="codigo" element="ns1:getOrganismo"/>
> </message>
>
> <message name="getOrganismoResponse">
> <part name="out" element="ns1:getOrganismoResponse"/>
> </message>
>
> ... some more messages ...
>
> <portType name="repositorio_meconPortType">
>
> <operation name="getOrganismo">
> <input name="getOrganismoRequest" message="tns:getOrganismoRequest"/>
> <output name="getOrganismoResponse" 
> message="tns:getOrganismoResponse"/>
> </operation>
>
> ... some more operations ...
>
> <binding name="repositorio_meconHttpBinding"
> type="tns:repositorio_meconPortType">
> <soap:binding style="document" 
> transport="http://schemas.xmlsoap.org/soap/http"/>
>
> <operation name="getOrganismo">
> <soap:operation soapAction=""/>
> <input name="getOrganismoRequest">
> <soap:body parts="codigo" use="literal"/>
> </input>
> <output name="getOrganismoResponse">
> <soap:body parts="out" use="literal"/>
> </output>
> </operation>
>
> <service name="repositorio_mecon">
>
> <port name="repositorio_meconHttpPort" 
> binding="tns:repositorio_meconHttpBinding">
> <soap:address 
> location="http://localhost:8180/repositorio_mecon2-0.0.1/services/repo
> sitorio
> _mecon2"/>
> </port>
> </service>
> </definitions>
>
> have you ideas about what could be wrong?
>
>
> On 10/19/06, Chris Thatcher <[EMAIL PROTECTED]> wrote:
> > Is there another file called services.xml or Xfire-services.xml ? If 
> > so can you paste its contents. Is the soap envelope generated from 
> > the wsdl that the service exposes? If so can you paste the wsdl?
> >
> > -----Original Message-----
> > From: Celeste Gunski [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, October 19, 2006 10:59 AM
> > To: [email protected]
> > Subject: Re: [xfire-user] Re: nullPointerException
> >
> >
> > web.xml:
> >
> >         <display-name>repositorio_mecon2</display-name>
> >         <servlet>
> >                 <servlet-name>XFireServlet</servlet-name>
> >                 <servlet-class>
> >
org.codehaus.xfire.transport.http.XFireConfigurableServlet
> >                 </servlet-class>
> >         </servlet>
> >
> >         <servlet-mapping>
> >                 <servlet-name>XFireServlet</servlet-name>
> >                 <url-pattern>/servlet/XFireServlet/*</url-pattern>
> >         </servlet-mapping>
> >
> >         <servlet-mapping>
> >                 <servlet-name>XFireServlet</servlet-name>
> >                 <url-pattern>/services/*</url-pattern>
> >         </servlet-mapping>
> >
> > that´s ALL the content
> >
> > i´m using SoapUI to invoke the service, here's one request message:
> >
> > <soapenv:Envelope 
> > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
> > xmlns:inf="2informat.mecon.ar">
> >    <soapenv:Body>
> >       <inf:getOrganismo>
> >          <inf:codigo>unCodigo</inf:codigo>
> >       </inf:getOrganismo>
> >    </soapenv:Body>
> > </soapenv:Envelope>
> >
> > and the implementation for this method:
> >
> >         public Organismo getOrganismo(String codigo) {
> >                 Organismo org= new Organismo();
> >                 org.setCodigo(codigo);
> >                 org.setDescripcion("This is it");
> >                 return org;
> >         }
> >
> > thanks again
> >
> > On 10/19/06, Chris Thatcher <[EMAIL PROTECTED]> wrote:
> > > Can you paste the relevent content of your web.xml and and the 
> > > java code you use to create the client and call the service?
> > >
> > > Thanks
> > > Thatcher
> > >
> > > -----Original Message-----
> > > From: Celeste Gunski [mailto:[EMAIL PROTECTED]
> > > Sent: Thursday, October 19, 2006 10:28 AM
> > > To: [email protected]
> > > Subject: Re: [xfire-user] Re: nullPointerException
> > >
> > >
> > > i'm using eclipse plugin+xfire1.2.2+maven2 , i have my service 
> > > running on Tomcat5.5 and both the server and the client are using 
> > > document/literal if you need some more information please let me 
> > > know
> > >
> > > thanks
> > >
> > > On 10/19/06, Chris Thatcher <[EMAIL PROTECTED]> wrote:
> > > > Celeste, can you give me some more info about how you are 
> > > > configuring and starting your services?
> > > >
> > > > Thatcher
> > > >
> > > > -----Original Message-----
> > > > From: Celeste Gunski [mailto:[EMAIL PROTECTED]
> > > > Sent: Thursday, October 19, 2006 7:49 AM
> > > > To: [email protected]
> > > > Subject: [xfire-user] Re: nullPointerException
> > > >
> > > >
> > > > Hi! please can anyone help me with this?, i don´t know what else 
> > > > to do, i already have xfire 1.2.2 and can´t make my service work
> > > >
> > > > thank you
> > > >
> > > > On 10/18/06, Celeste Gunski <[EMAIL PROTECTED]> wrote:
> > > > > Hello!
> > > > > When i try to invoke any method of my service i get this 
> > > > > fault:
> > > > >
> > > > > 18/10/2006 10:46:22 
> > > > > org.codehaus.xfire.handler.DefaultFaultHandler
> > > > > invoke
> > > > > GRAVE: Fault occurred!
> > > > > java.lang.NullPointerException
> > > > >         at
> > > > org.codehaus.xfire.soap.handler.SoapBodyHandler.invoke(SoapBodyH
> > > > an
> > > > dl
> > > > er
> > > > .java:4
> > > > 2)
> > > > >         at
> > > > org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipelin
> > > > e.
> > > > ja
> > > > va
> > > > :131)
> > > > >         at
> > > > org.codehaus.xfire.transport.DefaultEndpoint.onReceive(DefaultEn
> > > > dp
> > > > oi
> > > > nt
> > > > .java:6
> > > > 4)
> > > > >         at
> > > > org.codehaus.xfire.transport.AbstractChannel.receive(AbstractCha
> > > > nn
> > > > el
> > > > .j
> > > > ava:38)
> > > > >         at
> > > > org.codehaus.xfire.transport.http.XFireServletController.invoke(
> > > > XF
> > > > ir
> > > > eS
> > > > ervletC
> > > > ontroller.java:279)
> > > > >         at
> > > > org.codehaus.xfire.transport.http.XFireServletController.doServi
> > > > ce
> > > > (X
> > > > Fi
> > > > reServl
> > > > etController.java:121)
> > > > >         at
> > > > org.codehaus.xfire.transport.http.XFireServlet.doPost(XFireServl
> > > > et
> > > > .j
> > > > av
> > > > a:116)
> > > > >         at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
> > > > >         at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> > > > >         at
> > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
> > > > (A
> > > > pp
> > > > li
> > > > cationF
> > > > ilterChain.java:252)
> > > > >         at
> > > > org.apache.catalina.core.ApplicationFilterChain.doFilter(Applica
> > > > ti
> > > > on
> > > > Fi
> > > > lterCha
> > > > in.java:173)
> > > > >         at
> > > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWra
> > > > pp
> > > > er
> > > > Va
> > > > lve.jav
> > > > a:213)
> > > > >         at
> > > > org.apache.catalina.core.StandardContextValve.invoke(StandardCon
> > > > te
> > > > xt
> > > > Va
> > > > lve.jav
> > > > a:178)
> > > > >         at
> > > > org.apache.catalina.core.StandardHostValve.invoke(StandardHostVa
> > > > lv
> > > > e.
> > > > ja
> > > > va:126)
> > > > >         at
> > > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportVa
> > > > lv
> > > > e.
> > > > ja
> > > > va:105)
> > > > >         at
> > > > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngi
> > > > ne
> > > > Va
> > > > lv
> > > > e.java:
> > > > 107)
> > > > >         at
> > > > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapte
> > > > r.
> > > > ja
> > > > va
> > > > :148)
> > > > >         at
> > > > org.apache.coyote.http11.Http11Processor.process(Http11Processor
> > > > .j
> > > > av
> > > > a:
> > > > 869)
> > > > >         at
> > > > org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHand
> > > > le
> > > > r.
> > > > pr
> > > > ocessCo
> > > > nnection(Http11BaseProtocol.java:664)
> > > > >         at
> > > > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcp
> > > > En
> > > > dp
> > > > oi
> > > > nt.java
> > > > :527)
> > > > >         at
> > > > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(Lead
> > > > er
> > > > Fo
> > > > ll
> > > > owerWor
> > > > kerThread.java:80)
> > > > >         at
> > > > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Th
> > > > re
> > > > ad
> > > > Po
> > > > ol.java
> > > > :684)
> > > > >         at java.lang.Thread.run(Unknown Source)
> > > > >
> > > > > i've been reading previous messages of users who had the same 
> > > > > problem, and the responses says that on 1.2.2 release the bug 
> > > > > was fixed, so i upgrade xfire to 1.2.2 but still get the same 
> > > > > error what was the bug in the first place? and what can i do 
> > > > > to solve this?
> > > > >
> > > > > Thanks!
> > > > >
> > > > > --
> > > > > Celeste
> > > > >
> > > >
> > > >
> > > > --
> > > > Celeste
> > > >
> > > > (\__/)
> > > > (='.'=)This is Bunny. Copy and paste bunny into your 
> > > > (")_(")signature to help him gain world domination.
> > > >
> > > > ----------------------------------------------------------------
> > > > --
> > > > --
> > > > -
> > > > To unsubscribe from this list please visit:
> > > >
> > > >     http://xircles.codehaus.org/manage_email
> > > >
> > > >
> > > > ----------------------------------------------------------------
> > > > --
> > > > --
> > > > -
> > > > To unsubscribe from this list please visit:
> > > >
> > > >     http://xircles.codehaus.org/manage_email
> > > >
> > > >
> > >
> > >
> > > --
> > > Celeste
> > >
> > > ------------------------------------------------------------------
> > > --
> > > -
> > > To unsubscribe from this list please visit:
> > >
> > >     http://xircles.codehaus.org/manage_email
> > >
> > >
> > > ------------------------------------------------------------------
> > > --
> > > -
> > > To unsubscribe from this list please visit:
> > >
> > >     http://xircles.codehaus.org/manage_email
> > >
> > >
> >
> >
> > --
> > Celeste
> >
> > (\__/)
> > (='.'=)This is Bunny. Copy and paste bunny into your 
> > (")_(")signature to help him gain world domination.
> >
> > --------------------------------------------------------------------
> > -
> > To unsubscribe from this list please visit:
> >
> >     http://xircles.codehaus.org/manage_email
> >
> >
> > --------------------------------------------------------------------
> > -
> > To unsubscribe from this list please visit:
> >
> >     http://xircles.codehaus.org/manage_email
> >
> >
>
>
> --
> Celeste
>
> (\__/)
> (='.'=)This is Bunny. Copy and paste bunny into your (")_(")signature 
> to help him gain world domination.
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>


-- 
Celeste

(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your (")_(")signature to help
him gain world domination.

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to