question about messaging with web services

  • Thread starter Secret Squirrel
  • Start date
S

Secret Squirrel

Hi All,

Let's say I have a web service InternalService1 that expose 30 web
methods. This web service is only exposed internally, and it does not
take a parameter for the "customer ID" (not required by WSDL).

Lets say I have a second web service ExternalService1 that exposes 30
identical web methods, except this second set of web methods each take
an additional "customer ID" parameter.

So, I want to map the messages from the InternalService1 to the other
web service ExternalService1. When InternalService1 is called, I want
to stick a "customer ID" with a value indicating an internal customer
is using the server.

I suppose I can write code in InternalService1 like this:

[WebMethod]
void Foo1(int someParam)
{
InternalService1Insance.Foo1(someParam, internalCustomerID);
}

but this is not very elegant? I would really like to say, these are the
same services, except this internal one adds a parameter. I think it
would be easy to modify the XML in the message to add this additional
parameter...

Thanks,

Jon Paugh
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top