Click here to Skip to main content
15,884,628 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello all,

I have an axis2 web service. How I can consume it in my wpf(C#) application. I would like to create a proxy class and refer it in my wpf application. I have tried it as follows , but didn't get solution....

wsdl http://192.168.1.152:8084/axis2/services/MyService.MyHttpSoap11Endpoint/


Meanwhile I could successfully create a proxy class of a webservice created using .net ..

wsdl http://localhost:50749/Service1.asmx


Regards
Sebastian
Posted
Updated 19-Sep-12 21:44pm
v2

1 solution

You need to use ServiceModel Metadata Utility Tool (Svcutil.exe)[^], not wsdl

[Update]
Use WCF Express Interop Bindings[^]

The WCF Express Interop bindings is a Visual Studio extension that walks the developer through clear and simple questions about the type of interop they need between a WCF service and the main Java servers:

  • Oracle WebLogic
  • Oracle Metro
  • IBM WebSphere
  • Apache Axis2


Best regards
Espen Harlinn
 
Share this answer
 
v2
Comments
Sebastian T Xavier 26-Sep-12 6:33am    
I have tried it as follows and ended up in an exception,

svcutil /t:metadata http://192.168.1.125:8086/axis2/services/MyService.MyServiceHttpSoap11Endpoint

Here is the exception ..
----------------------------------------------------------------------
C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin>svcutil /t:metadata http://192.168.1.125:8086/axis2/services/xyzService.xyzServiceHttpSoap11Endpoint
Microsoft (R) Service Model Metadata Tool
[Microsoft (R) Windows (R) Communication Foundation, Version 3.0.4506.2152]
Copyright (c) Microsoft Corporation. All rights reserved.

Attempting to download metadata from 'http://192.168.1.125:8086/axis2/services/xyzService.xyzServiceHttpSoap11Endpoint' using WS-Metadata Exchange or DISCO.
Microsoft (R) Service Model Metadata Tool
[Microsoft (R) Windows (R) Communication Foundation, Version 3.0.4506.2152]
Copyright (c) Microsoft Corporation. All rights reserved.

Error: Cannot obtain Metadata from http://192.168.1.125:8086/axis2/services/xyzService.xyzServiceHttpSoap11Endpoint

If this is a Windows (R) Communication Foundation service to which you have access, please check that you have enabled metadata publishing at the specified address. For help enabling metadata publishing, please refer to the MSDN documentation at http://go.microsoft.com/fwlink/?LinkId=65455.

WS-Metadata Exchange Error URI: http://192.168.1.125:8086/axis2/services/xyzService.xyzServiceHttpSoap11Endpoint

Metadata contains a reference that cannot be resolved: 'http://192.168.1.125:8086/axis2/services/xyzService.xyzServiceHttpSoap11Endpoint'.

Could not connect to http://192.168.1.125:8086/axis2/services/xyzService.xyzServiceHttpSoap11Endpoint. TCP error code 10061: No connection could be made because the target machine actively refused it 192.168.1.125:8086.

Unable to connect to the remote server
No connection could be made because the target machine actively refused it 192.168.1.125:8086

HTTP GET Error
URI: http://192.168.1.125:8086/axis2/services/xyzService.xyzServiceHttpSoap11Endpoint

There was an error downloading 'http://192.168.1.125:8086/axis2/services/xyzService.xyzServiceHttpSoap11Endpoint'.

Unable to connect to the remote server

No connection could be made because the target machine actively refused it 192.168.1.125:8086

If you would like more help, type "svcutil /?"
--------------------------------------------------------------------------------

Am I doing something wrong?

Sebastian
Espen Harlinn 26-Sep-12 6:38am    
Try opening http://192.168.1.125:8086/axis2/services/xyzService.xyzServiceHttpSoap11Endpoint/wsdl in your browser, you should see the xml for the wsdl.
Sebastian T Xavier 26-Sep-12 6:42am    
This is what I got when I opened it in browser...

----------------------------------
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<faultstring>
The endpoint reference (EPR) for the Operation not found is /axis2/services/xyzService.xyzServiceHttpSoap11Endpoint/wsdl and the WSA Action = null

-----------------------------------------
Espen Harlinn 26-Sep-12 6:56am    
I don't have anything that uses axis2 here at the office, but I should have something at home - I'll get back to you later ...
Sebastian T Xavier 26-Sep-12 7:26am    
That would be great..... Thanks

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900