RE: openPegasus WS-Management WSDL
Karl Schopmeyer <[email protected]> Mon, 13 Aug 2012 11:43:48 -0500
| Newsgroups | gmane.network.open-pegasus.general |
|---|---|
| Message-ID | <[email protected]> |
You will find the WSDL definitions for the WS-MAN soap defined in the
DMTF WS-man specifications (DSP0226, DSP0227, DSP0230, and of course
the WSDL definitons in DSP8037
If you want examples of operations that work with wbemexec, to to the
directories
pegasus\test\wetest\wsman
Which is a set of end-end tests of operations based on fixed client
request XML that is executed with wbemexec. These tests do work and
are the basis for nightly tests of the wsman protocol implementation
in OpenPegasus
Today OpenPegasus does NOT have a complete ws-man client
corresponding to the client infrastructure in
pegasus/src/Pegasus/Client
for CIMXML. That is on the work list.
Karl
Thanks for your message at 02:19 PM 8/10/2012. Your message was:
>Really no feedback?
>Could you please indicate which WSDL is used for openPegasus?
>
>Thanks and regards,
>Pierre.
>
>
>
>Hello,
>
>We tried to access our CIMOM Pegasus server with the WS-Management
>protocol using soapUI (<http://www.soapui.org/>http://www.soapui.org/)
>Currently we can access it with WinRM and wbemexec without any
>problem but we would also like to use soapUI for unit tests.
>To be able to use soapUI it is necessary to start from the WSDL. We
>first tried to start from the WSDL located in this place:
><http://dmtf.org/standards/wsman>http://dmtf.org/standards/wsman
>We first tried the
><http://schemas.dmtf.org/wbem/wsman/1/dsp8037_1.0.wsdl>http://schemas.dmtf.org/wbem/wsman/1/dsp8037_1.0.wsdl
>since we are mainly interested in Enumerate/Pull operations but
>soapUI failed to create the associated project with the following error:
>Description: cid:[email protected]
>
>
>Then we tried
><http://schemas.xmlsoap.org/ws/2005/06/management/wsman.wsdl>http://schemas.xmlsoap.org/ws/2005/06/management/wsman.wsdl
>and this time soapUI created the project without any error.
>But the EnumerateOp failed. On the client we received:
><SOAP-ENV:Envelope
>xmlns:SOAP-ENV="<http://www.w3.org/2003/05/soap-envelope>http://www.w3.org/2003/05/soap-envelope"
>xmlns:SOAP-ENC="<http://www.w3.org/2003/05/soap-encoding>http://www.w3.org/2003/05/soap-encoding"
>xmlns:xsi="<http://www.w3.org/2001/XMLSchema-instance>http://www.w3.org/2001/XMLSchema-instance"
>xmlns:xsd="<http://www.w3.org/2001/XMLSchema>http://www.w3.org/2001/XMLSchema"
>xmlns:wsman="<http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd>http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd"
>xmlns:wsmb="<http://schemas.dmtf.org/wbem/wsman/1/cimbinding.xsd>http://schemas.dmtf.org/wbem/wsman/1/cimbinding.xsd"
>xmlns:wsa="<http://schemas.xmlsoap.org/ws/2004/08/addressing>http://schemas.xmlsoap.org/ws/2004/08/addressing"
>xmlns:wxf="<http://schemas.xmlsoap.org/ws/2004/09/transfer>http://schemas.xmlsoap.org/ws/2004/09/transfer"
>xmlns:wsen="<http://schemas.xmlsoap.org/ws/2004/09/enumeration>http://schemas.xmlsoap.org/ws/2004/09/enumeration"
>xmlns:wse="<http://schemas.xmlsoap.org/ws/2004/08/eventing>http://schemas.xmlsoap.org/ws/2004/08/eventing"
>xmlns:wsp="<http://schemas.xmlsoap.org/ws/2004/09/policy>http://schemas.xmlsoap.org/ws/2004/09/policy"
>xmlns:wsdl="<http://schemas.xmlsoap.org/wsdl>http://schemas.xmlsoap.org/wsdl"
>xmlns:wscim="<http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2>http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2">
> <SOAP-ENV:Header>
>
><wsa:To><http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous%3c/wsa:To>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:To>
>
><wsa:Action><http://schemas.dmtf.org/wbem/wsman/1/wsman/fault%3c/wsa:Action>http://schemas.dmtf.org/wbem/wsman/1/wsman/fault</wsa:Action>
>
><wsa:MessageID>uuid:00003D6C-4AE1-6784-18BE-000048230029</wsa:MessageID>
> </SOAP-ENV:Header>
> <SOAP-ENV:Body>
> <SOAP-ENV:Fault>
> <SOAP-ENV:Code>
> <SOAP-ENV:Value>SOAP-ENV:Sender</SOAP-ENV:Value>
> <SOAP-ENV:Subcode>
> <SOAP-ENV:Value>wsman:EncodingLimit</SOAP-ENV:Value>
> </SOAP-ENV:Subcode>
> </SOAP-ENV:Code>
> <SOAP-ENV:Detail>
>
><wsman:FaultDetail><http://schemas.dmtf.org/wbem/wsman/1/wsman/faultDetail/CharacterSet%3c/wsman:FaultDetail>http://schemas.dmtf.org/wbem/wsman/1/wsman/faultDetail/CharacterSet</wsman:FaultDetail>
> </SOAP-ENV:Detail>
> </SOAP-ENV:Fault>
> </SOAP-ENV:Body>
></SOAP-ENV:Envelope>
>
>The error seems to link to a bad "character set" (encoding):
><wsman:FaultDetail><http://schemas.dmtf.org/wbem/wsman/1/wsman/faultDetail/CharacterSet%3c/wsman:FaultDetail>http://schemas.dmtf.org/wbem/wsman/1/wsman/faultDetail/CharacterSet</wsman:FaultDetail>
>But since we are using utf-8 it seems a bit strange.
>On the server side we got:
>
>1344540889s-605446us: XmlIO
>[12048:18446744073709551614:HTTPConnection.cpp:2320]: <!-- Request:
>queue id: 19 -->
>POST /wsman HTTP/1.1
>Accept-Encoding: gzip,deflate
>Content-Type:
>application/soap+xml;charset=UTF-8;action="<http://schemas.xmlsoap.org/ws/2004/09/enumeration/Enumerate>http://schemas.xmlsoap.org/ws/2004/09/enumeration/Enumerate"
>Content-Length: 1119
>Host: localhost:5988
>Connection: Keep-Alive
>User-Agent: Apache-HttpClient/4.1.1 (java 1.5)
>
>
><s:Envelope
>xmlns:s="<http://www.w3.org/2003/05/soap-envelope>http://www.w3.org/2003/05/soap-envelope"
>
>
>xmlns:a="<http://schemas.xmlsoap.org/ws/2004/08/addressing>http://schemas.xmlsoap.org/ws/2004/08/addressing"
>
>
>xmlns:wse="<http://schemas.xmlsoap.org/ws/2004/09/enumeration>http://schemas.xmlsoap.org/ws/2004/09/enumeration"
>
>xmlns:w="<http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd>http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd">
><s:Header><a:To><http://localhost/wsman%3c/a:To>http://localhost/wsman</a:To>
><w:ResourceURI s:mustUnderstand="true">
>
><http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_PCIDevice>http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_PCIDevice
></w:ResourceURI>
><a:ReplyTo>
> <a:Address s:mustUnderstand="true">
>
><http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous
> </a:Address>
></a:ReplyTo>
><a:Action s:mustUnderstand="true">
>
><http://schemas.xmlsoap.org/ws/2004/09/enumeration/Enumerate>http://schemas.xmlsoap.org/ws/2004/09/enumeration/Enumerate
></a:Action>
><w:MaxEnvelopeSize s:mustUnderstand="true">1536000</w:MaxEnvelopeSize>
><a:MessageID>uuid:00000000-0000-0000-0005-000000000001</a:MessageID>
><w:Locale xml:lang="en-US" s:mustUnderstand="false" />
><w:SelectorSet>
><w:Selector Name="__cimnamespace">root/cimv2</w:Selector>
></w:SelectorSet>
><w:OperationTimeout>PT60.000S</w:OperationTimeout>
></s:Header>
><s:Body>
><wse:Enumerate>
>
></wse:Enumerate>
></s:Body>
></s:Envelope>
>
>1344540889s-605446us: Http
>[12048:18446744073709551614:HTTPConnection.cpp:2335]: Now setting state to 1
>1344540889s-605446us: Http
>[12048:18446744073709551614:HTTPAuthenticatorDelegator.cpp:293]:
>HTTPAuthenticatorDelegator - HTTP processing start
>1344540889s-605446us: Authentication
>[12048:18446744073709551614:HTTPAuthenticatorDelegator.cpp:422]:
>HTTPAuthenticatorDelegator - Authentication processing start
>1344540889s-605446us: Authentication
>[12048:18446744073709551614:HTTPAuthenticatorDelegator.cpp:1102]:
>HTTPAuthenticatorDelegator - Authentication processing ended
>1344540889s-605446us: MessageQueueService
>[12048:18446744073709551614:MessageQueue.cpp:122]: Queue name:
>[WsmRequestDecoder], Message: [HTTP_MESSAGE]
>1344540889s-605446us: WsmServer
>[12048:18446744073709551614:WsmRequestDecoder.cpp:194]:
>WsmRequestDecoder::handleHTTPMessage()-
>httpMessage->getCloseConnect() returned 0
>1344540889s-605446us: WsmServer
>[12048:18446744073709551614:WsmResponseEncoder.cpp:165]:
>WsmResponseEncoder::enqueue()- response->getHttpCloseConnect() returned 0
>1344540889s-605446us: WsmServer
>[12048:18446744073709551614:WsmResponseEncoder.cpp:64]:
>WsmResponseEncoder::sendResponse()
>1344540889s-605446us: WsmServer
>[12048:18446744073709551614:WsmResponseEncoder.cpp:78]:
>WsmResponseEncoder::sendResponse()- response->getHttpCloseConnect() returned 0
>1344540889s-605446us: Http
>[12048:18446744073709551614:HTTPConnection.cpp:391]:
>HTTPConnection::handleEnqueue - HTTP_MESSAGE
>1344540889s-605446us: Http
>[12048:18446744073709551614:HTTPConnection.cpp:921]:
>HTTPConnection::_handleWriteEvent: Server write event.
>1344540889s-605446us: XmlIO
>[12048:18446744073709551614:HTTPConnection.cpp:929]: <!-- Response:
>queue id: 19 -->
>HTTP/1.1 500 Internal Server Error
>Content-Type: application/soap+xml;charset=UTF-8
>content-length: 0000001507
>
>SOAPAction:
><http://schemas.dmtf.org/wbem/wsman/1/wsman/fault>http://schemas.dmtf.org/wbem/wsman/1/wsman/fault
>
>The exact same request with wbemexec gives the following server trace:
>
>POST /wsman HTTP/1.1
>PegasusAuthorization: Local "NET\pacchioni"
>Host:
>Content-Type: application/soap+xml; charset=utf-8
>Content-Length: 1119
>
><s:Envelope
>xmlns:s="<http://www.w3.org/2003/05/soap-envelope>http://www.w3.org/2003/05/soap-envelope"
>
>
>xmlns:a="<http://schemas.xmlsoap.org/ws/2004/08/addressing>http://schemas.xmlsoap.org/ws/2004/08/addressing"
>
>
>xmlns:wse="<http://schemas.xmlsoap.org/ws/2004/09/enumeration>http://schemas.xmlsoap.org/ws/2004/09/enumeration"
>
>xmlns:w="<http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd>http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd">
><s:Header><a:To><http://localhost/wsman%3c/a:To>http://localhost/wsman</a:To>
><w:ResourceURI s:mustUnderstand="true">
>
><http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_PCIDevice>http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_PCIDevice
></w:ResourceURI>
><a:ReplyTo>
> <a:Address s:mustUnderstand="true">
>
><http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous
> </a:Address>
></a:ReplyTo>
><a:Action s:mustUnderstand="true">
>
><http://schemas.xmlsoap.org/ws/2004/09/enumeration/Enumerate>http://schemas.xmlsoap.org/ws/2004/09/enumeration/Enumerate
></a:Action>
><w:MaxEnvelopeSize s:mustUnderstand="true">1536000</w:MaxEnvelopeSize>
><a:MessageID>uuid:00000000-0000-0000-0005-000000000001</a:MessageID>
><w:Locale xml:lang="en-US" s:mustUnderstand="false" />
><w:SelectorSet>
><w:Selector Name="__cimnamespace">root/cimv2</w:Selector>
></w:SelectorSet>
><w:OperationTimeout>PT60.000S</w:OperationTimeout>
></s:Header>
><s:Body>
><wse:Enumerate>
>
></wse:Enumerate>
></s:Body>
></s:Envelope>
>
>Could you please indicate which WSDL is used for openPegasus?
>Do you have any idea how to solve this problem? I see small
>differences in the HTTP header but nothing related to the CaracterSet,
>
>Thanks for your help,
>Pierre.
>
>
Karl Schopmeyer Inova Development Inc.
305 Spring Creek Village, Suite 475 - Dallas TX, 75248 USA
EMAIL: [email protected] FAX: 1-972-239-0326
Phone 1-972-814-5581
Skype: kschopmeyer Skype Phone: (214) 556-5971
147d85dd.png
(image/png, 27.4 KB) - not displayed