Hi,

i tried i little more using curl and some is working like

curl -u user:password 
http://speckserver:8080/spectrum/restful/alarms?attr=0x1006e


è Output is AlarmID with modelname    that works





curl -u user:pw -v -X DELETE  
http://specserver:8080/spectrum/restful/alarms/4eebe150-01ec-1000-0400-008010198b75

è Delets the alarm of this ID         that works

BUT....
I can not send a PUT
I'd like to update an Alarm (example: write sent in the Status)
I did the following:
xxxxx:websevicetest-frank\ # curl -u user:pw -i -X PUT 
http://server:8080/spectrum/restful/alarms/4ee9be13-f075-100b-0180-008010198b1b?attr=0x11f4f&val=sent
          [ENTER]
[1] 2617
xxxxxx:websevicetest-frank\ # HTTP/1.1 400 Bad Request
Server: Apache-Coyote/1.1
Pragma: No-cache
Cache-Control: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 UTC
Set-Cookie: JSESSIONID=3456E15D1344DDDE651B8DE07ADB0F8E; Path=/spectrum
Date: Wed, 28 Dec 2011 11:12:50 GMT
Content-Type: text/plain
Content-Length: 45
Connection: close

attr and val parameters are not proportionate
[1]+  Done

That's the result.
Can anybody help me?

I wish you a happy new Year
Frank




Von: Wagner, Frank [mailto:[email protected]]
Gesendet: Donnerstag, 22. Dezember 2011 15:50
An: spectrum
Betreff: [spectrum] Spectrum WEB Services

Hello Guys,

i tried to play with the new web services of 9.2.1
Documentation b.t.w. is at CA web in 9.2.1 H6

With wget it is working
wget --user=fritz --password=forgettit 
http://specstage-one.mchp.siemens.de:8080/spectrum/restful/alarms


but the rest with the embedded Java client I desperate.
Did anybody get something working like that
java GenericPoster.class noun=Alarms 
file=resources/xml/Alarms/GetAlarmsBySerach.xml 
server=specstage-one.mchp.siemens.de username=xxx password=yyyy port=8080

I only get that
Exception in thread "main" java.lang.NoClassDefFoundError: GenericPoster/class
And varios other errors when I try it full qualified.

I fear I desperate at basic things, but JAWA is something I can't write.
Has anybody a command that works for him/her

Thanks Frank Wagner

  *   --To unsubscribe from spectrum, send email to 
[email protected]<mailto:[email protected]> with the body: unsubscribe spectrum 
[email protected]<mailto:[email protected]>

---
To unsubscribe from spectrum, send email to [email protected] with the body: 
unsubscribe spectrum [email protected]

Reply via email to