Skip to Content.
Sympa Menu

perfsonar-dev - perfsonar: r5166 - in branches/new-structure-with-base2/ps-mdm-ls/contrib/SOAPRequestAuxilary: . inputs src/pl/psnc

Subject: perfsonar development work

List archive

perfsonar: r5166 - in branches/new-structure-with-base2/ps-mdm-ls/contrib/SOAPRequestAuxilary: . inputs src/pl/psnc


Chronological Thread 
  • From:
  • To:
  • Subject: perfsonar: r5166 - in branches/new-structure-with-base2/ps-mdm-ls/contrib/SOAPRequestAuxilary: . inputs src/pl/psnc
  • Date: Thu, 4 Jun 2009 07:58:56 -0400

Author: trzaszcz
Date: 2009-06-04 07:58:55 -0400 (Thu, 04 Jun 2009)
New Revision: 5166

Added:

branches/new-structure-with-base2/ps-mdm-ls/contrib/SOAPRequestAuxilary/inputs/

branches/new-structure-with-base2/ps-mdm-ls/contrib/SOAPRequestAuxilary/inputs/request.xml
Modified:

branches/new-structure-with-base2/ps-mdm-ls/contrib/SOAPRequestAuxilary/src/pl/psnc/Main.py
Log:
soap tool enhancement

Added:
branches/new-structure-with-base2/ps-mdm-ls/contrib/SOAPRequestAuxilary/inputs/request.xml

Modified:
branches/new-structure-with-base2/ps-mdm-ls/contrib/SOAPRequestAuxilary/src/pl/psnc/Main.py
===================================================================
---
branches/new-structure-with-base2/ps-mdm-ls/contrib/SOAPRequestAuxilary/src/pl/psnc/Main.py
2009-06-04 11:31:54 UTC (rev 5165)
+++
branches/new-structure-with-base2/ps-mdm-ls/contrib/SOAPRequestAuxilary/src/pl/psnc/Main.py
2009-06-04 11:58:55 UTC (rev 5166)
@@ -5,105 +5,19 @@
'''

import pl.psnc.trzaszczka.auxiliary.Auxiliary
+import os

if __name__ == '__main__':

+ f=open("../../../inputs/request.xml","r")

+ soap_content=f.read()

- ok_text='''<?xml version='1.0' encoding='utf-8'?>
- <soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
- <soapenv:Body>
- <nmwg:message xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
id="uri:ps-element-id:1243413358554:1" type="LSRegisterRequest">
- <nmwg:metadata id="serviceLookupInfo">
- <nmwg:eventType>
-
http://ogf.org/ns/nmwg/tools/org/perfsonar/service/lookup/registration/service/2.0
- </nmwg:eventType>
- <perfsonar:subject
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
id="commonParameters">
- <psservice:service
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
id="serviceParameters">
- <psservice:accessPoint>
-
http://localhost:8081/axis2/services/LookupServiceXXXXXX23
- </psservice:accessPoint>
- <psservice:serviceType>
- LS
- </psservice:serviceType>
- <psservice:serviceName>
- Geant2 Java XML LS 2.0
- </psservice:serviceName>
- </psservice:service>
- </perfsonar:subject>
- </nmwg:metadata>
- <nmwg:data id="uri:ps-element-id:1243413358656:49"
metadataIdRef="serviceLookupInfo">
- <nmwg:metadata id="summmary.md">
- <summary:subject
xmlns:summary="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/lookup/summarization/2.0/";
id="subject.1">
- <summary:parameters>
- <nmwg:parameter name="eventType">
-
http://ogf.org/ns/nmwg/tools/org/perfsonar/service/lookup/discovery/summary/2.0
- </nmwg:parameter>
- </summary:parameters>
- </summary:subject>
- <nmwg:eventType>
-
http://ogf.org/ns/nmwg/tools/org/perfsonar/service/lookup/discovery/summary/2.0
- </nmwg:eventType>
- </nmwg:metadata>
- </nmwg:data>
- </nmwg:message>
- </soapenv:Body>
- </soapenv:Envelope>'''
-
- wrong_text='''<?xml version='1.0' encoding='utf-8'?>
- <soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
- <soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing";>
- <wsa:To>
- http://localhost:8083/ps-mdm-ls/services/LookupService
- </wsa:To>
- <wsa:MessageID>
- urn:uuid:628D361128B7211C681243414404965
- </wsa:MessageID>
- <wsa:Action>urn:message</wsa:Action>
- </soapenv:Header>
- <soapenv:Body>
- <nmwg:message xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
id="uri:ps-element-id:1243414404770:1" type="LSRegisterRequest">
- <nmwg:metadata id="serviceLookupInfo">
- <nmwg:eventType>
-
http://ogf.org/ns/nmwg/tools/org/perfsonar/service/lookup/registration/summary/2.0
- </nmwg:eventType>
- <perfsonar:subject
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
id="commonParameters">
- <psservice:service
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
id="serviceParameters">
- <psservice:accessPoint>
-
http://localhost:8080/ps-mdm-ls/services/NOWYNOWY
- </psservice:accessPoint>
- <psservice:serviceType>
- LS
- </psservice:serviceType>
- <psservice:serviceName>
- Geant2 Java XML LS 2.0
- </psservice:serviceName>
- </psservice:service>
- </perfsonar:subject>
- </nmwg:metadata>
- <nmwg:data id="uri:ps-element-id:1243414404908:57"
metadataIdRef="serviceLookupInfo">
- <nmwg:metadata id="summmary.md">
- <summary:subject
xmlns:summary="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/lookup/summarization/2.0/";
id="subject.1">
- <summary:parameters>
- <nmwg:parameter name="eventType">
-
http://ogf.org/ns/nmwg/tools/org/perfsonar/service/lookup/discovery/summary/2.0
- </nmwg:parameter>
- </summary:parameters>
- </summary:subject>
- <nmwg:eventType>
-
http://ogf.org/ns/nmwg/tools/org/perfsonar/service/lookup/discovery/summary/2.0
- </nmwg:eventType>
- </nmwg:metadata>
- </nmwg:data>
- </nmwg:message>
- </soapenv:Body>
- </soapenv:Envelope>
- '''
-
-
auxiliary=pl.psnc.trzaszczka.auxiliary.Auxiliary.Sender("127.0.0.1:8081")
auxiliary.connect()
-
- auxiliary.send("/axis2/services/LookupService", ok_text)

+ print
+
+ auxiliary.send("/axis2/services/LookupService", soap_content)
+
pass
\ No newline at end of file



  • perfsonar: r5166 - in branches/new-structure-with-base2/ps-mdm-ls/contrib/SOAPRequestAuxilary: . inputs src/pl/psnc, svnlog, 06/04/2009

Archive powered by MHonArc 2.6.16.

Top of Page