by using Web service CreateFile errorMessage: <std-String value="Problem deserializing object from byte array + cus-obj"/>

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

by using Web service CreateFile errorMessage: <std-String value="Problem deserializing object from byte array + cus-obj"/>

gkc.jin
Dear,

There is a Problem and a errormessage by using the web service createFile:

i defined my web service as following and used a Hexadecimal string for the parameter bindata. but returned a error information:  <std-String value="Problem deserializing object from byte array + cus-obj"/>

I want to ask, how to deal with the Parameter: binData (with type java.nio.ByteBuffer) ??


it's very nice, if you can give me a small sample to use createFile or another web service with parameter byteBuffer.

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://ofbiz.apache.org/service/">
   <soapenv:Header/>
   <soapenv:Body>
      <ser:createFile>
         <map-Map>
            <map-Entry>
               <map-Key>
                  <std-String value="login.username"/>
               </map-Key>
               <map-Value>
                  <std-String value="admin"/>
               </map-Value>
            </map-Entry>
            <map-Entry>
               <map-Key>
                  <std-String value="login.password"/>
               </map-Key>
               <map-Value>
                  <std-String value="ofbiz"/>
               </map-Value>
            </map-Entry>
            <map-Entry>
               <map-Key>
                  <std-String value="binData"/>
               </map-Key>
               <map-Value>
                  <cus-obj>aced000573720029636f6d2e74656e6564612e6f6662697a2e74657374696e672e54657374526573756c744f626a65637400000000000000010200034c00097465737444617461317400124c6a6176612f6c616e672f537472696e673b4c000974657374446174613271007e00014c000974657374446174613371007e00017870740001317400013274000133</cus-obj> 
        </map-Value>
        </map-Entry>
         </map-Map>
      </ser:createFile>
   </soapenv:Body>
</soapenv:Envelope>



Thank you very much, best regards,
Gkc Jin