Recent

Author Topic: Can AXIS2 and WSTK work together?  (Read 5722 times)

eny

  • Hero Member
  • *****
  • Posts: 1648
Can AXIS2 and WSTK work together?
« on: March 16, 2011, 02:03:44 am »
I have an AXIS2 SOAP webservice that correctly works with a Java client.
It's a webservice that receives an input string and returns an output string.
I used the Web Service Toolkit to generate the stubs for a a Lazarus SOAP client.

Now calling the webservice works (AXIS2 logs the call) and the returned SOAP message is correctly received by the Lazarus webservice stub.
Unfortunately the generated stubs do not parse the SOAP message correctly.
The parser doesn't correctly parse namespaces in the soap Body.
This seems to be related to a problem already mentioned here.

Is there a workaround for this problem?
I.e. is it possible to call an AXIS2 webservice with Lazarus?

<<update>>

The problem lies in the parser. The parser tries to resolve the namespace url in the response, but searches too high up in the tree. Below is the SOAP reply message:

<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
  <soapenv:Body>
    <ns:sayHelloResponse xmlns:ns="http://service.eny.com">
      <ns:return>Howdy eny!</ns:return>
    </ns:sayHelloResponse>
  </soapenv:Body>
</soapenv:Envelope>


The parser tries to resolve the namespace url "http://service.eny.com".
But parsing starts with node <soapenv:Body> and then goes up.
Of course nothing is found then.
« Last Edit: March 16, 2011, 11:36:35 am by eny »
All posts based on: Win10 (Win64); Lazarus 3_4  (x64) 25-05-2024 (unless specified otherwise...)

andresmq

  • Newbie
  • Posts: 1
Re: Can AXIS2 and WSTK work together?
« Reply #1 on: July 13, 2011, 04:45:12 pm »
Hi Eny,

I'm trying to make a client to consume a webservies lazarus of Axis2, but I find the same problem.
Find solutions to this problem?

eny

  • Hero Member
  • *****
  • Posts: 1648
Re: Can AXIS2 and WSTK work together?
« Reply #2 on: July 13, 2011, 11:17:08 pm »
Find solutions to this problem?
Well, yes and no  :)
The toolkit doesn't work so I stopped using it.
I was in the process of building a GUI frontend with Lazarus to a SOAP backend server on Linux.
The logical/easiest solution at the time seemed to go for a Java/AXIS2 backend.
But after disappointing results and extensive debugging I abandoned that idea.
Also I didn't like the messy code that was generated by the toolkit.

I decided to go for the most flexible solution: build my own (SOAP) backend with Synapse. This was only possible because of Lazarus'  availability for Linux.
The PoC works and now I'm working on a code generator for client and server side message parsing.
(Although because of other projects I have had to pause this for a while  8) )
All posts based on: Win10 (Win64); Lazarus 3_4  (x64) 25-05-2024 (unless specified otherwise...)

 

TinyPortal © 2005-2018