You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by da FoX <da...@yahoo.com> on 2008/01/23 10:09:03 UTC

Axis stubs fail in request

Hi
I really need help on this issue.. as I'm struggling with this for three days now... :(

I've created a WebService that now will be consumed by an Axis client.

The client project automatically generates the client stubs using Axis
and is using these stubs to communicate with our document/literal
webservice.


The parameter is filled up in the client stub as follows:

param = 
    new org.apache.axis.description.ParameterDesc(
        new javax.xml.namespace.QName("http://company.com/customer/schemas", "custNo"), 
        org.apache.axis.description.ParameterDesc.IN, 
        new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), 
        java.lang.String.class, 
        false, 
        false);

But I'm getting the following exception:
For input string: ""
    at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
    at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
    at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
    at
 com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:633)
    at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanEndElement(XMLNSDocumentScannerImpl.java:719)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1685)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
    at
 com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
    at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
    at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
    at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
    at
 org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
    at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:796)
    at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)
    at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
    at
 org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
    at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
    at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
    at org.apache.axis.client.Call.invoke(Call.java:2767)
    at org.apache.axis.client.Call.invoke(Call.java:2443)
    at org.apache.axis.client.Call.invoke(Call.java:2366)
    at org.apache.axis.client.Call.invoke(Call.java:1812)
    at com.company.CustomerArticleLinkBindingStub.findAll(CustomerArticleLinkBindingStub.java:207)

When I take a look at the input request, it seems not correct:

    <soapenv:Body>
            1'>http://customer.com/customer/schemas">1
    </soapenv:Body>
</soapenv:Envelope>

Because I'm expecting something like this (without the empty namespace prefix):

    <soapenv:Body>
            1'>http://customer.com/customer/schemas">1
    </soapenv:Body>
</soapenv:Envelope>

I tried it with SOAPUI, and the second
 SOAP envelope request (as I would expect it), is working!!
Perhaps there is a misconfiguration in my WSDL file. You can find this in attachment!

Ow.. If I use the Axis2 WSDL2Java, everything is working fine (but sadly Axis2 is not an option here) :(

I really hope somebody can help me out here!








      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