Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8272749
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T07:14:08+00:00 2026-06-08T07:14:08+00:00

I have some webservice to test, running on a server, in axis2. I have

  • 0

I have some webservice to test, running on a server, in axis2.

I have been given some xml data that we should receive from third parties using our webservice. that xml data is well formatted according to the wsdl of our webservice.

so as to test i do: (following the axis2.py test file given in suds)

url = 'http://localhost:8080/axis2/services/{0}?wsdl'.format('myWebService')
print 'url=%s' % url
client = Client(url)
print client
with open("input.xml") as f:
    inputXml = f.read()
print client.service.myWebserviceRequest(inputXml)

and i get the following error message:

urllib2.URLError: <urlopen error [Errno 10061] No connection could be made becau
se the target machine actively refused it>

as far as I see with the statement print Client, it’s that suds is awaiting objects not under the xml form, but under python form. ( that’s what the rest of the axis.py code suggest)

but in my case I have the data already formated in xml. Do you know how I could input it directly as xml into the request client.service.myWebserviceRequest ?

(it is not a problem of connection since I access to the axis2 webservice getVersion)

EDIT1: output of the print client statement.

Service ( myWebService ) tns="ws.myCompany.com"
   Prefixes (2)
      ns2 = "myData.ws.myCompany.com"
      ns3 = "ws.myCompany.com"
   Ports (1):
      (MyServiceSSOAP12port_http)
         Methods (1):
            sendMyInformation(ns2:DATA_HEADER DATA_HEADER, ns2:OTHER_CONTENT OTHER_CONTENT, )
         Types (1):
            WSExceptionType

What puzzles me is that the suds Client expose a service of the form sendMyInformation((ns2:DATA_HEADER DATA_HEADER, ns2:OTHER_CONTENT OTHER_CONTENT,)

whereas in my wsdl the data to supply is:

<xs:element name="WHOLE_CONTENT">
    <xs:complexType>
        <xs:sequence>
            <xs:element ref="DATA_HEADER"/>
            <xs:element ref="OTHER_CONTENT"/>
        </xs:sequence>
    </xs:complexType>
</xs:element>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T07:14:10+00:00Added an answer on June 8, 2026 at 7:14 am

    Just saw this question when looking for answers,

    have you solved it?. are you looking something like the below

    MESSAGE INJECTION (Diagnostics/Testing?)¶
    The service API provides for message/reply injection.

    To inject either a soap message to be sent or to inject a reply or fault to be processed as if returned by the soap server, simply specify the __inject keyword argument.

    when invoking the service. Eg:

    Sending a raw soap message:

    print client.service.test(__inject={'msg':message})

    GP

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have applications(WinForm) that gets some objects from webservice. After receiving array I transform
I have an xml from a webservice that I want to store in a
I have a restful webservice which receives some structured data which is put straight
I have a Scala application that relies on an external RESTful webservice for some
I have some graphics files that exist within a directory that a web server
I have the following jquery using which I send some data to a webservice.
I'm trying to receive some json from my asp.net mvc webservice. ASP.NET: public JsonResult
I have next package structure webService.ear -- dependency.jar -- some.class Can I remove some.class
I have some problem with calling web service from flex. I have service with
I have some data passed into the flex via webservices, and want to create

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.