g*****g 发帖数: 34805 | 1 I made my web service successfully using XFire. And I basically didn't
have to know a thing about Soap.
Now boss is talking about packing multiple calls in a request to speed
things up, which he doesn't have much clue himself.
Assusme you have a very simple interface
String sevice(String)
how do you achieve that, use a collection for parameter and return?
Or there's a standard way to do that by configuration?
The thing is the client will be implemented in C++ and I better make it in
standard way |
c*****t 发帖数: 1879 | 2 A collaborator who implemented a webservice for me just dump the data in
a simple xml output for one query due to the complexity of the data, and
several tab deliminated tables for another query.
【在 g*****g 的大作中提到】 : I made my web service successfully using XFire. And I basically didn't : have to know a thing about Soap. : Now boss is talking about packing multiple calls in a request to speed : things up, which he doesn't have much clue himself. : Assusme you have a very simple interface : String sevice(String) : how do you achieve that, use a collection for parameter and return? : Or there's a standard way to do that by configuration? : The thing is the client will be implemented in C++ and I better make it in : standard way
|
g*****g 发帖数: 34805 | 3 That sounds like a complex type.
e.g. You have a return type like A
class A{
int aa;
String bb;
}
Of course I can use a collection/array for my in/out param. But that's
a different story. Is there a way to declaretively make multiple calls
in one soap request/response? or any similar way to speed it up without
changing the service interface?
【在 c*****t 的大作中提到】 : A collaborator who implemented a webservice for me just dump the data in : a simple xml output for one query due to the complexity of the data, and : several tab deliminated tables for another query.
|
m****r 发帖数: 6639 | 4 我也在搞soap, 也是乱来....
【在 g*****g 的大作中提到】 : I made my web service successfully using XFire. And I basically didn't : have to know a thing about Soap. : Now boss is talking about packing multiple calls in a request to speed : things up, which he doesn't have much clue himself. : Assusme you have a very simple interface : String sevice(String) : how do you achieve that, use a collection for parameter and return? : Or there's a standard way to do that by configuration? : The thing is the client will be implemented in C++ and I better make it in : standard way
|
m******t 发帖数: 2416 | 5
I don't think there is any way to put multiple calls into the same soap
envelope, without defining a new facade service API and a wrapper complex
type (or an array).
BTW, think you don't have to know anything about soap to build a soap
service? Wait til you try to call it from a non-Java client. ;-)
【在 g*****g 的大作中提到】 : That sounds like a complex type. : e.g. You have a return type like A : class A{ : int aa; : String bb; : } : Of course I can use a collection/array for my in/out param. But that's : a different story. Is there a way to declaretively make multiple calls : in one soap request/response? or any similar way to speed it up without : changing the service interface?
|
g*****g 发帖数: 34805 | 6 Actually my service will serve non-java client only, but it's not my job
to develop the client and I can care less. :-)
As long as I have the wsdl and a java client for unit testing, I am done.
【在 m******t 的大作中提到】 : : I don't think there is any way to put multiple calls into the same soap : envelope, without defining a new facade service API and a wrapper complex : type (or an array). : BTW, think you don't have to know anything about soap to build a soap : service? Wait til you try to call it from a non-Java client. ;-)
|