Re: Callback Service problem

2007-11-12 Thread Nishant Joshi
Thanks Simon, Now i have exact idea about callback mechanism. It was really
very good solution.
Mechanism is to set result back to client and provide interfaces on client
side to call.
Before i m very confused about callback but now, i m very cleared and
looking forward for such a descriptive help


again thanks a lot

Nishant Joshi


Re: SOAPProcessingException after update from SCA 0.99 to 1.0

2007-11-12 Thread Simon Laws
On Nov 11, 2007 4:52 PM, Philipp Konradi <[EMAIL PROTECTED]> wrote:

> Hi all,
>
> after upgrading from Tuscany SCA Java v0.99 to 1.0 one of my sample
> applications has broken.
> The app is pretty simple: a Java SCA service calls a Native SCA service
> via
> Web Services.
> After version upgrade I'm getting a SOAPProcessingException saying "Only
> Characters are allowed here".
>
> Does somebody else experienced something similar? Any explanations what's
> the reason and how to fix/workaround here?
>
> Here some details to the app:
> The Java SCA service is actually the helloworld-ws-reference sample.
> The Native SCA service is a simple helloworld implementation in C++
> deployed
> in Axis2/C.
>
> The call makes it actually to Axis2/C but then Axis2/C returns a SOAP
> fault
> message.
>
> Here the axis2c log:
> 
> [Sun Nov 11 16:07:29 2007] [info] Starting HTTP server thread
> [Sun Nov 11 16:12:34 2007] [debug]
> ..\..\modules\core\transport\http\http_worker.c(206) Client HTTP version
> HTTP/1.1
> [Sun Nov 11 16:12:34 2007] [debug]
> ..\..\axiom\src\soap\soap_builder.c(868)
> Identified soap version is soap11
> [Sun Nov 11 16:12:34 2007] [debug] ..\..\modules\core\engine\engine.c(776)
> Invoking phase TransportIn
> [Sun Nov 11 16:12:34 2007] [debug] ..\..\modules\core\engine\phase.c(358)
> Invoke the handler request_uri_based_dispatcher within the phase
> TransportIn
> [Sun Nov 11 16:12:34 2007] [debug]
> ..\..\modules\core\engine\req_uri_disp.c(104) Checking for service using
> target endpoint address : http://127.0.0.1:9090/HelloWorldService
> [Sun Nov 11 16:12:34 2007] [debug] ..\..\modules\core\engine\engine.c(776)
> Invoking phase PreDispatch
> [Sun Nov 11 16:12:34 2007] [debug] ..\..\modules\core\engine\phase.c(358)
> Invoke the handler AddressingInHandler within the phase PreDispatch
> [Sun Nov 11 16:12:34 2007] [info] Starting addressing in handler .
> [Sun Nov 11 16:12:34 2007] [debug]
> ..\..\axiom\src\soap\soap_fault_code.c(273) trying to set fault subcode to
> fault code more than once
> [Sun Nov 11 16:12:34 2007] [debug] ..\..\modules\core\engine\engine.c(776)
> Invoking phase MessageOut
> [Sun Nov 11 16:12:34 2007] [debug] ..\..\modules\core\engine\phase.c(358)
> Invoke the handler AddressingOutHandler within the phase MessageOut
> [Sun Nov 11 16:12:34 2007] [info] Request served successfully
>
> Here the output on the Java side:
> [java] Injected helloWorldService
> [java] Called getGreetings
> [java] Exception in thread "main"
> org.apache.axiom.soap.SOAPProcessingException: Only Characters are allowed
> here
> [java] at
> org.apache.axiom.soap.impl.builder.SOAP11BuilderHelper.processText
> (SOAP11BuilderHelper.java:151)
> [java] at
> org.apache.axiom.soap.impl.builder.SOAP11BuilderHelper.handleEvent
> (SOAP11BuilderHelper.java:63)
> [java] at
> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.constructNode(
> StAXSOAPModelBuilder.java:344)
> [java] at
> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.createOMElement(
> StAXSOAPModelBuilder.java:187)
> [java] at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(
> StAXOMBuilder.java:163)
> [java] at org.apache.axiom.om.impl.llom.OMElementImpl.buildNext(
> OMElementImpl.java:552)
> [java] at org.apache.axiom.om.impl.llom.OMElementImpl.getFirstOMChild(
> OMElementImpl.java:563)
> [java] at
> org.apache.axiom.om.impl.llom.OMElementImpl.getFirstChildWithName(
> OMElementImpl.java:219)
> [java] at org.apache.axiom.soap.impl.llom.soap11.SOAP11FaultImpl.getCode(
> SOAP11FaultImpl.java:129)
> [java] at org.apache.axis2.AxisFault.initializeValues(AxisFault.java:189)
> [java] at org.apache.axis2.AxisFault.(AxisFault.java:183)
> [java] at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(
> Utils.java:486)
> [java] at
> org.apache.axis2.description.OutInAxisOperationClient.handleResponse(
> OutInAxisOperation.java:343)
> [java] at org.apache.axis2.description.OutInAxisOperationClient.send(
> OutInAxisOperation.java:389)
> [java] at
> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(
> OutInAxisOperation.java:211)
> [java] at org.apache.axis2.client.OperationClient.execute(
> OperationClient.java:163)
> [java] at
> org.apache.tuscany.sca.binding.ws.axis2.Axis2BindingInvoker.invokeTarget(
> Axis2BindingInvoker.java:102)
> [java] at
> org.apache.tuscany.sca.binding.ws.axis2.Axis2BindingInvoker.invoke
> (Axis2BindingInvoker.java:77)
> [java] at
>
> org.apache.tuscany.sca.core.databinding.wire.DataTransformationInteceptor.invoke
> (DataTransformationInteceptor.java:73)
> [java] at
> org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke
> (JDKInvocationHandler.java:233)
> [java] at
> org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke
> (JDKInvocationHandler.java:130)
> [java] at $Proxy4.getGreetings(Unknown Source)
> [java] at helloworld.HelloWorldServiceComponent.getGreetings(
> HelloWorldServiceComponent.java:30)
> [java] at sun.reflect.NativeMethodAccessorImpl.invoke0

