Win a copy of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques this week in the Server-Side JavaScript and NodeJS forum!

Juan Manuel Diaz

Ranch Hand
+ Follow
since Mar 23, 2009
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
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 Juan Manuel Diaz

I reply to my self:

The problem was on the PHP Client.

This is the working code:

6 years ago
Hi guys!, a have been a long time without opening my eclipse ide. But today i start over again in an old Java EE project. My clients needs a webservice to be consumed through soap 1.2 from PHP 5.

I write the webservice using jax-ws ri 2.2.10 (latest) and try to consume it from PHP using SoapClient.

The problem is when i try to map the classes returned by the WS to PHP classes, using classmap array on SoapClient constructor.

My WS returns an object called "InformesListResponse" which has an attribute called "informes" of type ArrayList<InformeResponse>; InformeResponse is an object who has only strings attributes.

This is my code:

WS Inteface


WS implementation


The PHP client:



The generated wsdl:


And the schema xsd



If i change the value "name" of @WebResult to something different of "return" (which is the default value). So var_dump($result); returns NULL. But if live the value name to its default, the ws returns this:



array(2) {
[0]=> object(stdClass)#4 (8) {
["apynPaciente"]=> string(11) "Diaz Pepe"
["documentoPaciente"]=> string(8) "25452917"
["exploracion"]=> string(46) "Ecografía Obstétrica - Morfología Detallada"
["fechaCreacion"]=> string(21) "10 de Octubre de 2009"
["historiaClinica"]=> string(5) "57205"
["id"]=> string(2) "54"
["realizadoPor"]=> string(17) "Romero, Javier"
["solicitadoPor"]=> string(3) "ggg" }
[1]=> object(stdClass)#5 (8) {
["apynPaciente"]=> string(11) "Diaz Pepe"
["documentoPaciente"]=> string(8) "25452917"
["exploracion"]=> string(24) "Ecografía Ginecológica"
["fechaCreacion"]=> string(20) "8 de Octubre de 2009"
["historiaClinica"]=> string(5) "57205"
["id"]=> string(2) "14"
["realizadoPor"]=> string(20) "Salvans, Pedro"
["solicitadoPor"]=> string(11) "DELLAVEDOVA" }



Any ideas?

Thanks in advanced!
JM
6 years ago
Hi! Thanks for the reply.

I thought about that, but the thing is: how can i know the exact point in which the image was dropped? So, if i know the coordinates, i can merge the images.

Regards,
JM
9 years ago
JSF
Hi greenhorns!,

I am needing some component (avoiding an applet) in which the user can add to a predefined image, three kind of items: a point, a line or a circle. The idea is to set up a mammography report, in wich the doctor can add those items to the image of the busts.

Do you any idea about how I can do that?

I am thinking in Paint2D component, wich comes with RichFaces 3.0.0 (or later), but I dont know if it could do that for me.

Regards!
JM
9 years ago
JSF
Hi! I had similar problems and the solution that I found was to wrapper the elements in complex types and then use the new wrapper types defined with the element attribute (not type) in the part tags.

Hope helps!

Regards,
JM
10 years ago
Hi all!, I am stuck on this situation. I have been reading some post in this forum talking about this but i did not found a proper (or easy ;) ) solution. The question is: i wrote a webservice in php using wso2. The webservice use an usernameToken (username and password, this last one as a digest) for authentication and i must to communicate with the server through https. So i wrote the client test for the service, using wso2 too and everything works fine. Now I need to consume this service in a Java Applet. I decided to try with netbeans 7 so i proceed to create a new java applet project and then a webservice client and put the wsdl path of my webservice (wich contains no information about security). All methods were deployed and compiled fine, but now i need to add the security parameters and the server certificate but i dont know how to do that!

Any help, starting point or another information will be welcome!
Thanks in advanced!,
JM
10 years ago
If I remove the binding attribute of rich:dataTable everything works fine! Why?

Regards,
JM
10 years ago
JSF
I just realized that only the rich:datatable component is loosing its skining, if I put another component in the page, it looks ok.

This is my page code:



What could be wrong?

Regards,
JM
10 years ago
JSF
Hi all! I am working in a webapp with JSF2, Richfaces4, Spring 3 and Hibernate3 and I am facing an issue with skin. When I login into my app everything looks fine, I navigate throw a toolbar with links (h:commandLinks) with actions pointed to a backing bean wich returns the string plus "?faces-redirect=true" for example: '/faces/admin/editUser.xhtml?faces-redirect=true'. Everything looks well at first time, but when I go back to a page visited, this page lose its skinning permanently until I logout and login again. When I debug the page using firebug, I realized that some javascripts like jquery.js.xhtml, datatable.js.xhtml or richfaces.js.xhtml are loaded the first time that I visit the page, but when I refresh the page or when I go to other page and then I come back, those javascripts are not loaded anymore.

I really cant realize what could be happening.

Thanks in advanced!
JM Diaz
10 years ago
JSF
I am really stuck on this.

Please, help!

Thanks in advance!,
JM
10 years ago
JSF
I really need help with this. Somebody could help me?

Regards,
JM
10 years ago
JSF
HI!,

Is "bin" declared properly as a managed bean in faces-config.xml?

More info about your error could be helpful!

Regards,
JM
10 years ago
JSF
Hi!,

Why you need to include a jsp into a facelet?

JM
10 years ago
JSF
Hi!,

You can change the scope of your bean to session (@SessionScoped) and the reference to the zoneBean object will stay there! If you use request session, the bean will be created and destroy every time it is called.

Regards,
JM
10 years ago
JSF
Nobody knows about what is happening to me? Why I have boobs? hehehe

Regards!
JM
10 years ago
JSF