#97: openwsman cannot detect 'INPUT' section from 'winrm invoke ...'

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

#97: openwsman cannot detect 'INPUT' section from 'winrm invoke ...'

Openwsman
#97: openwsman cannot detect 'INPUT' section from 'winrm invoke ...'
-----------------------+----------------------------------------------------
 Reporter:  kkaempf    |       Owner:  nashif
     Type:  defect     |      Status:  new  
 Priority:  major      |   Milestone:        
Component:  openwsman  |     Version:  1.0.1
 Keywords:             |  
-----------------------+----------------------------------------------------
 Calling invoke via the openwsman client libs works and wsmand debug log
 shows
 Jun 26 11:44:52 [11894] method or action: eval
 Jun 26 11:44:52 [11894] INPUT found

 Calling invoke via Vistas 'winrm' leaves the INPUT section undetected by
 openwsman.

 Looking at the raw xml request, the only difference seems to be the xml
 namespace provided.
 Openwsman client libs use the xml ns defined in the envelope, winrm
 defines a new ns within the body

--
Ticket URL: <http://www.openwsman.org/ticket/97>
Openwsman:  WS-Management for all <http://www.openwsman.org/>
WS-Management for all
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Openwsman-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/openwsman-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: #97: openwsman cannot detect 'INPUT' section from 'winrm invoke ...'

Openwsman
#97: openwsman cannot detect 'INPUT' section from 'winrm invoke ...'
------------------------+---------------------------------------------------
  Reporter:  kkaempf    |       Owner:  nashif
      Type:  defect     |      Status:  new  
  Priority:  major      |   Milestone:        
 Component:  openwsman  |     Version:  1.0.1
Resolution:             |    Keywords:        
------------------------+---------------------------------------------------
Comment (by kkaempf):

 Looks like winrm attaches ".xsd" to the resource uri :-(

--
Ticket URL: <http://www.openwsman.org/ticket/97#comment:1>
Openwsman:  WS-Management for all <http://www.openwsman.org/>
WS-Management for all
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Openwsman-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/openwsman-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: #97: openwsman cannot detect 'INPUT' section from 'winrm invoke ...'

Openwsman
In reply to this post by Openwsman
#97: openwsman cannot detect 'INPUT' section from 'winrm invoke ...'
------------------------+---------------------------------------------------
  Reporter:  kkaempf    |       Owner:  nashif
      Type:  defect     |      Status:  new  
  Priority:  major      |   Milestone:        
 Component:  openwsman  |     Version:  1.0.1
Resolution:             |    Keywords:        
------------------------+---------------------------------------------------
Comment (by kkaempf):

 Proposed patch:

 Index: wsman-soap-envelope.c
 ===================================================================
 --- wsman-soap-envelope.c       (revision 1494)
 +++ wsman-soap-envelope.c       (working copy)
 @@ -832,6 +832,11 @@
                 char *mn = wsman_get_method_name(cntx);
                 input = u_strdup_printf("%s_INPUT", mn);
                 in_node = ws_xml_get_child(body, 0, resource_uri, input);
 +               if (!in_node) {
 +                       char *xsd = u_strdup_printf("%s.xsd",
 resource_uri);
 +                       in_node = ws_xml_get_child(body, 0, xsd, input);
 +                       free(xsd);
 +               }
                 if (in_node) {
                         WsXmlNodeH arg;
                         int index = 0;

--
Ticket URL: <http://www.openwsman.org/ticket/97#comment:2>
Openwsman:  WS-Management for all <http://www.openwsman.org/>
WS-Management for all
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Openwsman-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/openwsman-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: #97: openwsman cannot detect 'INPUT' section from 'winrm invoke ...'

Openwsman
In reply to this post by Openwsman
#97: openwsman cannot detect 'INPUT' section from 'winrm invoke ...'
------------------------+---------------------------------------------------
  Reporter:  kkaempf    |       Owner:  nashif
      Type:  defect     |      Status:  new  
  Priority:  major      |   Milestone:        
 Component:  openwsman  |     Version:  1.0.1
Resolution:             |    Keywords:        
------------------------+---------------------------------------------------
Comment (by kkaempf):

 {{{
 Index: wsman-soap-envelope.c
 ===================================================================
 --- wsman-soap-envelope.c       (revision 1494)
 +++ wsman-soap-envelope.c       (working copy)
 @@ -832,6 +832,11 @@
                 char *mn = wsman_get_method_name(cntx);
                 input = u_strdup_printf("%s_INPUT", mn);
                 in_node = ws_xml_get_child(body, 0, resource_uri, input);
 +               if (!in_node) {
 +                       char *xsd = u_strdup_printf("%s.xsd",
 resource_uri);
 +                       in_node = ws_xml_get_child(body, 0, xsd, input);
 +                       free(xsd);
 +               }
                 if (in_node) {
                         WsXmlNodeH arg;
                         int index = 0;
 }}}

--
Ticket URL: <http://www.openwsman.org/ticket/97#comment:3>
Openwsman:  WS-Management for all <http://www.openwsman.org/>
WS-Management for all
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Openwsman-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/openwsman-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: #97: openwsman cannot detect 'INPUT' section from 'winrm invoke ...'

Openwsman
In reply to this post by Openwsman
#97: openwsman cannot detect 'INPUT' section from 'winrm invoke ...'
------------------------+---------------------------------------------------
  Reporter:  kkaempf    |       Owner:  nashif
      Type:  defect     |      Status:  closed
  Priority:  major      |   Milestone:        
 Component:  openwsman  |     Version:  1.0.1
Resolution:  fixed      |    Keywords:        
------------------------+---------------------------------------------------
Changes (by nashif):

  * status:  new => closed
  * resolution:  => fixed

Comment:

 applied patch

--
Ticket URL: <http://openwsman.org/ticket/97#comment:4>
Openwsman:  WS-Management for all <http://www.openwsman.org/>
WS-Management for all
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Openwsman-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/openwsman-devel
Loading...