Hi Paul,
Thanks for the reply.
Let me explain how I developed the WebServices. I started developing
the code from the WSDL the ERP client provides. And it is as shown in
attached ERPAPISvc.wsdl (Namespace is "http://developer.intuit.com"). And
when I deployed the service it worked fine with the client (Let say
Client1).
But we have 2 or more client program that can use the same service.
But that client exists in our System in different Namespace. As described in
MySvc.wsdl (Namespace is "http://sync.dtc.com/").
So when I tried to change the existing Namespace
"http://developer.intuit.com" to "http://sync.dtc.com/" the Client1 stop
working and throws unexpected subelement strUserName. And all other client
program starts running.
So what I am trying to do is make all client works with code developed
from same wsdl and having the namespace "http://sync.dtc.com/".
Could you please guide me, and correct me if I am wrong in my thoughts.
Thanks in Advance,
Renjith
-----Original Message-----
From: Paul Fremantle [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 21, 2007 4:50 AM
To: [email protected]
Subject: Re: "Regarding Namespace Problem with an application"
> OK.. if I am understanding your problem
> correctly, this could be simplified to the requirement that you want to
> expose your existing service under different WSDLs (using different
> namespaces) to different clients? If so, this is trivial in Synapse. You
> just create one or more proxy services with a publish WSDL specified to
that
> which the client expects, and then forward the messages to the actual
> endpoint.
It seems like you might also need to write a mediator to change the
namespace inside the SOAP messages in one case? In other words,
presumably the namespace in the SOAP message matches in one case and
doesn't in the other case.
You can do this lots of ways, but the easy way would either be in XSLT
or in JavaScript/E4X. If you can post an example of both types of SOAP
message then I can show a transform that fixes up one.
Unless I've completely misunderstood the problem in which case forgive me.
Paul
--
Paul Fremantle
Co-Founder and VP of Technical Sales, WSO2
OASIS WS-RX TC Co-chair
blog: http://pzf.fremantle.org
[EMAIL PROTECTED]
"Oxygenating the Web Service Platform", www.wso2.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]