perfsonar-dev - Re: [pS-dev] Re: [perfsonar-user] Web Service Request from PerfSonar
Subject: perfsonar development work
List archive
- From: Roman Lapacz <>
- To: Maciej Matachowski <>
- Cc: , "" <>
- Subject: Re: [pS-dev] Re: [perfsonar-user] Web Service Request from PerfSonar
- Date: Mon, 18 Aug 2008 15:54:01 +0200
Jason Zurawski wrote:
Maciej;
Thank you for fast respond and redirecting my email (BTW should I also
be signed to developer's mailing list to get the respond and
participate in the discussion?)
Your messages will be moderated, so signing up is not required (you may do so if you wish).
We need the general answer like: Can PerfSonar initiate SOAP Requests
to other Web Services, if so how ?
not necessarily to other PerfSonar Services, but also to third party
Web Services ? so is there a way to invoke other Web Service apart
from the UI ?
I may be missing your question here, but initiating a WS request is not a function that solely exists in perfSONAR, many languages support this. There are perfSONAR specific client libraries that exist to send messages, but it may be better to start using standard SOAP implementations instead (especially when talking about making requests to other WSs that do not speak the perfSONAR protocol).
As Jason mentioned, perfSONAR web services do not use type mapping but simple sending SOAP messages (text) over HTTP. If you want to test some already running service you can send Echo request (or any other pS request) using command line tool cURL (http://curl.haxx.se/). This tool takes a request from text file and sends it to a service. This approach could be very useful for someone who is not yet familiar with pS client apps.
example use:
curl --stderr /dev/null -H "SOAPAction: none" --data @soap-message.xml $SERVICE_URL > $RESPONSE_FILE
Roman
In general the perfSONAR services do not have the ability to make an arbitrary request on behalf of someone else, they function as a standalone piece of software that offers a set service (such as delivering some form of measurement data, or answering a discovery query). Hope this helps;
-jason
2008/8/11 Jason Zurawski
<>:
Maciej;
We are developing the Mediator which is between two PerfSonars
"infrastructures" and user.
The infrastructures are established in our lab. We need some
informations about the queries.We will need PerfSonar to call the
mediator, then mediator will ask the query to the other PerfSonar to
get reply and send back to the first perfsonar.
My question is how to create Web Service Request from PerfSonar? and
how to invoke PerfSonar Services via Web Services ?
I have searched the website and I couldn't find any helpful information.
Any help will be appreciate.
Kind Regards,
Maciej Matachowski
P.S. I couldn't find the Developer's mailing list so I don't know if
this mailing list it a correct one. If not, please redirect my email.
is the developers mailing list (moving the
discussion there).
First a question: which perfSONAR Services are you dealing with specifically
(RRD MA, LS)?
What you are using will change what the answer regarding what types of
messages to be sent. The messages in general are sent using SOAP over HTTP,
and the foramt is similar to these messages (using the RRD MA as an
example):
http://anonsvn.internet2.edu/svn/perfsonar/trunk/geant2-java-rrd-ma/samples/requests/
The LS, SQL MA, Telnet MP, etc. messages would be slightly different in
nature (the respective service authors can point you to examples once we
know what you need), but the idea will be the same.
Let us know some more info, and we should be able to get you further in your
project.
<?xml version='1.0' encoding='utf-8'?> <soapenv:Envelope xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/' xmlns:soapenc='http://schemas.xmlsoap.org/soap/encoding/'> <soapenv:Body soapenv:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'> <nmwg:message type='MetadataKeyRequest' id='id1' xmlns:nmwg='http://ggf.org/ns/nmwg/base/2.0/' xmlns:netutil='http://ggf.org/ns/nmwg/characteristic/utilization/2.0/' xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/"> <nmwg:metadata id="meta"> <netutil:subject id="subj1"> <nmwgt:interface> </nmwgt:interface> </netutil:subject> <nmwg:eventType>http://ggf.org/ns/nmwg/characteristic/utilization/2.0</nmwg:eventType> </nmwg:metadata> <nmwg:data id='data' metadataIdRef='meta'/> </nmwg:message> </soapenv:Body> </soapenv:Envelope>
- Re: [perfsonar-user] Web Service Request from PerfSonar, Jason Zurawski, 08/11/2008
- Re: [perfsonar-user] Web Service Request from PerfSonar, Maciej Matachowski, 08/11/2008
- Re: [perfsonar-user] Web Service Request from PerfSonar, Jason Zurawski, 08/11/2008
- Re: [pS-dev] Re: [perfsonar-user] Web Service Request from PerfSonar, Roman Lapacz, 08/18/2008
- Re: [pS-dev] Re: [perfsonar-user] Web Service Request from PerfSonar, Maciej Matachowski, 08/18/2008
- Re: [pS-dev] Re: [perfsonar-user] Web Service Request from PerfSonar, Maciej Matachowski, 08/20/2008
- Re: [pS-dev] Re: [perfsonar-user] Web Service Request from PerfSonar, Roman Lapacz, 08/21/2008
- Re: [pS-dev] Re: [perfsonar-user] Web Service Request from PerfSonar, Maciej Matachowski, 08/26/2008
- Re: [pS-dev] Re: [perfsonar-user] Web Service Request from PerfSonar, Roman Lapacz, 08/26/2008
- Re: [pS-dev] Re: [perfsonar-user] Web Service Request from PerfSonar, Stijn Melis, 08/26/2008
- Re: [pS-dev] Re: [perfsonar-user] Web Service Request from PerfSonar, Maciej Matachowski, 08/26/2008
- Re: [pS-dev] Re: [perfsonar-user] Web Service Request from PerfSonar, Roman Lapacz, 08/21/2008
- Re: [pS-dev] Re: [perfsonar-user] Web Service Request from PerfSonar, Roman Lapacz, 08/18/2008
- Re: [perfsonar-user] Web Service Request from PerfSonar, Jason Zurawski, 08/11/2008
- Re: [perfsonar-user] Web Service Request from PerfSonar, Maciej Matachowski, 08/11/2008
Archive powered by MHonArc 2.6.16.