RE: [wsrp-interop] BEA's producer/consumer now online
I'm also using a mime attribute to carry the
filename.
regards,
Andre
-----Original Message-----
From: Eric Xu [mailto:Eric.Xu@plumtree.com]
Sent: 09 September 2003 02:29
To: Subbu Allamaraju; Andre Kramer;
wsrp-interop@lists.oasis-open.org
Subject: RE: [wsrp-interop] BEA's producer/consumer
now online
Hi, Subbu and all,
This is regarding to the file upload portlet
and the uploadContext structure. I'm getting the same error as
Andre's. However, my soap request is a bit different. I didn't find a
good place in the UploadContext structure to put fileName. In my
request, I just had NamedString("filename", fileName) as one of the
MimeAttributes, where "filename" is a constant. I put "filename"
there, since this is how it appears in http header. I'm not sure if
this is the correct way of doing it as the spec doesn't mention this.
How is everyone handling this issue?
Attached is my request, the response is a
NullPointerException.
Thanks,
Eric
-----Original Message-----
From: Subbu Allamaraju [mailto:subbu@bea.com]
Sent: Tuesday, September 02, 2003 9:06 AM
To: Andre Kramer; wsrp-interop@lists.oasis-open.org
Subject: Re: [wsrp-interop] BEA's producer/consumer
now online
Andre,
Thanks for the test results. The portlet
description as well as the
fault type returned by our producer are wrong. I'm
also looking into the
failure with upload.
Regards,
Subbu
Andre Kramer wrote:
> I've now been able to test against BEA's producer
and am able to report
> that the portlets are displaying and interacting
with our consumer (see
> below for some issues and observations).
>
> I've also placed one portlet from each producer
on a test Web page:
>
> http://andrek.dyndns.org/NETlets/Page.aspx?page=multi
>
> [This page takes some time in loading due to 4 *
>
getServiceDescription/register/getSD/initCookie/getMarkup (on each
> initial load, as I have our db turned off when
our prototype is on the
> Internet). The Oracle portlet still has
connectivity problems and I've
> used the Citrix graph portlet rather than
Oracle's on the principle that
> it does not use cookies ;-)]
>
> I saw two SOAP faults testing with the BEA
portlets:
>
> - Switching the helloWorldPortlet to edit
and help mode (see
> attached trace 1)
> - Uploading a file to multipartRequest1
(see attached trace 2)
>
> I was unable to get the login and create account
portlets to work
> together (i.e. could not log in after creating an
acount). The title of
> the loginPortlet is "Create a User Account" so
maybe this is work in
> progress?
>
> I was unable to fully test the secure portlet (no
secure bindings in the
> service wsdl) but noticed that the secure
resource image did not display
> as the cert was not verifiable my end (also, the
gif urls end in a ?).
>
> regards,
> Andre
>
> -----Original Message-----
> From: Subbu Allamaraju [mailto:subbu@bea.com]
> Sent: 11 August 2003 22:12
> To: wsrp-interop@lists.oasis-open.org
> Cc: William Cox
> Subject: [wsrp-interop] BEA's producer/consumer
now online
>
>
>
> BEA's WSRP producer and consumer are now
available online for interop
> testing.
>
> WSDL:
> http://wsrp.avitek.com:7001/producer/wsdl/wlp_wsrp_v1_markup_service.wsdl
>
> Producer:
>
> The portlets for this producer are hosted in
> http://wsrp.avitek.com:7001/producer, and can be
invoked directly
> (without a portal) for testing purposes. Please
refer to
> http://wsrp.avitek.com:7001/producer/index.jsp
for the list of portlets
> currently deployed. You can follow the hyperlinks
to test those
> portlets.
>
> Please note that this producer does not support
registration and portlet
> management ports.
>
> Consumer:
>
> A read-only consumer is hosted at
> http://wsrp.avitek.com:8001/consumer/portal.portal.
This consumer
> includes pages that include portlets from BEA's
and IBM's producers.
>
> Please let me know if you're able to use these
producers successfully.
> If you have a producer online, we'll be happy to
include those portlets
> in our test consumer.
>
> We'll try to keep these servers online to the
extent possible (except
> during updates).
>
> Regards,
>
> Subbu
>
>
>
>
> You may leave a Technical Committee at any time
by visiting
> http://www.oasis-open.org/apps/org/workgroup/wsrp-interop/members/leave_workgroup.php
>
>
>
>
------------------------------------------------------------------------
>
> Subject:
> bea trace 1
> From:
> Andre Kramer <andre.kramer@eu.citrix.com>
> Date:
> Fri, 29 Aug 2003 11:46:49 +0100
> To:
> Andre Kramer <andre.kramer@eu.citrix.com>
>
>
>
> request: getMarkup with edit:
>
> User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS
Web Services Client
> Protocol 1.1.4322.573) Content-Type: text/xml;
charset=utf-8 SOAPAction:
> "urn:oasis:names:tc:wsrp:v1:getMarkup"
Content-Length: 1781 Expect:
> 100-continue Host: localhost:9090 Cookie:
>
JSESSIONID=1Pve49VcO1BBV3clAHSiWGpyqqUDZJDgmPoTW9WWvK11l4g78NsR!1079735209
> <?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"
> xmlns:wsa="http://schemas.xmlsoap.org/ws/2003/03/addressing"
> xmlns:wsu="http://schemas.xmlsoap.org/ws/2002/07/utility"><soap:Header><wsa:Action>urn:oasis:names:tc:wsrp:v1:getMarkup</wsa:Action><wsa:From><wsa:Address>http://schemas.xmlsoap.org/ws/2003/03/addressing/role/anonymous</wsa:Address></wsa:From><wsa:MessageID>uuid:b6a56dd7-1661-434a-a40b-e3877cb3aedb</wsa:MessageID><wsa:To>http://knowth:8080/WSRPService</wsa:To><wsu:Timestamp><wsu:Created>2003-08-29T10:40:30Z</wsu:Created><wsu:Expires>2003-08-29T10:45:30Z</wsu:Expires></wsu:Timestamp></soap:Header><soap:Body><getMarkup
>
xmlns="urn:oasis:names:tc:wsrp:v1:types"><registrationContext
> xsi:nil="true"
>
/><portletContext><portletHandle>helloWorldPortlet</portletHandle></portletContext><runtimeContext><userAuthentication>wsrp:password</userAuthentication><portletInstanceKey>3F4aJF%2bSFnjQQw5xTiwuyKNgl7w%3d</portletInstanceKey><namespacePrefix>netlet0</namespacePrefix><sessionID>1Pve49VcO1BBV3clAHSiWGpyqqUDZJDgmPoTW9WWvK11l4g78NsR!1079735209</sessionID></runtimeContext><userContext><userContextKey>12345</userContextKey></userContext><markupParams><secureClientCommunication>false</secureClientCommunication><locales>en</locales><locales>de</locales><mimeTypes>text/html</mimeTypes><mode>wsrp:edit</mode><windowState>wsrp:normal</windowState><clientData><userAgent>Mozilla/4.0
> (compatible; MSIE 6.0; Windows NT 5.1; .NET
CLR
>
1.1.4322)</userAgent></clientData><markupCharacterSets>UTF-8</markupCharacterSets><markupCharacterSets>UTF-16</markupCharacterSets></markupParams></getMarkup></soap:Body></soap:Envelope>
>
> response from helloWorldPortlet when getMarkup
with edit:
>
>
> HTTP/1.1 200 OK Date: Fri, 29 Aug 2003 10:47:18
GMT Server: WebLogic
> Server 8.1 SP1 Fri Jun 20 23:06:40 PDT 2003
271009 with Content-Length:
> 2546 Content-Type: text/xml; charset=UTF-8
<?xml version="1.0"
> encoding="UTF-8"?>
>
> <soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><soapenv:Fault
>
xmlns:urn="urn:oasis:names:tc:wsrp:v1:types"><faultcode>urn:OperationFailed</faultcode><faultstring
> xsi:nil="true"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/><detail><detail>com.bea.wsrp.faults.OperationFailedException
>
> at
>
com.bea.wsrp.producer.adapter.pageflow.PageflowPortletContainer.getMarkup(PageflowPortletContainer.java:209)
>
> at
>
com.bea.wsrp.producer.handlers.markup.MarkupServiceHandler.doGetMarkup(MarkupServiceHandler.java:250)
>
> at
>
com.bea.wsrp.producer.handlers.markup.MarkupServiceHandler.doService(MarkupServiceHandler.java:166)
>
> at
com.bea.wsrp.producer.WsrpServer.doService(WsrpServer.java:301)
> at
>
com.bea.wsrp.producer.WsrpServer.internalService(WsrpServer.java:222)
> at
com.bea.wsrp.producer.WsrpServer.doPost(WsrpServer.java:209)
> at
javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1053)
>
> at
>
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:387)
>
> at
>
weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
> at
>
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
> at
>
com.bea.wsrp.producer.adapter.pageflow.WsrpPageflowFilter.doFilter(WsrpPageflowFilter.java:73)
>
> at
>
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
> at
>
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6316)
>
> at
>
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
>
> at
>
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
> at
>
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3622)
>
> at
>
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2569)
>
> at
weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
> at
weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
> Caused by: java.lang.IllegalStateException:
Pageflow invalid:
> helloWorld.Controller
> at
>
com.bea.wsrp.producer.adapter.pageflow.PageflowPortletContainer.invokePageflowRender(PageflowPortletContainer.java:474)
>
> at
>
com.bea.wsrp.producer.adapter.pageflow.PageflowPortletContainer.getMarkup(PageflowPortletContainer.java:202)
>
> ... 20 more
>
</detail></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>
>
>
>
------------------------------------------------------------------------
>
> Subject:
> bea trace 2
> From:
> Andre Kramer <andre.kramer@eu.citrix.com>
> Date:
> Fri, 29 Aug 2003 12:40:15 +0100
> To:
> Andre Kramer <andre.kramer@eu.citrix.com>
>
>
> request (pbia with uploaddata):
>
> SOAPAction:
"urn:oasis:names:tc:wsrp:v1:performBlockingInteraction"
> Content-Length: 4615 Expect: 100-continue Host:
localhost:9090 Cookie:
>
JSESSIONID=1P7qhT0JnLj9Mz0kAqJHzS9oUtBlUMFT1Ykse4RcnCSO89e1xJbe!1079735209
> <?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"
> xmlns:wsa="http://schemas.xmlsoap.org/ws/2003/03/addressing"
> xmlns:wsu="http://schemas.xmlsoap.org/ws/2002/07/utility"><soap:Header><wsa:Action>urn:oasis:names:tc:wsrp:v1:performBlockingInteraction</wsa:Action><wsa:From><wsa:Address>http://schemas.xmlsoap.org/ws/2003/03/addressing/role/anonymous</wsa:Address></wsa:From><wsa:MessageID>uuid:30cdd411-213f-4d4f-b931-573de9f38eab</wsa:MessageID><wsa:To>http://knowth:8080/WSRPService</wsa:To><wsu:Timestamp><wsu:Created>2003-08-29T11:32:52Z</wsu:Created><wsu:Expires>2003-08-29T11:37:52Z</wsu:Expires></wsu:Timestamp></soap:Header><soap:Body><performBlockingInteraction
>
xmlns="urn:oasis:names:tc:wsrp:v1:types"><registrationContext
> xsi:nil="true"
>
/><portletContext><portletHandle>multipartRequest1</portletHandle></portletContext><runtimeContext><userAuthentication>wsrp:password</userAuthentication><portletInstanceKey>P1ZWiWkVV8Iu%2b2ygJG9AJah%2f3j8%3d</portletInstanceKey><namespacePrefix>netlet0</namespacePrefix><sessionID>1P7qhT0JnLj9Mz0kAqJHzS9oUtBlUMFT1Ykse4RcnCSO89e1xJbe!1079735209</sessionID></runtimeContext><userContext><userContextKey>12345</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>Mozilla/4.0
> (compatible; MSIE 6.0; Windows NT 5.1; .NET
CLR
>
1.1.4322)</userAgent></clientData><navigationalState
>
/><markupCharacterSets>UTF-8</markupCharacterSets><markupCharacterSets>UTF-16</markupCharacterSets></markupParams><interactionParams><portletStateChange>cloneBeforeWrite</portletStateChange><interactionState>multipartUpload</interactionState><formParameters
>
name="P1ZWiWkVV8Iu%2b2ygJG9AJah%2f3j8%3d{actionForm.text1}"><value>test</value></formParameters><formParameters
>
name="P1ZWiWkVV8Iu%2b2ygJG9AJah%2f3j8%3d{actionForm.text2}"><value
>
/></formParameters><uploadContexts><mimeType>text/xml</mimeType><uploadData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ZXJ2aWNlIj4KCiAg
>
ICAgICAgICAgIDxzb2FwOmFkZHJlc3MgbG9jYXRpb249Imh0dHA6Ly93c3JwLmF2aXRlay5jb206
>
NzAwMS9wcm9kdWNlci9wcm9kdWNlciIvPgoKICAgICAgICA8L3dzZGw6cG9ydD4KCiAgICAgICAg
>
PCEtLSBOb3Qgc3VwcG9ydGVkCgogICAgICAgIDx3c2RsOnBvcnQgYmluZGluZz0iYmluZDpXU1JQ
>
X3YxX1JlZ2lzdHJhdGlvbl9CaW5kaW5nX1NPQVAiIG5hbWU9IldTUlBSZWdpc3RyYXRpb25TZXJ2
>
aWNlIj4KCiAgICAgICAgICAgIDxzb2FwOmFkZHJlc3MgbG9jYXRpb249Imh0dHA6Ly93c3JwLmF2
>
aXRlay5jb206NzAwMS9wcm9kdWNlci9wcm9kdWNlciIvPgoKICAgICAgICA8L3dzZGw6cG9ydD4K
>
CiAgICAgICAgLS0+CgogICAgICAgIDwhLS0gTm90IHN1cHBvcnRlZAoKICAgICAgICA8d3NkbDpw
>
b3J0IGJpbmRpbmc9ImJpbmQ6V1NSUF92MV9Qb3J0bGV0TWFuYWdlbWVudF9CaW5kaW5nX1NPQVAi
>
IG5hbWU9IldTUlBQb3J0bGV0TWFuYWdlbWVudFNlcnZpY2UiPgoKICAgICAgICAgICAgPHNvYXA6
>
YWRkcmVzcyBsb2NhdGlvbj0iaHR0cDovL3dzcnAuYXZpdGVrLmNvbTo3MDAxL3Byb2R1Y2VyL3By
>
b2R1Y2VyIi8+CgogICAgICAgIDwvd3NkbDpwb3J0PgoKICAgICAgICAtLT4KCiAgICA8L3dzZGw6
>
c2VydmljZT4KCjwvd3NkbDpkZWZpbml0aW9ucz4KCgoK</uploadData><mimeAttributes
>
name="filename"><value>C:\Inetpub\wwwroot\NETlets\services\bea.wsdl</value></mimeAttributes></uploadContexts><uploadContexts><mimeType>application/octet-stream</mimeType><uploadData
> /><mimeAttributes
>
name="fieldname"><value>P1ZWiWkVV8Iu%2b2ygJG9AJah%2f3j8%3d{actionForm.file2}</value></mimeAttributes></uploadContexts></interactionParams></performBlockingInteraction></soap:Body></soap:Envelope>
>
>
> soap fault response from pfi:
>
> HTTP/1.1 200 OK Date: Fri, 29 Aug 2003 11:39:41
GMT Server: WebLogic
> Server 8.1 SP1 Fri Jun 20 23:06:40 PDT 2003
271009 with Content-Length:
> 396 Content-Type: text/xml; charset=UTF-8
<?xml version="1.0"
> encoding="UTF-8"?>
>
> <soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><soapenv:Fault
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><faultcode>soapenv:java.lang.NullPointerException</faultcode><faultstring
> xsi:nil="true"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/></soapenv:Fault></soapenv:Body></soapenv:Envelope>
>
>
>
------------------------------------------------------------------------
>
> To unsubscribe from this mailing list (and be
removed from the roster of the OASIS TC), go to http://www.oasis-open.org/apps/org/workgroup/wsrp-interop/members/leave_workgroup.php.
To unsubscribe from this mailing list (and be
removed from the roster of the OASIS TC), go to http://www.oasis-open.org/apps/org/workgroup/wsrp-interop/members/leave_workgroup.php.