Hi,

I generated Server and Client code using Axis 2.1.3 / Axis 2.1.4 from a WSDL
of version 1.1.
When I used the code in the web application, I was getting the same error.

I fixed the issue. The generated Service.xml contains actionMapping as empty
String. The generated Client Stub code also contains action as like given
below.
 _operationClient.getOptions().setAction("\"\"");

We need to edit service.xml and Client stub code with proper Action Name.
This solves the issue.Now everything is working fine. Hope this will help
few people. Because I couldnt get any info related empty actionMapping
before.

Note: I am not sure this empty Action mapping is occuring when we use WSDL
1.1 in Axis 2


Thanks,
Davis



Mark Darnell wrote:
> 
> Deepal,
> 
> We are using SOAP for all the applications. I'll try setting the URL.
> Thanks.
> 
> Mark Darnell
> BIT Systems, Inc.
> (703) 742-7660 x110
> -----Original Message-----
> From: Deepal jayasinghe [mailto:deep...@gmail.com] 
> Sent: Tuesday, May 12, 2009 9:44 AM
> To: axis-user@ws.apache.org
> Subject: Re: Web Service Calling Another Web Service
> 
> 
> Mark Darnell wrote:
>> Deepal,
>>
>> I checked the third-party web service and the soap action is set to an
>> empty string. What is most baffling by this problem is that a
>> stand-alone JAVA application, web page, and servlet can all call the
>> third-party web service without any error. 
> DO you use SOAP or REST for those applications ?
>> But when we try to call the
>> third-party web service from our web service, we get the error. Since
> we
>> have multiple apps calling the third-party web service, we wrote a
>> utility class that all the apps use (including our web service) to
> call
>> the third-party web service. Any ideas?
>>   
> try setting correct service url upto the operation, for example
> 
> http://host.com/axis2/services/myservice/myop
> 
> Deepal
>> Mark Darnell
>> BIT Systems, Inc.
>> (703) 742-7660 x110
>> -----Original Message-----
>> From: Deepal Jayasinghe [mailto:dee...@opensource.lk] 
>> Sent: Monday, May 11, 2009 3:02 PM
>> To: axis-user@ws.apache.org
>> Subject: Re: Web Service Calling Another Web Service
>>
>>
>> As I can understand it should be due to the incorrect soap action,
>> please check the WSDL of the third party service and set the correct
>> SOAP action.
>>
>> Deepal
>>
>> Mark Darnell wrote:
>>   
>>> We have a web service that needs to call another web service written
>>> by a third-party. For testing purposes we have both web services
>>> running under the same Axis2 installation on one server. When we
>>> attempt to call the third-party web service from our web service, we
>>> get the following exception (thrown by the third-party web service):
>>>
>>> org.apache.axis2.AxisFault: The server did not recognize the action
>>> which it received
>>>
>>> We have no idea how to resolve this exception or what is causing it.
>>> Our configuration is:
>>>
>>> JDK version 1.6.0_11
>>>
>>> Axis2 version 1.3
>>>
>>> Tomcat version 5.5.20 (Servlet version 2.4)
>>>
>>> Does anyone have any ideas on how to resolve this issue? Thanks.
>>>
>>> Mark Darnell
>>>
>>> BIT Systems, Inc.
>>>
>>> (703) 742-7660 x110
>>>
>>>     
>>
>>   
> 
> 
> -- 
> Thank you!
> 
> 
> http://blogs.deepal.org
> http://deepal.org
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Web-Service-Calling-Another-Web-Service-tp23489364p26743051.html
Sent from the Axis - User mailing list archive at Nabble.com.

Reply via email to