You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mirae-user@ws.apache.org by chathurika <ch...@beyondm.net> on 2006/02/21 04:02:42 UTC

The limitation of sending string value from server to client

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

Re: The limitation of sending string value from server to client

Posted by Changshin Lee <ia...@gmail.com>.
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


Re: The limitation of sending string value from server to client

Posted by Changshin Lee <ia...@gmail.com>.
Hi,

I read your WSDL and found that its style was rpc/encoded, which is  
not supported by Mirae. Please redesign your WSDL to doc/lit and try  
it with Mirae WS.

Cheers,

Ias

2006. 02. 22, 오후 5:08, chathurika 작성:

> Hi,
> I have attached the wsdl file and the wsdl2javame.bat file which  
> I'm using to generate the stub. I have saved these two files in  
> Mirae_HOME/trunk/bin/windows folder.
> When I run this wsdl2javame.bat file , the following exception is  
> thrown.
>
>
>
> log4j:WARN No appenders could be found for logger  
> (org.apache.axis.i18n.ProjectR
> esourceBundle).
> log4j:WARN Please initialize the log4j system properly.
> java.lang.NullPointerException
>        at  
> org.apache.mirae.ws.wsdl.tojava.JavaMeStubWriter.writeElement(JavaMeS
> tubWriter.java:348)
>        at  
> org.apache.mirae.ws.wsdl.tojava.JavaMeStubWriter.writeOperation(JavaM
> eStubWriter.java:443)
>        at  
> org.apache.mirae.ws.wsdl.tojava.JavaMeStubWriter.writeFileBody(JavaMe
> StubWriter.java:233)
>        at org.apache.axis.wsdl.toJava.JavaWriter.generate 
> (JavaWriter.java:127)
>        at  
> org.apache.mirae.ws.wsdl.tojava.JavaMeBindingWriter.generate(JavaMeBi
> ndingWriter.java:99)
>        at org.apache.mirae.ws.wsdl.tojava.JavaMeGeneratorFactory 
> $Writers.genera
> te(JavaMeGeneratorFactory.java:260)
>        at org.apache.axis.wsdl.gen.Parser.generate(Parser.java:476)
>        at org.apache.axis.wsdl.gen.Parser.access$000(Parser.java:45)
>        at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run 
> (Parser.java:362)
>        at java.lang.Thread.run(Unknown Source)
>
>
> Could you please let me know, whether I'm running the correct  
> command to generate the stubs using this wsdl2javame tools. And  
> what the problem could be.
>
>
> regards,
> chathurika
>
>
> ----- Original Message ----- From: "Changshin Lee"  
> <ia...@gmail.com>
> To: <mi...@ws.apache.org>
> Sent: Wednesday, February 22, 2006 7:26 AM
> Subject: Re: The limitation of sending string value from server to  
> client
>
>
> Hi,
>
> Could you provide me with your target WSDL file? I'll test it with
> WsdlToJavaMe. In addition to that, could you describe your problem in
> using WsdlToJavaMe in details?
>
> Cheers,
>
> Ias
>
> 2006. 02. 21, 오후 9:43, chathurika 작성:
>
>> Hi,
>> Thank you very much for the reply.
>> But when I build the WsdlToJavaMe tool .I have problem of  
>> creating  the generate artifacts. Cause earlier I have used :
>> java org.apache.mirae.wsdl2ws.WSDL2Ws webservice.wsdl
>> to generate the java files with WSDL2WS_J2ME tool.
>> But now I have problem when I try to create it with WsdlToJavaMe  
>> tool.
>> Could you please let me know how to generate java files using  
>> WsdlToJavaMe tool.
>>
>> regards,
>> chathurika
>>
>> ----- Original Message ----- From: "Changshin Lee"   
>> <ia...@gmail.com>
>> To: "chathurika" <ch...@beyondm.net>
>> Sent: Tuesday, February 21, 2006 12:22 PM
>> Subject: Re: The limitation of sending string value from server  
>> to  client
>>
>>
>> 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
>
>
>
> <webservice.wsdl>
> <wsdl2javame.bat>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: mirae-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: mirae-dev-help@ws.apache.org


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


Re: The limitation of sending string value from server to client

