How to define the namespace

Asked by Marc on 2014-06-12

How do you define the ns namespace? It appears to take the name of the class you use in the webservice. For example:

class MyService(object):
    # define functions here

When the return object from a function is returned the ns namespace is defined as:

xmlns:ns="urn:MyService"

How would I change this so it's defined like this:

xmlns:ns="http://mysite.com"

Thanks.

Question information

Language:
English Edit question
Status:
Answered
For:
ladon Edit question
Assignee:
No assignee Edit question
Last query:
2014-06-12
Last reply:
2014-06-13
jsgaarde (jakob-simon-gaarde) said : #1

Hi Marc.

You cannot change xmlns:ns for the response object. Which client is it that has a problem with that?

/ Jakob Simon-Gaarde

Marc (marc-ward) said : #2

ATM, specifically a python client using http.client. I'm converting a .NET web service to a python web service and am attempting to keep how they're called as similar as possible to prevent having to make changes to multiple clients.

Thanks

poofeg (poofeg) said : #3

I also have a problem with the namespace. Modify existing client side is difficult.

Can you help with this problem?

Provide an answer of your own, or ask Marc for more information if necessary.

To post a message you must log in.