User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the RSS, Web Services and SOAP section within the Web Development category of DaniWeb, a massive community of 426,019 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 1,676 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our RSS, Web Services and SOAP advertiser: Programming Forums
Views: 1170 | Replies: 1
Reply
Join Date: Jul 2008
Posts: 2
Reputation: somaraman is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
somaraman somaraman is offline Offline
Newbie Poster

Accessing .NET webservice using SOAPpy.

  #1  
Jul 10th, 2008
Hi all,

We are trying to talk through .NET web service to retrieve some data from a windows system. We are using Python and SOAPpy (which is SOAP compatible with python) for this. We are able to talk to the system using this web service and is also able to retrieve all data without giving any parameters, using GetAll methods(eg. GetAllCountry()). But the issue is when we try to use a method which expects a parameter (for eg. Get_employee_detail_byUserName()). What ever value we pass it gets passed a Null and hence the system is throwing out the exception.

Here is the code we use:

from SOAPpy import SOAPProxy
url = 'http://IPaddress/WebServiceIDM/IDMWebService.asmx'
n = 'http://tempuri.org/'
s='http://tempuri.org/GetEmployeeDetail'
server = SOAPProxy(url, namespace=n,soapaction=s)
server.config.dumpSOAPOut = 1
server.config.dumpSOAPIn = 1
server.GetEmployeeDetail('2008-07-10','ACE0002') 

Any help would be greatly appreciated.

Thanks,
Soma.
Last edited by peter_budo : Jul 10th, 2008 at 8:45 am. Reason: Keep It Organized - please use [code] tags
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jul 2008
Posts: 2
Reputation: somaraman is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
somaraman somaraman is offline Offline
Newbie Poster

Re: Accessing .NET webservice using SOAPpy.

  #2  
Jul 11th, 2008
Hi,

We kind of feel that encoding mis-match is the reason for the issue. SOAPpy is giving out the output in RPC format where as the IDM web service ( windows system) is expecting in the document literal format. Any idea how to change this in our earlier mentioned code?

Thanks,
Soma.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb RSS, Web Services and SOAP Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Other Threads in the RSS, Web Services and SOAP Forum

All times are GMT -4. The time now is 1:31 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC