All pastes #192844 Raw Edit

Miscellany

public text v1 · immutable
·published 2006-10-06 08:59 UTC
rendered paste body
IM query, resourcedialect:http://nextgrid.org/2006/9/11/ccquality
Query for IMs is:/*/*[local-name()='Entry']/*[local-name()='Content']/*[local-na
me()='RegistryEntry' and namespace-uri()='http://nextgrid.org/2006/05/udap/regis
try' and *[local-name()='ServiceType' and namespace-uri()='http://nextgrid.org/2
006/05/udap/registry' and .='Intermediary'  and ../*[local-name()='ServiceDetail
s']/*[local-name()='ResourceDialect' and .='http://nextgrid.org/2006/9/11/ccqual
ity']]]
!!!!!!!! CALLED REGISTRYUTIL !!!!
Querying: http://141.58.5.163:8080/wsrf/services/NGRegistry
found im:<xml-fragment xmlns:add="http://www.w3.org/2005/08/addressing" xmlns:re
g="http://nextgrid.org/2006/05/udap/registry" xmlns:jsdl="http://schemas.ggf.org
/jsdl/2005/11/jsdl">
  <add:EndpointReference>
    <add:Address>http://localhost:7777/services/IntermediaryCreditCard</add:Addr
ess>
  </add:EndpointReference>
  <reg:ServiceType>Intermediary</reg:ServiceType>
  <reg:ServiceDetails>
    <reg:ResourceDialect>http://nextgrid.org/2006/9/11/ccquality</reg:ResourceDi
alect>
    <jsdl:Resources/>
  </reg:ServiceDetails>
</xml-fragment>
Take 1st found IM with EPR:http://localhost:7777/services/IntermediaryCreditCard

querying ...
query im at <xml-fragment xmlns:ns2="http://www.w3.org/2005/08/addressing">http:
//localhost:7777/services/IntermediaryCreditCard</xml-fragment>
after:http://localhost:7777/services/IntermediaryCreditCard orig: <xml-fragment
xmlns:ns2="http://www.w3.org/2005/08/addressing">
  <ns2:Address>http://localhost:7777/services/IntermediaryCreditCard</ns2:Addres
s>
</xml-fragment>
+++ entering create
06.10.2006 10:58:13 org.nextgrid.udap.creditcardim.CCAgreementImpl init
INFO: Agreement Initialising using <xml-fragment xmlns:udap="http://nextgrid.org
/2006/05/udap" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="
http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/en
velope/">
  <udap:Id>AUniqueRequestID</udap:Id>
  <udap:Resource>
    <udap:Id>CreditCards1</udap:Id>
    <udap:Type>CreditCardResource</udap:Type>
    <udap:ResourceDescription Dialect="http://nextgrid.org/2006/9/11/ccquality">

      <ccqual:CreditCardQuality xmlns:ccqual="http://nextgrid.org/2006/9/11/ccqu
ality">Gold</ccqual:CreditCardQuality>
    </udap:ResourceDescription>
  </udap:Resource>
</xml-fragment>
06.10.2006 10:58:13 org.nextgrid.udap.creditcardim.NecCCOfferFinder <init>
INFO: Using org.nextgrid.udap.im.logic.NecRegistry as registry.
<CreateAgreementResponse xmlns="http://nextgrid.org/2006/05/udap/negotiation" xm
lns:add="http://www.w3.org/2005/08/addressing">
  <add:EndpointReference>
    <add:Address>http://localhost:7777/services/CCAgreementService?res=ce96e676-
2a15-48f8-83ea-509107575d0e</add:Address>
  </add:EndpointReference>
</CreateAgreementResponse>
Query started...for request<xml-fragment xmlns:udap="http://nextgrid.org/2006/05
/udap" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://w
ww.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
>
        <udap:Id>AUniqueRequestID</udap:Id>
        <udap:Resource>
        <udap:Id>CreditCards1</udap:Id>
        <udap:Type>CreditCardResource</udap:Type>
          <udap:ResourceDescription Dialect="http://nextgrid.org/2006/9/11/ccqua
lity">
               <ccqual:CreditCardQuality xmlns:ccqual="http://nextgrid.org/2006/
9/11/ccquality">Gold</ccqual:CreditCardQuality>
        </udap:ResourceDescription>
        </udap:Resource>
</xml-fragment>
Test1
06.10.2006 10:58:13 org.nextgrid.udap.creditcardim.NecCCOfferFinder run
INFO: Performing query for resourcesesese
Test1
Created agreement at <xml-fragment xmlns:add="http://www.w3.org/2005/08/addressi
ng" xmlns:neg="http://nextgrid.org/2006/05/udap/negotiation" xmlns:xsi="http://w
ww.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">http://localhost:7777/ser
vices/CCAgreementService?res=ce96e676-2a15-48f8-83ea-509107575d0e</xml-fragment>

In If
!!!!!!!!!!!!!!!!!!!!ResDescriptioN:<xml-fragment xmlns:ccqual="http://nextgrid.o
rg/2006/9/11/ccquality" xmlns:udap="http://nextgrid.org/2006/05/udap" xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XM
LSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">Gold</xml-fragme
nt>
CC quality to take into account:<xml-fragment xmlns:ccqual="http://nextgrid.org/
2006/9/11/ccquality" xmlns:udap="http://nextgrid.org/2006/05/udap" xmlns:xsi="ht
tp://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSc
hema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">Gold</xml-fragment>

Found Quality Request: CreditCardServiceGold
Query generated: /*/*[local-name()='Entry']/*[local-name()='Content']/*[local-na
me()='CreditCardRegistryEntry' and namespace-uri()='http://nextgrid.org/2006/9/1
1/ccinfo' and ./*[local-name()='ServiceType' and . = 'CreditCardServiceGold'] ]
!!!!!!!! CALLED REGISTRYUTIL !!!!
Querying: http://141.58.5.163:8080/wsrf/services/NGRegistry
No result found via RegistryUtil
FOUND EPRS:[]
PERFORMING CALLBACK FOUND NOTHING
Callback: Nothing found to agreement instance ce96e676-2a15-48f8-83ea-509107575d
0e
06.10.2006 10:58:14 org.nextgrid.udap.creditcardim.CCAgreementImpl nothingFound
FEIN: Nothing found.
STATUS is Rejected
got negative answer: nothing found
getOffers Response returns null
received offers:null
java.lang.NullPointerException
        at org.nextgrid.udap.client.demo.WSUdapClient.submitRequest(WSUdapClient
.java:77)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.codehaus.xfire.service.invoker.AbstractInvoker.invoke(AbstractInv
oker.java:52)
        at org.codehaus.xfire.service.invoker.ObjectInvoker.invoke(ObjectInvoker
.java:45)
        at org.codehaus.xfire.service.binding.ServiceInvocationHandler.sendMessa
ge(ServiceInvocationHandler.java:271)
        at org.codehaus.xfire.service.binding.ServiceInvocationHandler$1.run(Ser
viceInvocationHandler.java:85)
        at org.codehaus.xfire.service.binding.ServiceInvocationHandler.execute(S
erviceInvocationHandler.java:132)
        at org.codehaus.xfire.service.binding.ServiceInvocationHandler.invoke(Se
rviceInvocationHandler.java:107)
        at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.jav
a:98)
        at org.codehaus.xfire.transport.DefaultEndpoint.onReceive(DefaultEndpoin
t.java:61)
        at org.codehaus.xfire.transport.AbstractChannel.receive(AbstractChannel.
java:38)
        at org.codehaus.xfire.transport.http.XFireServletController.invoke(XFire
ServletController.java:278)
        at org.codehaus.xfire.transport.http.XFireServletController.doService(XF
ireServletController.java:144)
        at org.codehaus.xfire.transport.http.XFireServlet.doPost(XFireServlet.ja
va:114)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:616)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
        at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428
)
        at org.mortbay.jetty.servlet.ServletHandler.dispatch(ServletHandler.java
:666)
        at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:5
68)
        at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
        at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
        at org.mortbay.http.HttpServer.service(HttpServer.java:909)
        at org.mortbay.http.HttpConnection.service(HttpConnection.java:816)
        at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:982)
        at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)
        at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:
244)
        at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
        at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)