I have a few functions (web services) in webmethods that have the same document type as input and output.
My problem is that when I generate the wsdl files, the input and output gets a unique namespace which ends with the function name.
This makes it impossible to write reusable code. i.e. to have only 1 declaration of the input and the output classes.
I have 2 services: ServiceA and ServiceB
Both services takes a docType as input and output:
docTypeIn & docTypeOut
When I look in the generated wsdl-files the namespaces looks like the following:
Namespace for FunctionA:
[COLOR=#800000][SIZE=2]Namespace for FunctionB:
When it comes to the input parameter, it´s possible to use any of the namespaces (manually editing the wsdl) regardless of which function is called, but this can´t be done with the output parameter.
If I try to use the same namespace (for output) for both functions, I get a SOAP exception.
Does anyone know how to solve this issue?
Any help is appreciated, I´ve been stuck on this for a while now.