Jean-Sebastien Delfino wrote:
Pete Robbins wrote:
On 07/07/06, Jean-Sebastien Delfino <[EMAIL PROTECTED]> wrote:
Jean-Sebastien Delfino wrote:I'm trying the Linux binary
distribution and
running into the following
issues:
- The INSTALL files for both the SDO and SCA distributions just say
"Extract the binary tar package to a folder". I suggest to add a
statement asking to add the lib directory needs to be added to
LD_LIBRARY_PATH, so that the SCA and SDO shared libraries can be found.
OK. I guess that info is needed when running apps. I think it is
mentioned
in the samples doc... or the scripts to run the samples already set
that up.
- The test cases in bin/test do not work, tuscany_sdo_test complains
about XSD files not found, tuscany_sdo_axiom_test about "no root
element
in the document", tuscany_sca_test about TUSCANY_SCACPP_SYSTEM_ROOT not
being set. I'm just running these test cases from bin/test. It may be a
problem in my environment, or I may have missed a doc describing how to
run these tests, or maybe they're not supposed to be run this way...
Any ideas on what I'm doing wrong? Thanks.
These test cases should not be in the bin distribution. They are only to
verify the src build.There are scripts to run thenm from the src
distro. I
will remove them from the bin.
Try the samples ;-)
Thanks for the input.
--
Pete
Pete, I am trying the samples.
The Calculator sample works OK.
I'm having trouble with the Calculator web service.
I am using the Axis2 simple HTTP server, configured as described in
your samples doc.
Running runwsclient gives me this:
Invoking operation add with params 4.7 and 9
CalculatorImpl::add 4.700000 + 9.000000 = 13.700000
No Root Element in the document
Calculator stub invoke FAILED!
Using endpoint : http://localhost:9090/axis2/services/Calculator
Invoking operation div with params 7.2 and 3.6
DivideServiceImpl::div 7.200000 / 3.600000 = 2.000000
CalculatorImpl::div DivideService returned result: 2.000000
No Root Element in the document
Calculator stub invoke FAILED!
Using endpoint : http://localhost:9090/axis2/services/Calculator
Invoking operation mul with params 7 and 6
CalculatorImpl::mul 7.000000 * 6.000000 = 42.000000
No Root Element in the document
Calculator stub invoke FAILED!
I am still investigating but here's my axis2 log (looks OK to me but
I'm not sure...):
[Fri Jul 7 15:39:02 2006] [debug] http_worker.c(191) Client HTTP
version HTTP/1.1
[Fri Jul 7 15:39:02 2006] [debug] soap_builder.c(840) identified soap
version is soap12
[Fri Jul 7 15:39:02 2006] [debug] engine.c(881) Invoking phase
TransportIn
[Fri Jul 7 15:39:02 2006] [debug] engine.c(881) Invoking phase
PreDispatch
[Fri Jul 7 15:39:02 2006] [debug] phase.c(338) Invoke the handler
AddressingInHandler within the phase PreDispatch
[Fri Jul 7 15:39:02 2006] [info] Starting addressing in handler
.........
[Fri Jul 7 15:39:02 2006] [info] addr_in_handler.c
[Fri Jul 7 15:39:02 2006] [debug] engine.c(881) Invoking phase Dispatch
[Fri Jul 7 15:39:02 2006] [debug] phase.c(338) Invoke the handler
addressing_based_dispatcher within the phase Dispatch
[Fri Jul 7 15:39:02 2006] [debug] addr_disp.c(110) Checking for
service using WSA enpoint address :
http://127.0.0.1:9090/axis2/services/Calculator
[Fri Jul 7 15:39:02 2006] [debug] addr_disp.c(140) Service found
using WSA enpoint address
[Fri Jul 7 15:39:02 2006] [debug] phase.c(338) Invoke the handler
request_uri_based_dispatcher within the phase Dispatch
[Fri Jul 7 15:39:02 2006] [debug] phase.c(338) Invoke the handler
soap_action_based_dispatcher within the phase Dispatch
[Fri Jul 7 15:39:02 2006] [debug] phase.c(338) Invoke the handler
soap_message_body_based_dispatcher within the phase Dispatch
[Fri Jul 7 15:39:02 2006] [debug] soap_body_disp.c(211) Checking for
operation using SOAP message body's first child's local name : add
[Fri Jul 7 15:39:02 2006] [debug] soap_body_disp.c(220) Operation
found using SOAP message body's first child's local name
[Fri Jul 7 15:39:02 2006] [debug] engine.c(881) Invoking phase
PostDispatch
[Fri Jul 7 15:39:02 2006] [debug] phase.c(338) Invoke the handler
dispatch_post_conditions_evaluator within the phase PostDispatch
[Fri Jul 7 15:39:02 2006] [debug] phase.c(338) Invoke the handler
context_handler within the phase PostDispatch
[Fri Jul 7 15:39:02 2006] [debug] engine.c(881) Invoking phase
PolicyDetermination
[Fri Jul 7 15:39:02 2006] [debug] engine.c(881) Invoking phase
PreDispatch
[Fri Jul 7 15:39:02 2006] [info] Axis2EntryPointService invoke
called with system root:
/home/delfinoj/Tuscany/M1-cpp/tuscany_sca_cpp-0.1.incubating-M1-bin/samples/Calculator/deploy
entrypoint name:
CalculatorSubsystem/CalculatorService/WSCalculatorEntrypoint operation
name: add
[Fri Jul 7 15:39:02 2006] [debug] engine.c(440) Axis2 engine receive
successful
[Fri Jul 7 15:39:02 2006] [info] Request served in 0.137 seconds
Finally, I'm now trying to test your web service with a SOAP test
tool, and seeing that the Calculator.wsdl is using a different
endpoint than the client (http://localhost/axis/CalculatorService),
it's a minor issue but it would be nice if they used the same endpoint
to avoid creating confusion... I got different "service not found"
errors in axis2.log when I started with the WSDL, and at least that
confused me :)
I'll send an update later when I get a capture of the SOAP traffic,
hoping it'll help understand why the web service is not working.
More info, here's a capture of the TCP/IP traffic between my SOAP test
tool and the Calculator Web service:
Request:
POST /axis/services/Calculator HTTP/1.1
Host: localhost:8123
Content-Type: text/xml; charset=utf-8
Content-Length: 328
Accept: application/soap+xml, application/dime, multipart/related, text/*
Cache-Control: no-cache
Pragma: no-cache
SOAPAction: "CalculatorService#add"
Connection: close
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:q0="tuscany/c/Calculator"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<q0:add>
<q0:param1>1</q0:param1>
<q0:param2>2</q0:param2>
</q0:add>
</soapenv:Body>
</soapenv:Envelope>
Response:
HTTP/1.1 202 Accepted
Connection: close
The web service is actually invoked on the server side I can see a print
that says:
Calc ulatorImpl::add 1.000000 + 2.000000 = 3.000000 :)
then... No Root Element in the document :(
So it's really close to working end to end, until this "No Root Element
in the document" problem. The interesting thing is that when I try
runwsclient I am getting this message on the client side, and I know
that the web service is not executing on the server side. So I'm
starting to suspect a problem with the SDO serialization, but it's just
a wild guess at this point.
Hope this helps... I have the Eclipse CDT configured with a debugger so
I'll continue to investigate and plow through this...
--
Jean-Sebastien
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]