Posted by chathurika <ch...@beyondm.net>.
Hi,
I have attached the wsdl file and the wsdl2javame.bat file which I'm using 
to generate the stub. I have saved these two files in 
Mirae_HOME/trunk/bin/windows folder.
When I run this wsdl2javame.bat file , the following exception is thrown.



log4j:WARN No appenders could be found for logger 
(org.apache.axis.i18n.ProjectR
esourceBundle).
log4j:WARN Please initialize the log4j system properly.
java.lang.NullPointerException
        at 
org.apache.mirae.ws.wsdl.tojava.JavaMeStubWriter.writeElement(JavaMeS
tubWriter.java:348)
        at 
org.apache.mirae.ws.wsdl.tojava.JavaMeStubWriter.writeOperation(JavaM
eStubWriter.java:443)
        at 
org.apache.mirae.ws.wsdl.tojava.JavaMeStubWriter.writeFileBody(JavaMe
StubWriter.java:233)
        at 
org.apache.axis.wsdl.toJava.JavaWriter.generate(JavaWriter.java:127)
        at 
org.apache.mirae.ws.wsdl.tojava.JavaMeBindingWriter.generate(JavaMeBi
ndingWriter.java:99)
        at 
org.apache.mirae.ws.wsdl.tojava.JavaMeGeneratorFactory$Writers.genera
te(JavaMeGeneratorFactory.java:260)
        at org.apache.axis.wsdl.gen.Parser.generate(Parser.java:476)
        at org.apache.axis.wsdl.gen.Parser.access$000(Parser.java:45)
        at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:362)
        at java.lang.Thread.run(Unknown Source)


Could you please let me know, whether I'm running the correct command to 
generate the stubs using this wsdl2javame tools. And what the problem could 
be.


regards,
chathurika


----- Original Message ----- 
From: "Changshin Lee" <ia...@gmail.com>
To: <mi...@ws.apache.org>
Sent: Wednesday, February 22, 2006 7:26 AM
Subject: Re: The limitation of sending string value from server to client


Hi,

Could you provide me with your target WSDL file? I'll test it with
WsdlToJavaMe. In addition to that, could you describe your problem in
using WsdlToJavaMe in details?

Cheers,

Ias

2006. 02. 21, ���� 9:43, chathurika �ۼ�:

> Hi,
> Thank you very much for the reply.
> But when I build the WsdlToJavaMe tool .I have problem of creating  the 
> generate artifacts. Cause earlier I have used :
> java org.apache.mirae.wsdl2ws.WSDL2Ws webservice.wsdl
> to generate the java files with WSDL2WS_J2ME tool.
> But now I have problem when I try to create it with WsdlToJavaMe tool.
> Could you please let me know how to generate java files using 
> WsdlToJavaMe tool.
>
> regards,
> chathurika
>
> ----- Original Message ----- From: "Changshin Lee"  <ia...@gmail.com>
> To: "chathurika" <ch...@beyondm.net>
> Sent: Tuesday, February 21, 2006 12:22 PM
> Subject: Re: The limitation of sending string value from server to  client
>
>
> 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




Re: The limitation of sending string value from server to client

Posted by Changshin Lee <ia...@gmail.com>.
Hi,

Could you provide me with your target WSDL file? I'll test it with  
WsdlToJavaMe. In addition to that, could you describe your problem in  
using WsdlToJavaMe in details?

Cheers,

Ias

2006. 02. 21, 오후 9:43, chathurika 작성:

> Hi,
> Thank you very much for the reply.
> But when I build the WsdlToJavaMe tool .I have problem of creating  
> the generate artifacts. Cause earlier I have used :
> java org.apache.mirae.wsdl2ws.WSDL2Ws webservice.wsdl
> to generate the java files with WSDL2WS_J2ME tool.
> But now I have problem when I try to create it with WsdlToJavaMe tool.
> Could you please let me know how to generate java files using  
> WsdlToJavaMe tool.
>
> regards,
> chathurika
>
> ----- Original Message ----- From: "Changshin Lee"  
> <ia...@gmail.com>
> To: "chathurika" <ch...@beyondm.net>
> Sent: Tuesday, February 21, 2006 12:22 PM
> Subject: Re: The limitation of sending string value from server to  
> client
>
>
> 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