WebServices & SOAP Hell!

I have been working with Webservices and SOAP for almost 2 weeks now. Here is the problem :

I made a SOAP client in JAVA and a webservice(also JAVA) which returns a 2D array.

Now eveything works fine when you run the client from the commandline, the client is simple, it just build a soap request and send it to the server and print the SOAP response from the server. This works with no issues!

Now when I trigger the agent(soap client) from web with “?openagent” the http task of domino just hangs and the only way to fix that is resetting the whole server, this is driving me mad, I thought maybe there is something wrong with my client, so I used the same client to access the Google Search Service which is also SOAP based. The strange part is that this works great, the restult is printed on the page as XML when running the client from the web , but when I do the same with my own server the http will crash, again from commandline the results are printed properly, I have also tried to run the client local , I thought maybe you are not able to run both the server and client on the same machine, but that didnt help.

Is there some kind of weird setting causing this problem or can someone help me ? :slight_smile:

thank you

Summary :

client → own webservice run commandline (OK)

client → Google webservice run commandline (OK)

client → Google webservice ?openagent - WEB (OK)

cleint → own webservice ?openagent - WEB (CRASH)

Subject: WebServices & SOAP Hell!

Hang on – are the WS client and server on the same machine? How are you calling the service?

Subject: RE: WebServices & SOAP Hell!

Well they were on the same machine, but I also tried to run it from local,

commandline :

tell amgr run “xxx.nsf” ‘soapclient’

This works but

http://server/xxx.nsf/soapclient?openagent crash the server

http://local/xxx.nsf/soapclient?openagent crash the server also :frowning:

changing the client to call the Google WebService instead works great, but It crahes every time I call it through web for my own webservice :cry:

Subject: RE: WebServices & SOAP Hell!

The loopback URL is http://localhost/path/db.nsf/agent?openagent

Subject: RE: WebServices & SOAP Hell!

I know how to call the agent, as I told many times, the same url works when calling the google webservice, so there is nothing wrong with how I call the agent

Thank you anyways

Subject: RE: WebServices & SOAP Hell!

You have to enable “Run Web Agents Concurrenly” in your server document. At the end of the day a web service is just an Agent. If you are calling your web service from an agent, then the second agent is waiting for the first agent to finish. Hence the server hanging.

Subject: RE: WebServices & SOAP Hell!

Um, how in the (censored) does the fact that you can construct a valid URL to an external service prove that you know how to construct a valid localhost URL? In your own posting you got it wrong – not an encouraging sign, actually proving that you DON’T know. (And yes, you do need to enable concurrent agents.)

Subject: RE: WebServices & SOAP Hell!

You have to enable “Run Web Agents Concurrenly” in your server document. At the end of the day a web service is just an Agent. If you are calling your web service from an agent, then the second agent is waiting for the first agent to finish. Hence the server hanging.