axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Samisa Abeysinghe <sam...@wso2.com>
Subject Re: Services.xml
Date Mon, 30 Jul 2007 05:38:29 GMT
Manoj Rao wrote:
> Hi Samisa,
> The situation here is that the server receives the request from client 
> processes it and calls the correct functions and when the server 
> responds to 
> the client with a complextype xml, this XML doesn't reach the client. 
What does the client log say?
> In 
> fact 
> the XML we have formed is syntactically correct but the client doesn't 
> receive xml. After calling this API 
> axiom_xml_writer_get_xml() the buffer obtained shows the correct 
> response xml 
> formed by the server. 
> the sample response xml is
> <ns1:Result xmlns:ns1="http://axis2c/services/<My Service 
> Name>/namespace1">
>   
Is this the exact XML or a sample? If this is exact XML, then having 
"<My Service Name>" in XML is incorrect.

Samisa...
>     <ns1:myReadResponse>
>         <ErrorCode>0</ErrorCode>
>         <ErrorMessage>SUCCESS</ErrorMessage>
>         <myResponse>
>             <param1>Default</param1>
>             <param2>15</param2>
>             <param3>home.net</param3>
>             <param4>office.net</param4>
>             <param5>1</param5>
>             <param6>1024</param6>
>             <param7>1024</param7>
>             <param8>15</param8>
>             <param9>-1</param9>
>             <param10>-1</param10>
>             <param11>1</param11>
>         </myResponse>
>         <myResponse>
>             <param1>om</param1>
>             <param2>5</param2>
>             <param3>google.com:0</param3>
>             <param4>yahoo.com:0</param4>
>             <param5>2</param5>
>             <param6>2400</param6>
>             <param7>2400</param7>
>             <param8>15</param8>
>             <param9>3</param9>          
>             <param10>-1</param10>
>             <param11>1</param11>
>         </myResponse>
>         <myResponse>
>             <param1>omnew123344</param1>
>             <param2>5</param2>
>             <param3>domain1.com:0</param3>
>             <param4>domain2.com:0</param4>
>             <param5>2</param5>
>             <param6>2400</param6>
>             <param7>2400</param7>
>             <param8>15</param8>
>             <param9>511</param9>
>             <param10>255</param10>
>             <param11>1</param11>
>         </myResponse>
>     </ns1:myReadResponse>
> </ns1:Result>
>
> The client doesn't receive any XML at all in this case. The rest of the 
> framework, if you can call it, for writing clients has been done and is 
> being used for some time now.
>
> Thanks,
> Manoj R
>
>
> On Saturday 28 Jul 2007 11:34 am, Samisa Abeysinghe wrote:
>   
>> Raghavendra SM wrote:
>>     
>>> Oh Sorry, "acc_invoke" was a typo error, and it actually is 
>>>       
> "my_invoke".
>   
>>> Even then I face the same problem. Please take another look & let us
>>> know if you need more information of any sort.
>>>       
>> Well, I fixed this typo, removed the func_array add statements form 
>>     
> init
>   
>> method and also fixed a typo on line 105 where the trailing double 
>>     
> quote
>   
>> of the string was missing and replaced echo with this service and
>> everything worked fine. Of course, I also commented out your custom
>> logging statements.
>>
>> How did you compile the service lib? What is the exact compiler 
>>     
> options
>   
>> used? I used the makefile form echo service. If you used command line 
>>     
> to
>   
>> compile, make sure you used "-lpthread -ldl" options when linking.
>>
>> Thanks,
>> Samisa...
>>
>>     
>>> Regards,
>>> ~raghav
>>>
>>>
>>> -----Original Message-----
>>> From: Samisa Abeysinghe [mailto:samisa@wso2.com]
>>> Sent: Friday, July 27, 2007 6:53 AM
>>> To: Apache AXIS C User List
>>> Subject: Re: Services.xml
>>>
>>> Raghavendra SM wrote:
>>>       
>>>> Hi Samisa,
>>>>
>>>> Please find the server code below, which is causing the problems as
>>>> described by Manoj Rao. Please let me know if need more information
>>>>         
>>> than
>>>
>>>       
>>>> this.
>>>>
>>>> These are the skeleton functions of the server.
>>>>         
>>> I think I found the problem. In your my_svc_skeleton_ops_var 
>>>       
> variable,
>   
>>> you have provided my_invoke as the invoke function. However, in your
>>> source, there is no such function, rather a function named 
>>>       
> acc_invoke. I
>   
>>> think you have to rename acc_invoke to my_invoke and try.
>>>
>>> Also in the my_init function, you do not need to initialize
>>> svc_skeleton->func_array. You can safely comment whole of my_init
>>> function, leaving only the return AXIS2_SUCCESS; line in there.
>>>
>>> HTH.
>>>
>>> Thanks,
>>> Samisa...
>>>       
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-c-user-help@ws.apache.org
>
>
>   


-- 
Samisa Abeysinghe : http://www.wso2.org/ (WSO2 Oxygen Tank - Web Services Developers' Portal)


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-user-help@ws.apache.org


Mime
View raw message