Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

getting null response while calling glue webservice

 
vydehi vajanapally
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
vydehi vajanapally
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ivan. It was problem with mappings. Now it resolved.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic