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/repositorio_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(SoapBodyHandl
> > er
> > .java:4
> > 2)
> > >         at
> > org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.ja
> > va
> > :131)
> > >         at
> > org.codehaus.xfire.transport.DefaultEndpoint.onReceive(DefaultEndpoi
> > nt
> > .java:6
> > 4)
> > >         at
> > org.codehaus.xfire.transport.AbstractChannel.receive(AbstractChannel
> > .j
> > ava:38)
> > >         at
> > org.codehaus.xfire.transport.http.XFireServletController.invoke(XFir
> > eS
> > ervletC
> > ontroller.java:279)
> > >         at
> > org.codehaus.xfire.transport.http.XFireServletController.doService(X
> > Fi
> > reServl
> > etController.java:121)
> > >         at
> > org.codehaus.xfire.transport.http.XFireServlet.doPost(XFireServlet.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(App
> > li
> > cationF
> > ilterChain.java:252)
> > >         at
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(Application
> > Fi
> > lterCha
> > in.java:173)
> > >         at
> > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapper
> > Va
> > lve.jav
> > a:213)
> > >         at
> > org.apache.catalina.core.StandardContextValve.invoke(StandardContext
> > Va
> > lve.jav
> > a:178)
> > >         at
> > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.
> > ja
> > va:126)
> > >         at
> > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.
> > ja
> > va:105)
> > >         at
> > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVa
> > lv
> > e.java:
> > 107)
> > >         at
> > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.ja
> > va
> > :148)
> > >         at
> > org.apache.coyote.http11.Http11Processor.process(Http11Processor.jav
> > a:
> > 869)
> > >         at
> > org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.
> > pr
> > ocessCo
> > nnection(Http11BaseProtocol.java:664)
> > >         at
> > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndp
> > oi
> > nt.java
> > :527)
> > >         at
> > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFo
> > ll
> > owerWor
> > kerThread.java:80)
> > >         at
> > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Thread
> > 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

Reply via email to