jQuery in Action, 2nd edition*
The moose likes Web Services and the fly likes getting null response while calling glue webservice Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "getting null response while calling glue webservice" Watch "getting null response while calling glue webservice" New topic
Author

getting null response while calling glue webservice

vydehi vajanapally
Greenhorn

Joined: Mar 02, 2009
Posts: 9
I am calling a glue webservice from my client application.

I got that webservice class object using Registry.bind(...).

But when i call a method of that by passing request object, i am getting 'null' as response.

I kept the below statement in my client code,

electric.util.log.Log.startLogging("SOAP");

but i did not see any SOAP messages or exceptions in my logs.

I am not able to find out, why it is returing the response as null.

(Observed it is not hitting the method of webservice class at server side)

Could you please let me know when do we get response as null.
And why i am not able see soap requests in log file.
Is there any problem with conversion of my request object with the soap request xml?

I have one wsdl file, electric/common/WEB-INF/config.xml, and standard.map file to run the client.
vydehi vajanapally
Greenhorn

Joined: Mar 02, 2009
Posts: 9
I am getting the below exception while calling the service method,

java.lang.NullPointerException
at electric.util.reflect.Reflect.matchesLoosely(Reflect.java:120)
at electric.util.reflect.Reflect.matches(Reflect.java:99)
at electric.util.reflect.OperationLookup.getOperation(Unknown Source)
at electric.util.reflect.OperationLookup.getOperation(Unknown Source)
at electric.wsdl.Operations.getOperation(Unknown Source)
at electric.wsdl.Operations.getOperation(Unknown Source)
at electric.soap.SOAPReference.invoke(Unknown Source)
at electric.proxy.handler.Proxy.invoke(Proxy.java:64)
at electric.util.proxy.proxy3.InvocationAdaptor.invoke(Unknown Source)
at $Proxy66.getCreditDecision(Unknown Source)
at com.qwest.creditpolicy.adapter.CPAdapterService.execCreditQualMethod(CPAdapterService.java:358)
at com.qwest.creditpolicy.adapter.CPAdapterService.getCreditDecision(CPAdapterService.java:249)
at com.qwest.creditpolicy.adapter.CPAdapterService.process(CPAdapterService.java:47)
at com.qwest.creditpolicy.actions.CreditQualificationAction.execute(CreditQualificationAction.java:56)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)

Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
Silent null results can occur when you have namespace mismatches in the payload of your SOAP messages.
My tactic in situations like these are:
- Use soapUI to test the web service and make sure I am able to send requests and successfully receive responses.
- Use some kind of packet sniffer to capture the requests from a client program and the responses, if any, from the web service.
- Compare the requests and responses obtained with soapUI with the requests and responses obtained with the packet sniffer.
Best wishes!


My free books and tutorials: http://www.slideshare.net/krizsan
vydehi vajanapally
Greenhorn

Joined: Mar 02, 2009
Posts: 9
Thanks Ivan. It was problem with mappings. Now it resolved.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: getting null response while calling glue webservice