[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
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]