473,396 Members | 2,140 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Sending soap Object[] from a client to a server

Hello,

I have a client in a java class and i have to send an Object to a server....something like this ClassName
{String one,
String two,
Integer tree}.
I read something about serialization/deserialization but I don't have access to the server to implement there a class that could deserialize the data (the Object[]) that i send from the client.
I also try to send a null Object[] and it works, but I couldn't send the compact Object ClassName[] that I want. I obtain a NullPointerException from the xfire.fault that i use for my SOAP WebService.

There is another solution to solve this? Can anyone help me plz?

Thanks in advance.
Best regards,
Horatiu
Sep 14 '07 #1
4 1784
r035198x
13,262 8TB
Hello,

I have a client in a java class and i have to send an Object to a server....something like this ClassName
{String one,
String two,
Integer tree}.
I read something about serialization/deserialization but I don't have access to the server to implement there a class that could deserialize the data (the Object[]) that i send from the client.
I also try to send a null Object[] and it works, but I couldn't send the compact Object ClassName[] that I want. I obtain a NullPointerException from the xfire.fault that i use for my SOAP WebService.

There is another solution to solve this? Can anyone help me plz?

Thanks in advance.
Best regards,
Horatiu
So your class is serialized?
Sep 14 '07 #2
So your class is serialized?
No, because I could not use this because I don't have acces to the server to deserealize there the information that I send from the client.
Thanks, Horatiu
Sep 14 '07 #3
Nepomuk
3,112 Expert 2GB
No, because I could not use this because I don't have acces to the server to deserealize there the information that I send from the client.
Thanks, Horatiu
How did you send it then? I know that some methods (maybe all) can only send Objects when they are serialized.

Greetings,
Nepomuk
Sep 14 '07 #4
How did you send it then? I know that some methods (maybe all) can only send Objects when they are serialized.

Greetings,
Nepomuk
Well...this is the question....how can i send it?
Can this be done without using serialization or only with serialization?

Now i try something like this
SOAPPublishDTOValue[] params = new SOAPPublishDTOValue[]{soapPublishDTOValue};

String result = MPMClassInvocationTemplate.invokeMPM(Configuration .getValueOf("endpointMPM"), methodName, params);

but is not working.

It works only if i tried to send a null object...like this:

SOAPPublishDTOValue[] params = new SOAPPublishDTOValue[]{null};

Thanks in advance,
Horatiu
Sep 14 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Arne Kösling | last post by:
Hi ! I am new to Web Services. Therefore I ve set up a PHP Installation on Windows (PHP 4.3.2 and Apache 1.3.29). I have tested PHP alone and then installed PEAR. Now I am stuck there (Before...
3
by: mark kurten | last post by:
I have a soap message that looks like this. s = s & " <soap:Envelope xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'" s = s & " xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'" s =...
3
by: parrot toes | last post by:
Summary: I have been trying to make requests of a web service provided by Axis using a dotnet client with code generated by wsdl.exe and have been getting exceptions when trying to process the...
4
by: Christian Wilhelm | last post by:
Hi! I have a Problem understanding the deserialisation of SOAP-Responses. The "normal" way, calling a XML WebService is to use WSDL 1) Send Request 2) Get SOAP-Response 3) With Informations...
3
by: Sydney | last post by:
Hi, I am trying to construct a WSE 2.0 security SOAP request in VBScript on an HTML page to send off to a webservice. I think I've almost got it but I'm having an issue generating the nonce...
0
by: info | last post by:
Dear all, is the first time that I use SOAP, and i must say that i'm having several problems. this is SOAP message that expects the server =================XML EXPECTED FROM THE...
1
by: libsfan01 | last post by:
Hi all Can anyone explain the relationship between SOAP and XMLHttpRequest in Javascript? What actually is SOAP? and how does it relate to the process of transferring data client-side through...
2
by: pmlane2001 | last post by:
I have a PHP SOAP XML file size problem that I was wondering if anyone has seen before. I have an XML file that when I put it through my PHP script with 270 lines (13,082 KB) it works fine. If I...
0
by: vigneshrao | last post by:
Hi, I have been working on a script that loops through multiple records and sends data (one record per call) to a WS. I am supposed to make a new call for each record before sending the data....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.