Hello guest, if you read this it means you are not registered. Click here to register in a few simple steps, you will enjoy all features of our Forum.
Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Passing soapAction false to suds
I have a SOAP webservice wrote in Java and I call it with suds library:

def soapclient(request):

   base64string = base64.encodestring('%s:%s' % (username, password)).replace('\n', '')
   authenticationHeader = {
      "SOAPAction" : "ActionName",
      "Authorization" : "Basic %s" % base64string

   client = Client('http://my_ult_to_file?wsdl', headers=authenticationHeader)

   var=dict(utenteApplicativo='aaaaa', pageNumber=1, pageSize=1,
         itemCarrelloDtoList=dict(causale='prova', codiceEnte='ente', importo=2, importoImposta=1, importoTotale=3, importoUnitario=2,
         quantitaItem=1, tipoContabilizzazione='TA')) )

   result = client.service.creaCarrello(var) 
   return render_to_response('soapclient.html', {'var': result})

but I receive the error:

Server raised fault: 'The given SOAPAction ActionName does not match an operation.'

In the wsdl file soapAction is not setted:
<wsdl:operation name="creaCarrello">
<soap:operation soapAction="" style="rpc"/>
<wsdl:input name="creaCarrello">
<soap:body namespace="http://infocamere.it/pagamentionlinews" use="literal"/>
There is a manner to set soapAction in the client to a value false or similar?

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Suds client response error rajesh 1 192 Sep-26-2017, 11:36 AM
Last Post: metulburr
  Passing Web Form Values VSPythonD3v 8 833 Mar-26-2017, 07:01 PM
Last Post: VSPythonD3v

Forum Jump:

Users browsing this thread: 1 Guest(s)