OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

wsrp-interop message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: RE: may MarkupContext in UpdateResponse contain no elements.



this was also my point when we had this no markupString and no markupBinary
discussion.
The bottom line was it is allowed. Mike's argument was (as far as I
remember, Mike please correct me) that since no markup is being returned
there is no mimeType.
Howerver on the Consumer side you need to handle this because you need to
diplay something in the portlet markup area. We currently display an empty
String ("") which is allowed for html.
Otherwise we would need to display an error message. But on the other hand
we said that such a return is valid.
Should we revisit this topic on the next interop call? (For clarification)

Mit freundlichen Gruessen / best regards,

        Richard Jacob
______________________________________________________
IBM Lab Boeblingen, Germany
Dept.8288, WebSphere Portal Server Development
Phone: ++49 7031 16-3469  -  Fax: ++49 7031 16-4888
Email: mailto:richard.jacob@de.ibm.com


|---------+---------------------------->
|         |           Andre Kramer     |
|         |           <andre.kramer@eu.|
|         |           citrix.com>      |
|         |                            |
|         |           07/16/2003 12:44 |
|         |           AM               |
|---------+---------------------------->
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
  |                                                                                                                                                  |
  |       To:       Richard Jacob/Germany/IBM@IBMDE, Andre Kramer <andre.kramer@eu.citrix.com>                                                       |
  |       cc:       wsrp-interop@lists.oasis-open.org                                                                                                |
  |       Subject:  RE: may MarkupContext in UpdateResponse contain no elements.                                                                     |
  >--------------------------------------------------------------------------------------------------------------------------------------------------|




Need to check this tomorrow but it seems I'm trying to set a null
perferredTitle! [A bit like Bob Geldorf who got a knighthood for his
live-aid work but can't be called "Sir Bob" because he is Irish. Mind you,
he is known as "Saint" Bob in Ireland.] Thanks for catching this one.


However, I would think the markup==null=="" rule only applies when a
mimeType is included in the returned markupContext (if it applies to
performBlockingAction at all ;- we only considered getMarkup() which should
be returning markup).


regards,
Andre


-----Original Message-----
From: Richard Jacob [mailto:richard.jacob@de.ibm.com]
Sent: 15 July 2003 23:07
To: andre.kramer@eu.citrix.com
Cc: wsrp-interop@lists.oasis-open.org
Subject: may MarkupContext in UpdateResponse contain no elements.





Andre,


when testing the Citric producer I  noticed that when I click on the action

link and invoke performBlockingInteraction() with "cloneBeforeWrite" set,
the citrix producer returns a new portletContext and a new MarkupContext.
However the MarkupContext contains no elements at all.
We check if MarkupContext is being returned and cache it so we don't need
to call getMarkup here.
But since there is no content finally nothing is displayed.


I think from the specs point of view if MarkupContext is returned it has to

contain some data:
1. usedCachedMarkup should be there (if the producer want to refer to the
consumers cache contents)
1a. if useCachedMarkup is not set, the default is set to "false"
2. in case of useCachedMarkup=false, either markupString or markupBinary
have to appear.
2a. we agreed that one could interpret the spec that there is simply an
"empty Markup" if none of markupString or markupBinary appears. In this
case the consumer displays an empty markup.


So here we interpret the MarkupContext the citrix producer returns as an
"empty markup" returned and therefor do not call getMarkup() after
performBlockingInteraction().


Here is the message:


