Matt Middleton

Greenhorn
+ Follow
since Feb 23, 2010
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Matt Middleton

I have an application where the classes are spread out across several persistence units. I am working on a way to Audit the application and am using the SessionFactory.getClassMetadata() method to get the metadata so I can get the table name I am working with. The problem I'm running into is that the SessionFactory has to be created with the correct persistence unit for the object or else it getClassMetadata returns null, and I don't have the name of the persistence unit or the correct SessionFactory when I'm auditing. Is there a way to look up the persistence unit if I have the class name?
Thanks Ivan, the SoapUI tip definitely helped out.

I found the problem, they updated the WSDL and didn't let me know, all I had to do was rerun wsconsume (a jboss util) to regenerate the java classes and it was fixed. Just to add some detail that may or may not be helpful, the parameter s that was mentioned was a variable name on the servers end.
14 years ago
How are you calling it? The classes that java generates should convert the < and > to < and > respectively, If you are using SoapUi are some other client where you are pasting the XML text in you'll have to do that before you put the text in. If you aren't, then what did you use to generate the java classes to connect to your service?
14 years ago
It looks like you are using RPC instead of JAXB to convert from java objects to xml and back, are you just using a web service plugin for eclipse? You may have to update how you are generating the classes. In any event what's going on is that java and xml both have types and when you convert between java objects and xml (which it has to for these services) it has certain classes that map to certain xml types, and visa versa. It looks like whatever method you are using doesn't have a mapping for the Object class. I've never used the Eclipse plugin for generating the classes, but there are plenty of command line tools that you can use if you can't get the plugin figured out, I use wsconsume for the most part. Hope this helped!
14 years ago
I've seen consuming used when talking about the development process, for example, to generate the classes needed you consume the web service definition. Where as invoking is just like invoking a method, it's when you actually call the service. Publishing, like said above, is what the server side does to make it available for use.
14 years ago
You can send an XML String as a Soap param by wrapping the XML you want to send in a CDATA tag. Something along the lines of:



This will cause the SOAP parser to read it as just a string instead of xml. On the receiving end you may have to strip the CDATA tag off though.
14 years ago
I am working on a client for a SOAP Web Service and am running into this error. I was able to generate the classes I need from the wsdl fine, but when I go to send a value to any of the services I get the following error:

The server reports getting called, but not receiving any value. I am writing the client in Java and the Server is written in C#.

The services in question only take in 1 value of type String, but that String contains XML that is currently not encased in CDATA tags. Any help would be greatly appreciated. Thanks!
14 years ago