Re: org.apache.axis2.AxisFault: The system cannot infer the transport information from the / URL

2007-11-12 Thread Simon Laws
On Nov 5, 2007 9:04 AM, ashjk <[EMAIL PROTECTED]> wrote:

> Hi,
>  I had deployed a service using binding.ws & transport as jms (similar to
> helloworld-ws-service & helloworld-ws-reference-jms), the service is
> starting properly but while the client is trying to communicate with
> service
> the following fault has occured:
>  run:
>   [java] Exception in thread "main"
> java.lang.reflect.UndeclaredThrowableException
>[java] at $Proxy7.getPRID(Unknown Source)
>   [java] at procurement.PurchaseRequestServiceBPOComponent
> .getPRID(PurchaseRequestServiceBPOComponent.java:20)
>   [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>
>   [java] at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorIm
> pl.java:39)
>   [java] at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAc
> cessorImpl.java:25)
>   [java] at java.lang.reflect.Method.invoke(Method.java:585)
>   [java] at
> org.apache.tuscany.sca.implementation.java.invocation.JavaImplemen
> tationInvoker.invoke(JavaImplementationInvoker.java:105)
>   [java] at
> org.apache.tuscany.sca.core.databinding.wire.PassByValueIntercepto
> r.invoke(PassByValueInterceptor.java:49)
>   [java] at
> org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke
> (JDKInvocationHandler.java:233)
>   [java] at
> org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke
> (JDKInvocationHandler.java:130)
>   [java] at $Proxy6.getPRID(Unknown Source)
>   [java] at procurement.PurchaseRequestJmsClient.main(Purc
> haseRequestJmsClient.java:16)
>   [java] Caused by: org.apache.axis2.AxisFault: The system cannot
> infer the transport information from the / URL.
>   [java] at
> org.apache.axis2.description.ClientUtils.inferOutTransport(ClientU
> tils.java:73)
>   [java] at
> org.apache.axis2.client.OperationClient.prepareMessageContext(Oper
> ationClient.java:302)
>   [java] at
> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(
> OutInAxisOperation.java:174)
>   [java] at
> org.apache.axis2.client.OperationClient.execute(OperationClient.ja
> va:163)
>   [java] at
> org.apache.tuscany.sca.binding.ws.axis2.Axis2BindingInvoker.invoke
> Target(Axis2BindingInvoker.java:100)
>   [java] at
> org.apache.tuscany.sca.binding.ws.axis2.Axis2BindingInvoker.invoke
> (Axis2BindingInvoker.java:75)
>   [java] at
> org.apache.tuscany.sca.core.databinding.wire.DataTransformationInt
> erceptor.invoke(DataTransformationInterceptor.java:73)
>   [java] at
> org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke
> (JDKInvocationHandler.java:233)
>   [java] at
> org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke
> (JDKInvocationHandler.java:130)
>   [java] ... 12 more
>   [java] Java Result: 1
>
>  I am trying to pass an Array of Objects using the webservice..
>
>  *binding :* http://schemas.xmlsoap.org/soap/jms"/>
>
> *location in the wsdl: *
> 
> location="jms:/queue.prcreate?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&java.naming.factory.initial=
> org.apache.activemq.jndi.ActiveMQInitialContextFactory&
> ;java.naming.provider.url=tcp://localhost:61616"/>
>
>
> *This is the client composite file reference tag: *
>
> promote="PurchaseRequestServiceBPOComponent/purchaseRequestBPOInterfaceService">
>
>   
>   http://procurementBPO#wsdl.binding(PurchaseRequestBPOSoapJmsBinding
> 
> >)
> " />
>   
>
Hi ,

Catching up with some email and noticed you didn't get and answer to this.
Is it possible to show the WSDL you are using (or a sample that is like it).
I could then give it a go and see if I can track down the problem.

Regards

Simon


At ApacheCon this week

2007-11-12 Thread Jean-Sebastien Delfino

Anyone going to ApacheCon?

I'm there at the Hackathon today and will be there all week.

Drop me an email if you're going to be there and want to meet!

--
Jean-Sebastien


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]