Hello,

I had been facing an issue, which I succeeded in reproducing on the quickstart 
sample in the
StockQuoteService class. 

In the StockQuoteService class, add a method, say,

    public double getPrice2(String symbol, boolean b) {
        Double price = (Double) map.get(symbol);
        if(price != null){
            return price.doubleValue();
        }
        return 42.00;
    }

Build and install as usual on Axis2 (I used Tomcat 5.5 as the container).

There is a resulting WSDL, but there is nothing extraordinary to it, so I'll 
just skip it. 

Using the Eclipse Web Services Explorer, invoke the service, but leave the 
boolean element empty:

 <?xml version="1.0" encoding="UTF-8" ?> 
  <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:q0="http://quickstart.samples/xsd"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
  <soapenv:Body>
  <q0:getPrice2 /> 
  </soapenv:Body>
  </soapenv:Envelope>

And here is the error message (very informative):

  <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
  <soapenv:Body>
  <soapenv:Fault>
  <faultcode>soapenv:Server</faultcode> 
  <faultstring>unknown</faultstring> 
  <detail /> 
  </soapenv:Fault>
  </soapenv:Body>
  </soapenv:Envelope>

If you fill in the boolean argument, you get output as usual.

It would sure help if the error message were more informative.

Thanks in advance,




Ulrich Kroener



      
____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to