Skip to Content
author's profile photo Former Member
Former Member

How to deploy an AbtractPortalComponent that may be accessed via HttpClient

Hello,

I developed an AbstractPortalComponent on EP5, that was requested from another J2ee-Server via an URLConnection using BasicAuthentication (in order to notifiy a cache within an other PortalComponent about expire messages via request parameters).

Now I want to migrate that Component on EP6, but since EP6 does not make use of Basic Authentication any more, it doesn't work as it is. So that's my question:

How can I configure/develop a PortalComponent that may be requested directly via HTTP where either BasicAuthentication may be used or no authentication is nesseccary?

I tried the following config in the portalapp.xml, without success:

<component-config>

...

<property name="AuthRequirement" value="none" />

<property name="SecurityZone" value="com.sap.portal/no-safety"/>

</component-config>

Thanks for any hint that might help me getting on here!

Torsten

Add comment
10|10000 characters needed characters exceeded

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jun 07, 2004 at 08:47 PM

    You should probably convert your component to a web service.

    There is a tutorial on this on SDN

    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/documents/a1-8-4/tutorial - creating a web service client in enterprise portal 6.0

    (not sure if this will help your authorization problems tough)

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 08, 2004 at 10:13 AM

    Thanks, that seems to be a good idea. By the way, another question:

    I use an oc4j-Server with an jaxrpc-Webservice, using the implementation from SUN (jwsdp). This webservice is consumed via an jaxrpc-Client within SAPPortal. I wanted to migrate that client to the SAP Soap implementation using the Eclipse-plugin that builds a Webservice-Client out of a wsdl.

    Now the webservice is properly requested, but the client doesn't understand the response (something like "malformed XML"). So I suspect, that the versions of jaxrpc that is implemented differ.

    So my question is: Which version of the jaxrpc-specification is implemented with in SAP-Soap?

    The SUN implementation I use on Server side is jaxrpc-1.0.1

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 09, 2004 at 01:48 PM

    Hello,

    I posted this question on WAS forum.

    For the first question, I found an answer:

    In the portalapp.xml, configure a component like this:

    <component-config>

    ...

    <property name="SecurityZone" value="com.sap.portal/no-safety"/>

    </component-config>

    <component-profile>

    <property name="AuthScheme" value="basicauthentication"/>

    </component-profile>

    and it may be requested via BasicAuthentication

    Thanks

    Torsten

    Add comment
    10|10000 characters needed characters exceeded