Results 1 to 4 of 4

Thread: Web service

  1. #1
    mousumidas is offline Member
    Join Date
    Jan 2010
    Rep Power

    Angry Web service

    I have written a web service and it is deployed successfully.But not able to call from web service client using stub.I have usen weblogic 10 MP2,Axis2 1.5.
    [INFO] Unable to sendViaPost to url[]
    org.apache.axis2.AxisFault: customer cannot be null!!
    at org.apache.axis2.AxisFault.makeFault(AxisFault.jav a:430)
    at org.apache.axis2.transport.http.SOAPMessageFormatt er.writeTo(
    at org.apache.axis2.transport.http.AxisRequestEntity. writeRequest(
    at org.apache.commons.httpclient.methods.EntityEnclos ingMethod.writeRequestBody(EntityEnclosingMethod.j ava:499)
    at org.apache.commons.httpclient.HttpMethodBase.write Request(
    at org.apache.commons.httpclient.HttpMethodBase.execu te(
    at org.apache.commons.httpclient.HttpMethodDirector.e xecuteWithRetry(
    at org.apache.commons.httpclient.HttpMethodDirector.e xecuteMethod(
    at org.apache.commons.httpclient.HttpClient.executeMe thod(
    at org.apache.commons.httpclient.HttpClient.executeMe thod(
    at org.apache.axis2.transport.http.AbstractHTTPSender .executeMethod(
    at org.apache.axis2.transport.http.HTTPSender.sendVia Post(
    at org.apache.axis2.transport.http.HTTPSender.send(HT
    at org.apache.axis2.transport.http.CommonsHTTPTranspo rtSender.writeMessageWithCommons(CommonsHTTPTransp
    at org.apache.axis2.transport.http.CommonsHTTPTranspo rtSender.invoke( 5)
    at org.apache.axis2.engine.AxisEngine.send(AxisEngine .java:435)
    at org.apache.axis2.description.OutInAxisOperationCli ent.send(
    at org.apache.axis2.description.OutInAxisOperationCli ent.executeImpl(
    at org.apache.axis2.client.OperationClient.execute(Op
    at ofileStub.updateCustomer( 373)
    at .main(
    Caused by: org.apache.axis2.databinding.ADBException: customer cannot be null!!
    at ofileStub$UpdateCustomer.serialize(CustomerProfile
    at ofileStub$UpdateCustomer.serialize(CustomerProfile
    at ofileStub$UpdateCustomer$1.serialize(CustomerProfi
    at org.apache.axis2.databinding.ADBDataSource.seriali ze(
    at .internalSerializeAndConsume(OMSourcedElementImpl. java:738)
    at alSerialize(
    at alSerializeAndConsume(
    at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.s erializeInternally(
    at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.i nternalSerialize(
    at alSerializeAndConsume(
    at AndConsume(
    at org.apache.axis2.transport.http.SOAPMessageFormatt er.writeTo(
    ... 19 more

    I will appriciate for ur help.

  2. #2
    FON is offline Senior Member
    Join Date
    Dec 2009
    Belgrade, Serbia
    Rep Power


    Need more info about problem.

    For a start you have to describe
    format of messages and arguments that client and server exchange.

    Somewhere in your stub on client there will be server call method with INVOKE of some operation that server exposes.

    I guess one of the arguments of that method is your 'customer',
    which you have to create somewhere in your app logic
    and pass to server in this method, so it can be put in INVOKE object array

    Find this line of code in stub
    and see method's arguments

    Java Code:
    java.lang.Object _resp = _call.invoke(new java.lang.Object[] {client});
    then use debugger to see what is going on.

  3. #3
    RogerP is offline Member
    Join Date
    Jan 2010
    Rep Power


    The WSDL would be useful. I tried to download yours from here: but your site was having none of it.

    The first line is the one I would investigate first..
    Java Code:
    org.apache.axis2.AxisFault: customer cannot be null!!

  4. #4
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Rep Power


    At a guess you are calling updateCustomer() with a null customer. AT least that's the best guess with the limited information you've given us.

Similar Threads

  1. how to call service method inside another service
    By kirtichopra2003 in forum Web Frameworks
    Replies: 1
    Last Post: 10-24-2009, 03:19 AM
  2. web service mtom
    By fiqueudrue in forum NetBeans
    Replies: 0
    Last Post: 02-10-2009, 10:16 AM
  3. Problem of Web Service
    By nihongbin in forum XML
    Replies: 1
    Last Post: 12-11-2008, 05:20 AM
  4. Web Service from JSP
    By Eric in forum JavaServer Pages (JSP) and JSTL
    Replies: 2
    Last Post: 07-02-2007, 06:00 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts