paulm rhoades

Greenhorn
+ Follow
since Nov 08, 2005
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by paulm rhoades

ok - i think you may have skipped a few chapters of the intro to web services - clients tend to be other programs not browsers. i find the best way to develop is to use the wsdl2Java tool - write the wsdl to define your web service and then use wsdl2Java to code generate java for your client and server end-points.
16 years ago
i want to pass events from a client to a server via a web service interface such as:

public void accept(Event e);

now Event is actually an interface (or abstract class) with specialisations defined for each concrete event type (e.g. AddUserEvent, UpdateUserEvent, etc..). So, how do i do it. Does SOAP handle inheritance, or if not can i overload the service:

public void accept(AddUserEvent e);
public void accept(UpdateUserEvent e);#

or is there a.n.other approach?
16 years ago
i have some web services that return fairly large data sets (~10K of xml) which at present takes 2 seconds between the request being made by a client and the reply be received - does anyone have a feel for how this will be impacted if i introduce ssl?
16 years ago
ok solved this - the problem was that the generated wsdl was incorrect...

<complexType name="ArrayOfPerformanceVO">
<sequence>
<element maxOccurs="unbounded" minOccurs="0" name="item" type="impl erformanceVO"/>
</sequence>
</complexType>

i replaced "item" with "pvos" as found in the xml returned by the java server and all worked fine.
16 years ago
ok - i tried doing wsdl -> java (using wsdl2Java) and wsdl -> c++ (using wsdl.exe) but still no joy deserializing an array in the C# client - i'm playing catchup here, but - i think my java side is ok - i've just used TCPMonitor and the object being passed from java service to the C# client contains correct entries (i.e. array elements) so it seems that the c# client is discarding the array data?
16 years ago
i am struglling with a common problem but can't find the answer in the multitude of discussions, so i am...

a) write java service interface
b) use Java2WSDL to create wsdl file
c) use wsdl.exe to generate c# stub
d) deploy java service to tomcat/axis using RPC, Wrapped, Literal service configuration

so, i can pass simple javabeans to and fro but once a add an array to my java bean the contents do not get passed (i.e. array.length = 0). i've tried switching to document mode but then the C# code throws exceptions. i have looked at the wsdl and it seems to generate correctly, here's an extract....



what am i missing?
16 years ago