ws-mirae-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Changshin Lee <iasan...@gmail.com>
Subject Re: The limitation of sending string value from server to client
Date Wed, 22 Feb 2006 01:24:24 GMT
Hi,

Unfortunately, all I can recommend to you is trying Mirae WS. Here's  
a brief how-to-use-it:

1. Build WsdlToJavaMe tool.
run "ant jar-wsdl2javame"

2. Run WsdlToJavaMe to generate artifacts just like the old tool.

3. Build Mirae WS runtime.
run "ant jar-mirae-stax jar-mirae-ws"

4. Use mirea-ws.jar and mirae-stax.jar to run your client with  
generated artifacts.

If you have some problem in using Mirae WS, please don't hesitate to  
ask me about it.

Cheers,

Ias

P.S. Mirae RPC authors may be able to help you.

2006. 02. 21, 오후 12:02, chathurika 작성:

>
> Hi,
> I'm using axis server version 1.1 and older version of mirea client
> I'm trying to send an xml file from a server deployed in axis to a  
> mirae client. To send the xml file , I have converted into a string  
> and then trying to send it to the client. The parameter that would  
> be recieved from the j2me client will be simple string type.
>
> When i send the following "result1" from the server , j2me client  
> (based on mirae) recives the data correctly.
>
> result1 =
> "XML:<method><table>WS_EMPLOYEE</table><field name=\"EMP_ID\" type=

> \"string\" size=\"20\">Id</field><field name=\"EMP_NAME\" type= 
> \"string\" size=\"50\">Name</field><field name=\"EMP_AGE\" type= 
> \"int\" size=\"11\" min=\"20\" max=\"60\" >Age</field><field name= 
> \"EMP_ADDRESS\" type=\"string\" size=\"100\">Addr</field></method>"
>
> response recieved at from client would be:
> response  =
> "XML:<method><table>WS_EMPLOYEE</table><field name=\"EMP_ID\" type=

> \"string\" size=\"20\">Id</field><field name=\"EMP_NAME\" type= 
> \"string\" size=\"50\">Name</field><field name=\"EMP_AGE\" type= 
> \"int\" size=\"11\" min=\"20\" max=\"60\" >Age</field><field name= 
> \"EMP_ADDRESS\" type=\"string\" size=\"100\">Addr</field></method>"
>
>
>
> But when i trying to add more elements and increase the length of  
> the string result and try to send it as follows:
>
> result= "XML:<method><table>WS_EMPLOYEE</table><field name=\"EMP_ID

> \" type=\"string\" size=\"20\">Id</field><field name=\"EMP_NAME\"  
> type=\"string\" size=\"50\">Name</field><field name=\"EMP_AGE\"  
> type=\"int\" size=\"11\" min=\"20\" max=\"60\" >Age</field><field  
> name=\"EMP_PHONE\" type=\"string\" size=\"10\">Phone</field><field  
> name=\"EMP_ADDRESS\" type=\"string\" size=\"10\">Addr</field></ 
> method>";
>
> The following exception is thrown at the client side:
>
> org.apache.mirae.util.MIRAEException:  
> org.xml.sax.SAXParseException: '=' expected
>  at org.apache.mirae.xml.rpc.Call.invoke(+209)
>  at newgenstubs.Sender1Stub.prepareMessage(+96)
>  at com.beyondm.j2me.dbupdate.EmailClient.run(+21)
>  at com.beyondm.j2me.dbupdate.DBUpdateMidlet$1.run(+26)
> response :
> null
>
> and the response received would be null.
>
>
> Is there a length limitation when sending a string from server to  
> mirae client. Or is there a better way to send the xml file from  
> server to mirae client.
> Could you please reply to this email?
>
>
> Thanks,
> Chathurika
>


---------------------------------------------------------------------
To unsubscribe, e-mail: mirae-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: mirae-dev-help@ws.apache.org


Mime
View raw message