[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [wsrp-interop] IBM Producer giving corrupt ServiceDescription
Hi,
the problem was that your consumer sent a more specific locale 'en-gb' than the portlet description offered 'en'.
I have fixed this problem and you should get markup now.
MfG / Best regards,
Stephan Laertz
--------------------------------------------------------------------------
WebSphere Portal Server Development
IBM Deutschland Entwicklung GmbH
Schoenaicher Str. 220, 71032 Boeblingen
Phone: +49 7031 16-3313 (*120 3313)
Email: Stephan.Laertz@de.ibm.com
---------------------------------------------------------------------------
David Ward <david.ward@oracle.com> 11.06.2003 12:47
To: Richard Jacob/Germany/IBM@IBMDE
cc: Julie Macnaught/Middletown/IBM@IBMUS, Peter Fischer3/Germany/IBM@IBMDE, Stephan Laertz/Germany/IBM@IBMDE, wsrp-interop@lists.oasis-open.org, "Freedman,Michael" <MICHAEL.FREEDMAN@oracle.com>
Subject: Re: [wsrp-interop] IBM Producer giving corrupt ServiceDescription
Thanks for looking into this. We can now successfully register your producer on our interop server.
However, we still can't seem to display the portlet.
Here's the getMarkup request we send
POST /wsrp/wsrp4j/WSRPBaseService HTTP/1.1
Host: ukp16267.uk.oracle.com:2222
Connection: close, TE
TE: trailers, deflate, gzip, compress
User-Agent: RPT-HTTPClient/0.3-3
Oracle-ECID: 1055328118787ApplicationServerThread
Cookie: JSESSIONID=DA05353833BF21DA8DA970492DCF22BD
SOAPAction: "urn:oasis:names:tc:wsrp:v1:getMarkup"
Accept-Encoding: deflate, gzip, x-gzip, compress, x-compress
Content-type: text/xml; charset="utf-8"
Content-length: 2361
<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns0="urn:oasis:names:tc:wsrp:v1:types">
<env:Body>
<ns0:getMarkup>
<ns0:registrationContext>
<ns0:registrationHandle>192.168.200.1_1055327963543_11</ns0:registrationHandle>
</ns0:registrationContext>
<ns0:portletContext>
<ns0:portletHandle>0.192.168.200.1_1055328032008_12</ns0:portletHandle>
<ns0:portletState/>
</ns0:portletContext>
<ns0:runtimeContext>
<ns0:userAuthentication>wsrp:password</ns0:userAuthentication>
<ns0:portletInstanceKey>213_33890_213_1_1</ns0:portletInstanceKey>
<ns0:namespacePrefix>__ns213_33890_213_1_1_</ns0:namespacePrefix>
</ns0:runtimeContext>
<ns0:userContext>
<ns0:userContextKey>DXWARD4[1]</ns0:userContextKey>
</ns0:userContext>
<ns0:markupParams>
<ns0:secureClientCommunication>false</ns0:secureClientCommunication>
<ns0:locales>en-gb</ns0:locales>
<ns0:mimeTypes>text/html</ns0:mimeTypes>
<ns0:mimeTypes>text/xml</ns0:mimeTypes>
<ns0:mimeTypes>text/vnd.oracle.mobilexml</ns0:mimeTypes>
<ns0:mode>wsrp:view</ns0:mode>
<ns0:windowState>wsrp:normal</ns0:windowState>
<ns0:clientData>
<ns0:userAgent>Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Q312461) RPT-HTTPClient/0.3-3</ns0:userAgent>
<ns0:extensions>
<oracle:GenericExtension xmlns:oracle="http://xmlns.oracle.com/portal/wsrp/v1">
<ns0:NamedString name="X-Oracle-Device.Orientation">
<ns0:value>landscape</ns0:value>
</ns0:NamedString>
<ns0:NamedString name="X-Oracle-Device.MaxDocSize">
<ns0:value>0</ns0:value>
</ns0:NamedString>
<ns0:NamedString name="X-Oracle-Device.Class">
<ns0:value>pcbrowser</ns0:value>
</ns0:NamedString>
<ns0:NamedString name="X-Oracle-Device.Secure">
<ns0:value>false</ns0:value>
</ns0:NamedString>
</oracle:GenericExtension>
</ns0:extensions>
</ns0:clientData>
<ns0:navigationalState></ns0:navigationalState>
<ns0:markupCharacterSets>utf-8</ns0:markupCharacterSets>
<ns0:validNewModes>wsrp:view</ns0:validNewModes>
<ns0:validNewModes>wsrp:edit</ns0:validNewModes>
<ns0:validNewModes>wsrp:help</ns0:validNewModes>
<ns0:validNewWindowStates>wsrp:normal</ns0:validNewWindowStates>
<ns0:validNewWindowStates>wsrp:maximized</ns0:validNewWindowStates>
<ns0:validNewWindowStates>wsrp:minimized</ns0:validNewWindowStates>
</ns0:markupParams>
</ns0:getMarkup>
</env:Body>
</env:Envelope>
and here's the response we get
HTTP/1.1 500 Internal Server Error
Transfer-Encoding: chunked
Date: Wed, 11 Jun 2003 10:40:40 GMT
Content-Type: text/xml; charset=utf-8
Connection: close
Server: Apache Coyote/1.0
Via: 1.1 inet-nc01 (NetCache NetApp/5.3.1R3)
1b1
<?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>
<soapenv:Fault>
<faultcode>soapenv:Server.userException</faultcode>
<faultstring>java.lang.NullPointerException</faultstring>
<detail/>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
0
Try it for yourself at http://portalstandards.oracle.com (you will need a WSDL URL outside your firewall).
Regards
David
Richard Jacob wrote:
I presume you were using the WSDL packaged in our WSRP4J project?
If so then 1. is true. We needed to hack our producer's wsdl prior to
generating the stubs to workaround an AXIS bug.
That's why the validator expected there should be no "xml:" prefix (because
we needed to change the WSDL here).
As you correctly stated the validator should use the wsdl from the web
site. I'm sorry that didn't point you to that earlier.
It's good to see that the validator is working!
We fixed that bug in our implementation. Thanks, Stephan.
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
|---------+---------------------------->
| | Julie |
| | Macnaught@IBMUS |
| | |
| | 06/10/2003 02:52 |
| | PM |
|---------+---------------------------->
>--------------------------------------------------------------------------------------------------------------------------------------------------|
| |
| To: Richard Jacob/Germany/IBM@IBMDE |
| cc: David Ward <david.ward@oracle.com>, Peter Fischer3/Germany/IBM@IBMDE, stephan laertz, wsrp-interop@lists.oasis-open.org |
| From: Julie Macnaught/Middletown/IBM@IBMUS |
| Subject: Re: [wsrp-interop] IBM Producer giving corrupt ServiceDescription(Document link: Richard Jacob) |
>--------------------------------------------------------------------------------------------------------------------------------------------------|
The testing I have done shows that the getServiceDescriptionResponse
message fails schema validation because the shortTitle contains an xml:lang
attribute. Upon further investigation, it seems that the copy of the
schema I am using defines a lang attribute without the xml: namespace
prefix. If I hack the message log and remove the xml: prefix from the lang
attributes, the message then fails schema validation because the keyword
elements are nil, which is not allowed.
So, it seems we have 2 problems:
1. The schema I have is out of sync with the code and spec. I will
get a new one from the OASIS web site.
2. The code is generating keywords that are nil.
<keywords lang="en">
<value> Testen</value>
</keywords>
<keywords xsi:nil="true"/>
<keywords xsi:nil="true"/>
<keywords xsi:nil="true"/>
Julie E.MacNaught
IBM Research
Tie Line: 930-0011
US callers: (866) 301-2446
Int'l callers: (401) 841-0488
jmacna@us.ibm.com
--
David Ward
Principal Software Engineer
Oracle PortalOracle European Development Centre
520 Oracle Parkway
Thames Valley Park
Reading
Berkshire RG6 1RA
UK
Email: david.ward@oracle.com Tel: +44 118 924 5079 Fax: +44 118 924 5005
David Ward Principal Software Engineer Oracle Portal |
Oracle European Development Centre 520 Oracle Parkway Thames Valley Park Reading Berkshire RG6 1RA UK |
|
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]