axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anne Thomas Manes <atma...@gmail.com>
Subject Re: Need to pass a SOAPEnvelope as a Call.invoke() parameter....
Date Tue, 12 Apr 2005 21:36:57 GMT
You need to use the message interface if you want to send a SOAPEnvelope.

Anne

On Apr 12, 2005 5:14 PM, Irineu Avanço Jr. <iavanco@mcn.com.br> wrote:
>  
> 
> People... 
> 
> I am trying to send a  SOAPEnvelope  object  using  the invoke method
> signature as shown below 
>  
> 
>       SOAPEnvelope envelopeAxis  =  new SOAPEnvelope(); 
> 
>         Call     call    = (Call) service.createCall(); 
> 
>         call.setTargetEndpointAddress( url ); 
> 
>         call.setOperationName( new QName("TermoPortabilidade",              
>                                            "getTermSOAPEnv") ); 
> 
>                   
> 
>         call.setUsername( user ); 
> 
>         call.setPassword( passwd ); 
> 
>         ret = call.invoke(envelopeAxis ); 
> 
>       String resp  =  (String) ret; 
>  
> 
> However there is an  AxisFault being generated when I try to run my   client
> application as follows... 
>  
> 
> java.io.IOException: No serializer found for class
> org.apache.axis.message.SOAPEnvelope in registry 
>  
> 
> Does anybody knows how to fix this Exception ?? 
> 
> Should I need to use a different  Call.invoke()  method signature ? 
> 
> Keep in mind that I need to send a SOAPEnvelope object as a invoke parameter
> because it has  attachments. 
> 
> Appreciate your help. 
> 
> Thanks a lot. 
> 
> Irineu Avanço Jr. 
>  
>

Mime
View raw message