==============
Listen Port: 8083
Target Host: andrek.dyndns.org
Target Port: 80
==== Request ====
POST /NETlets/NETlet_Markup.asmx HTTP/1.0
Content-Type: text/xml; charset=utf-8
Accept: application/soap+xml, application/dime, multipart/related, text/*
User-Agent: Axis/1.1
Host: localhost:8083
Cache-Control: no-cache
Pragma: no-cache
SOAPAction: "urn:oasis:names:tc:wsrp:v1:performBlockingInteraction"
Content-Length: 1949
Cookie: ASP.NET_SessionId=2v1kea45zfthlq55ve0iwp45


<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"

xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi
="http://www.w3.org/2001/XMLSchema-instance">
  <soapenv:Body>
    <performBlockingInteraction xmlns="urn:oasis:names:tc:wsrp:v1:types">
      <registrationContext>
        <registrationHandle>uri:NETlet:IBM WSRP4J Proxy
Portlet.oUVhPNlijPNe7m3PlVZDb9eJsmY=</registrationHandle>
      </registrationContext>
      <portletContext>
        <portletHandle>uri:NETlet:portlet:Main</portletHandle>
      </portletContext>
      <runtimeContext>
        <userAuthentication>wsrp:none</userAuthentication>
        <portletInstanceKey>Citrix_row_col1_p0</portletInstanceKey>
        <namespacePrefix>Pluto_Citrix_row_col1_p0_</namespacePrefix>
        <sessionID>sid.7c9c3xlraHPJ5MQtKMGSoYcrT_Q=</sessionID>
      </runtimeContext>
      <userContext>
        <userContextKey>dummyUserContextKey</userContextKey>
      </userContext>
      <markupParams>
        <secureClientCommunication>false</secureClientCommunication>
        <locales>en</locales>
        <locales>de</locales>
        <mimeTypes>text/html</mimeTypes>
        <mode>wsrp:view</mode>
        <windowState>wsrp:normal</windowState>
        <clientData>
          <userAgent>IBM WSRP4J ProxyPortlet.0.042</userAgent>
        </clientData>
        <navigationalState>render1</navigationalState>
        <markupCharacterSets>UTF-8</markupCharacterSets>
        <validNewModes>wsrp:view</validNewModes>
        <validNewModes>wsrp:help</validNewModes>
        <validNewModes>wsrp:edit</validNewModes>
        <validNewWindowStates>wsrp:normal</validNewWindowStates>
        <validNewWindowStates>wsrp:maximized</validNewWindowStates>
        <validNewWindowStates>wsrp:minimized</validNewWindowStates>
      </markupParams>
      <interactionParams>
        <portletStateChange>cloneBeforeWrite</portletStateChange>
        <interactionState>action1</interactionState>
      </interactionParams>
    </performBlockingInteraction>
  </soapenv:Body>
</soapenv:Envelope>
==== Response ==== HTTP/1.0 200 OK
Via: HTTP/1.1 ips-ehni-c.ehningen.de.ibm.com (IBM-PROXY-WTE), 1.1 JACOBTP.
Server: Microsoft-IIS/5.1
Date: Tue, 15 Jul 2003 20:31:40 GMT
X-Powered-By: ASP.NET
X-AspNet-Version: 1.1.4322
Cache-Control: private, max-age=0
Content-Type: text/xml; charset=utf-8
Content-Length: 886


<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd
="http://www.w3.org/2001/XMLSchema">
  <soap:Header>
    <wsu:Timestamp xmlns:wsu
="http://schemas.xmlsoap.org/ws/2002/07/utility">
      <wsu:Created>2003-07-15T20:31:40Z</wsu:Created>
      <wsu:Expires>2003-07-15T20:36:40Z</wsu:Expires>
    </wsu:Timestamp>
  </soap:Header>
  <soap:Body>
    <performBlockingInteractionResponse xmlns
="urn:oasis:names:tc:wsrp:v1:types">
      <updateResponse>
        <sessionContext>
          <sessionID>sid.7c9c3xlraHPJ5MQtKMGSoYcrT_Q=</sessionID>
          <expires>-1</expires>
        </sessionContext>
        <portletContext>


<portletHandle>uri:NETlet:portlet:Main.gZ3cPW4RTP2j7a4Oa4M2t+AIBOE
=</portletHandle>
        </portletContext>
        <markupContext />
        <navigationalState>a1</navigationalState>
      </updateResponse>
    </performBlockingInteractionResponse>
  </soap:Body>
</soap:Envelope>
==============


Mit freundlichen Gruessen / best regards,


        Richard Jacob
______________________________________________________
IBM Lab Boeblingen, Germany
Dept.8288, WebSphere Portal Server Development
Phone: ++49 7031 16-3469  -  Fax: ++49 7031 16-4888
Email: mailto:richard.jacob@de.ibm.com






[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]