Authentication with XML interface

Hello,
I tried to use the XML interface of the Access Manager.
When I use the following perl script to get the initial auth context.
#!/usr/bin/perl -w
use strict;
use LWP::UserAgent;
use HTTP::Request;
my $ua = LWP::UserAgent->new(env_proxy => 1, keep_alive => 1, timeout => 30, );
my $data_to_send = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><AuthContext version=\"1.0\"><Request authIdentifier=\"0\"><NewAuthContext orgName=\"dc=ifbus,dc=lan\"></NewAuthContext></Request></AuthContext>";
my $head = HTTP::Headers->new(Content_Type => "text/xml", "ID" => "dix");
my $req = HTTP::Request->new('POST', 'http://dione.ifbus.lan:80/amserver/authservice', $head, "$data_to_send");
my $response = $ua->request($req);
print $response->as_string;
print $response->content;I get this exception from the Access Manager
[02/Jan/2006:10:51:51] failure ( 2291): for host 10.0.1.254 trying to POST /amserver/authservice, service-j2ee reports: Standar
dWrapperValve[pllservice]: WEB2792: Servlet.service() for servlet pllservice threw exception
javax.servlet.ServletException: No request handler for service: at com.iplanet.services.comm.server.PLLRequestServlet.handleRequest(PLLRequestServlet.java:189) at com.iplanet.services.comm.server.PLLRequestServlet.doPost(PLLRequestServlet.java:142) at javax.servlet.http.HttpServlet.service(HttpServlet.java:807)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:908) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at com.sun.mobile.filter.AMLController.doFilter(AMLController.java:163) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:280) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:209) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509) at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:161) at com.iplanet.ias.web.WebContainer.service(WebContainer.java:580)Any suggestions?
Jens

I'm trying to follow the model in this thread but am running into a problem...
Using Access Mgr 6.0, I can initiate a session & get requirements but my Auth request is timing out....
Sending:
<?xml version="1.0" encoding="UTF-8"?>
<RequestSet version="1.0" svcid="auth" reqid="1">
<Request><![CDATA[<?xml version="1.0" encoding="ISO-8859-1"?>
<AuthContext version="1.0">
<Request authIdentifier="AQIC5wM2LY4SfcxAsgWMsX1lK+jDy/GETczAj0ffJuHMSQ4=">
<SubmitRequirements>
<Callbacks length="2">
<NameCallback>
<Value>username</Value>
</NameCallback>
<PasswordCallback>
<Value>password</Value>
</PasswordCallback>
</Callbacks>
</SubmitRequirements>
</Request>
</AuthContext>]]></Request>
</RequestSet>
Got:
500 (Internal Server Error) read timeout
Client-Date: Wed, 05 Apr 2006 17:45:43 GMT
if I change the XML a bit...
Sending:
<?xml version="1.0" encoding="UTF-8"?>
<RequestSet version="1.0" svcid="auth" reqid="1">
<Request><![CDATA[<?xml version="1.0" encoding="ISO-8859-1"?>
<AuthContext version="1.0">
<Request authIdentifier="AQIC5wM2LY4Sfczf+5e7NFL7b1gkBPcoaBpeOUfpVFM6ZAY=">
<SubmitRequirements>
<Callbacks length="3">
<PagePropertiesCallback isErrorState="false"><ModuleName>LDAP</ModuleName></PagePropertiesCallback>
<NameCallback>
<Value>username</Value>
</NameCallback>
<PasswordCallback>
<Value>password</Value>
</PasswordCallback>
</Callbacks>
</SubmitRequirements>
</Request>
</AuthContext>]]></Request>
</RequestSet>
Got:
HTTP/1.1 200 OK
Connection: close
Date: Wed, 05 Apr 2006 17:51:04 GMT
Server: Netscape-Enterprise/6.0
Content-Type: text/plain
Client-Date: Wed, 05 Apr 2006 17:51:05 GMT
Client-Peer: 10.10.10.100:58080
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ResponseSet vers="1.0" svcid="auth" reqid="1">
<Response><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<AuthContext version="1.0"><Response authIdentifier="AQIC5wM2LY4Sfczf+5e7NFL7b1gkBPcoaBpeOUfpVFM6ZAY="></Response></AuthContext>]]></Response>
</ResponseSet>
I know that addind the PageProperites doesn't really make sense but I'm at a loss...
Can any one help to point me in the right direction?
Thanks
-Sean

Similar Messages

  • Adobe Form with XML interface cannot retrieve all data from SAP

    hi all
    I want to use the Adobe forms for the real estate module.
    I had seen that adobe forms can have an interface with XML input and output as parameter.
    In the interface type only the /DOCPARAMS an the DOCXML are INPUT parameters which are available.
    No other INPUT parameter can be added to it.
    When i try to retrieve the data in real estate there are some default function modules for retrieving the data from real estate.
    But this function modules also are going to find out if the form which asks for this information has a IMPORT parameter
    for the required data. For example, the SENDER data is retrieved, but before the default function module retrieve this data
    the function module checks if the form has a INPUT parameter SENDER.
    And that is not the case. And i cannot create the SENDER parameter to it, because this INTERFACE type does not allow it.
    Does anybody know a solution herefore?
    kind regards,
    Anton Pierhagen

    Hi Bhaskar
    It is a long time ago, almost 2 years.
    I created my own custom development for calling the Adobe form. This custom development uses the correct function module interface with the IMPORT XML.
    The XML which i sent as IMPORT PARAMETER to the form is also created by own custom development. Via the default XML class of SAP
    So that was my solution
    Kind regards,
    Anton Pierhagen

  • Adobe Form with XML interface

    hi all
    I want to use the Adobe forms for the real estate module.
    I had seen that adobe forms can have an interface with XML input and output as parameter.
    In the interface type only the /DOCPARAMS an the DOCXML are  INPUT parameters which are available.
    No other INPUT parameter can be added to it.
    When i try to retrieve the data in real estate there are some default function modules for retrieving the  data from real estate.
    But this function modules also are going to find out if the form which asks for this information has a IMPORT parameter
    for the required data. For example, the SENDER data is retrieved, but before the default function module retrieve this data
    the function module checks if the form has a INPUT parameter SENDER.
    And that is not the case. And i cannot create the SENDER parameter to it, because this INTERFACE type does not allow it.
    Does anybody know a solution herefore?
    kind regards,
    Anton Pierhagen

    I've found a own workaround for this problem

  • How SAP integrate with XML interface & Easyship applications for labelling

    Dear All,
    My client has a requirement to use DHL for its shipments and shipment labelling is required.
    However, as per DHL's response that DHL Express label is a complex presentation that does not lend itself the standard labeling options under SAP, but both options of the XML interface and the Easyship applications do provide this label built by the application and delivered to SAP print stream.
    Please help to advise if there is any possible solutions for this implementation without using middleware?
    Appreciate it.
    Thank you.

    i AM NOT SURE IF i AM GETTING THIS RIGHT BUT, YOU WILL HAVE TO USE A BUSINESS COMMUNICATOR (EAI) BETWEEN dhl AND saP.In our current client we have developed an application where on PGI of the delivery will trigger a dlvry03 IDOc which passes through the logic of EAI and is then passed onto the carrier labelling system/interface.Once again once we receive back the info from the carrier an inbound IDOc is created to update the delivery with the tracking number and a Fedex label prints directly on the required printer.
    Same way you can use shpmnt IDOC and have you tried XSI interface, it was particularly developed to deal with carrier interface.Please let me know I can provid emore info regarding XSI.

  • How to print an adobe form with xml interface in r3

    I have a Web dynpro application that creates an ADOBE form using an XML schema interface.
    I need to be able to print the same form in R/3 - is this possible? If so how do I create the interface?
    Thanks

    Hi,
    I am not sure if I understand your question correctly. The following NetWeaver documentation might be useful for you https://help.sap.com/saphelp_nw04s/helpdata/en/a1/40aac795a243cebdcff368491c659e/frameset.htm Check section Example: Calling Forms in an Application Program. You need to get a name of the corresponding FM using FM FP_FUNCTION_MODULE_NAME.
    Regards

  • Connect interface with XML File in jdeveloper

    Hello;
    i want to design a webservice that take an employee ID , and return all employee's data (like his name ,departement, phone,email....)
    i want to make interface and connect it with XML file wich has all employees data
    how can i connect the interface ( input text box and output button) with XML file (taking the Id and searching inside the file and getting the data out in table as output)
    i want to deploy it to get the WSDL file and URL to deploy it at application server to use it in webcenter>>>

    up 2 find an answer
    i want the right way to do it?

  • Is there a possibility to retreve Data from the OPC Server with the XML Interface

    Is there a possibility to connect a OPC/DA server with the help of the XML interface with Labview?
    I need to retrieve Data from a OPC Server running on Linux, so i got no Dcom System an I need to use XML. The server is running and with OPC client-tools i can access de different data. So now I want to visualize all Data
    that come from that server on Labview.
    1. Is it possible to realize that?
    2. Is a library or a demo vi available ?
    Regards
    Densel

    Hi Densel,
    Sure, you can use XML within LabVIEW, the question is which syntax do you use?
    Are you able to send the XML statements via TCP/IP?
    Regards, Christian

  • Retrieve data from BW with an XML interface

    Hello all,
    Is it possible to retrieve data from BW with an XML interface ? And if so, how can we do this ?
    Kind regards,
    Marc

    Thanks Edan,
      Can you please example as how to access the ODS object in the BW using ABAP?  Please note that we would initiate the call from another XAPP system and update the data into the CRM system.
      Also please provide an example as how the BAPI can acces the cube data in BW.
      I assume that we will be writing both the BAPI and the ABAP code( as an RFC)  in the BW sysyem and call those from the XAPPS to get data out of BW Cube and ODS respectively.
      Thanks
    Arunava

  • Generate Adobe Interactive Form with XML Schema-Based Interface

    Hi,
    I need to generate a adobe Interactive but with XML Schema-Based Interface, i have one example but with ABAP Dictionary-Based Interface.
    CALL FUNCTION 'FP_JOB_OPEN'
      CHANGING
        ie_outputparams       = fp_outputparams
    * EXCEPTIONS
    *   CANCEL                = 1
    *   USAGE_ERROR           = 2
    *   SYSTEM_ERROR          = 3
    *   INTERNAL_ERROR        = 4
    *   OTHERS                = 5
    CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
      EXPORTING
        i_name     = 'ZMMDM_CL'
      IMPORTING
        e_funcname = fm_name.
    But when i call the next function for print i need the docxml parameter and i don't know how to get it
    fm_name
    CALL FUNCTION fm_name
      EXPORTING
       /1BCDWB/DOCPARAMS        = fp_docparams
    *    /1bcdwb/docxml           =
    * IMPORTING
    *   /1BCDWB/FORMOUTPUT       =
    * EXCEPTIONS
    *   USAGE_ERROR              = 1
    *   SYSTEM_ERROR             = 2
    *   INTERNAL_ERROR           = 3
    *   OTHERS                   = 4

    1) this questions was asked many times before, you didn´t search for a second
    2) I am not aware of any standard solution
    3) custom solution: use XSLT transformation ID to get XML from the filled DDIC structure and use string operations to add the header and footer to create a valid XML.
    Regards Otto

  • Java interface with xml communication

    Hello everybody,
    For a project i need to make a java interface with xml communication.
    For example ; from 1 laptop I press on a java button and then i need to get a text message on the other laptop.
    The java interface is already created now the xml code for communication.
    I hope someone can help me how to start with the xml code.
    Are there any templates that i can use?

    I need to use XML for this, cause it is in the
    assignment.As far as communication is concerned, it doesn't matter that you are sending XML. You can send any kind of data. So first find out how to send data, then send data which is XML.
    I only want to know if its possible to send data/text
    from 1 laptop (windowsxp prof) to the other laptop
    (also windows xp prof).Provided the other laptop is running a server that can receive that data.
    Maybe its easier if I send data to a specific IP
    address?Provided there is a server running at that IP address that can receive that data. You can use an IP address to connect to a server but that has nothing to do with sending the data.
    Its important that the communication between 2 system
    is in XML language.XML is not a programming language. XML is a format for storing data. You can certainly send XML-formatted data between two computers.
    So i hope u have a solution for my problem.The solution would be for you to learn how communication between two computers works in the real world. If you have an assignment that says you have to make communication work, surely there was something taught to you before about how to do it?

  • XML Interface errors

    Help. I can't get the XML interface for authentication to work from a Java program. Yes I know there's another interface for use with Java but I can NOT use it due to some class conflicts. I am having the same problems I've seen reported before in this and other forums. But one one seems to reply with a solution. I'm willing to admit that it is probably something silly but I don't seem to be able to figure out what's wrong.
    I've tried sending two different XML strings to initialize the authentication request. For both I get an HTTP response code of
    500 on the client. In the webserver log one gives me the "No request handler for service" error message the other the "Premature end of file" error.
    What am I doing wrong?
    thanks,
    diane
    [code
    // host name replaced
    String url = "http://myhost/amserver/authservice";
    try {
    // premature end of file error
    String xmlCDATA = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?> " +
    " <RequestSet vers=\"1.0\" svcid=\"auth\" reqid=\"1\"> " +
    " <Request> <![CDATA[<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>" +
           "<AuthContext version=\"1.0\">" +
           "<Request authIdentifier=\"0\">" +
           "<NewAuthContext orgName=\"dc=east,dc=sun,dc=com\"></NewAuthContext>" +
           "</Request> </AuthContext>]]> </Request> </RequestSet>";
    // no request handler error
    String xmlReq = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>" +
    "<AuthContext version=\"1.0\">" +
    "<Request authIdentifier=\"0\">" +
    "<NewAuthContext orgName=\"dc=east,dc=sun,dc=com\"></NewAuthContext>" +
    "</Request> </AuthContext>";
    //String xmltext = xmlReq;
    String xmltext = xmlCDATA;
    URL urlTest = new URL(url);
    HttpURLConnection connection = (HttpURLConnection) urlTest.openConnection();
    connection.setDoInput(true);
    connection.setDoOutput(true);
    connection.setRequestMethod("POST");
    connection.setRequestProperty("Accept", "text/xml");
    connection.setRequestProperty("Content-Length", String.valueOf(xmltext.length()));
    connection.setRequestProperty("Content-Type", "text/xml; charset=\"UTF-8\"");
    connection.connect();
    OutputStreamWriter out = new OutputStreamWriter(connection.getOutputStream(),
    "UTF8");
    // Actually writing to local buffer - not posted to server yet
    out.write(xmltext);
    out.flush();
    // Actual post to server happens on this call
    InputStream is = connection.getInputStream();
    InputStreamReader isr = new InputStreamReader(is);
    BufferedReader br = new BufferedReader(isr);
    ]

    Thought I'd respond to my own post so no one else has to waste time on this.
    The problem was that I had a space between the Request and CDATA tags. Removing the space <Request>[CDATA fixed the premature end of file problem. I also removed other spaces between tags just in case.
    Below is an example of XML I used to get a valid response for the authentication service.
    diane
    [code]
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?><RequestSet vers="1.0" svcid="auth" reqid="1"><Request><![CDATA[<?xml version="1.0" encoding="UTF-8" standalone="yes"?><AuthContext version="1.0"><Request authIdentifier="0"><NewAuthContext orgName="dc=east,dc=sun,dc=com"></NewAuthContext></Request></AuthContext>]]></Request></RequestSet>"

  • Z39.50 XML interface

    Does anyone know if there are any canned or public PL/SQL z39.50 interface packages out there, specifically using Context Fulltext engine with XML?

    Thought I'd respond to my own post so no one else has to waste time on this.
    The problem was that I had a space between the Request and CDATA tags. Removing the space <Request>[CDATA fixed the premature end of file problem. I also removed other spaces between tags just in case.
    Below is an example of XML I used to get a valid response for the authentication service.
    diane
    [code]
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?><RequestSet vers="1.0" svcid="auth" reqid="1"><Request><![CDATA[<?xml version="1.0" encoding="UTF-8" standalone="yes"?><AuthContext version="1.0"><Request authIdentifier="0"><NewAuthContext orgName="dc=east,dc=sun,dc=com"></NewAuthContext></Request></AuthContext>]]></Request></RequestSet>"

  • ASR9K XML Interface

    I've been reading about the XML interface in IOS-XR and wondering what XML client is recommended to use.  I have not used XML language but could see how it could be very beneficial with the ASR9K platform.  All the guides I've read do a good job of explaining how to write the XML code but don't really say anything about how the code is pushed to the platform.  Again, I am new to XML and looking for some guidance.  Any feedback is greatly appreciated.
    Thank you,
    Shane

    Thought I'd respond to my own post so no one else has to waste time on this.
    The problem was that I had a space between the Request and CDATA tags. Removing the space <Request>[CDATA fixed the premature end of file problem. I also removed other spaces between tags just in case.
    Below is an example of XML I used to get a valid response for the authentication service.
    diane
    [code]
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?><RequestSet vers="1.0" svcid="auth" reqid="1"><Request><![CDATA[<?xml version="1.0" encoding="UTF-8" standalone="yes"?><AuthContext version="1.0"><Request authIdentifier="0"><NewAuthContext orgName="dc=east,dc=sun,dc=com"></NewAuthContext></Request></AuthContext>]]></Request></RequestSet>"

  • Org.xml.sax.SAXParseException with XML Report Publish

    Anyone see the following error in XML Report Publisher? This happened after I ran Employee W2 XML Interface and ran XML Report Publisher for the output of the PDF output.
    --XDOException
    java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at oracle.apps.xdo.common.xml.XSLT10gR1.invokeParse(XSLT10gR1.java:570)
         at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:235)
         at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:182)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1044)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:997)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:212)
         at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1665)
         at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:975)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5936)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3459)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3548)
         at oracle.apps.xdo.oa.cp.JCP4XMLPublisher.runProgram(JCP4XMLPublisher.java:684)
         at oracle.apps.fnd.cp.request.Run.main(Run.java:157)
    Caused by: org.xml.sax.SAXParseException: <Line 268, Column 6>: XML-20109: (Fatal Error) PI with the name 'xml' can occur only in the beginning of the document.
         at oracle.xdo.parser.v2.XMLError.flushErrorHandler(XMLError.java:441)
         at oracle.xdo.parser.v2.XMLError.flushErrors1(XMLError.java:303)
         at oracle.xdo.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:305)
         at oracle.xdo.parser.v2.XMLParser.parse(XMLParser.java:289)
         ... 17 more
    Thanks.

    We are going to user Employee W-2 PDF.

  • Creating a template in Financials for using with XML Publisher..

    to whom..
    I hope someone can help please. I'm trying this process for the first time so please bear with me..
    Ive got everything in place for producing PDF reports via XML Publisher through ORACLE Financials but I'm stuck on the last
    part.
    According to the notes (Publishing Concurrent Requests with XML Publisher - An Oracle White Paper Jan 2005) I've come
    across, I need to update the concurrent program definition with a default template (when you submit a request, its in the
    'upon completion' last section where theres an option to change or enter a template layout) yet this section is GREYED OUT.
    Now according to my notes, to create a template you..
    "Setting a Default Template....to select a default template in the Update Concurrent Program page available from the System Administration
    responsibility (Note that this field is available only from System Administration. It is not available from the System
    Administrator Forms interface)......."
    My query is, where is this 'Update Concurrent Program page'..?
    Thanks In Advance..
    Steven
    Edited by: user554089 on Sep 16, 2008 4:02 AM

    OK, so now I've found out how to 'default a template for EBS 11i' (System Administration > Concurrent > Programs - notice its Administration not Administrator)... but its unavailable.. in the the 'OnSite Setting' tab there was no box visible for me to enter a template filename. Does anybody know why this could be?
    thanks,
    Steven

Maybe you are looking for

  • How to build a button on click of which opens a list below it

    Hi, I have a requirement wherein onclick of button I want to open/close list/popup (which is displayed below button, just like in select list) and can select any item from list to do some action.  It is required urgent. Can anyone guide me please? Th

  • Com.sap.tc.cm.base.exception.BaseModelRuntimeException: No object for....

    Hi Experts, Iam using adaptive webservice model, for this when i run the application it shows the below exception, Connection IO Exception. Check nested exception for details. (Connection Exception; nested exception is: com.sap.tc.cm.base.exception.B

  • Imac screen dims and two browser windows flicker.

    Not sure how to explain this, but when I have two browser windows open, at random, they start to flicker and the whole screen gets dim. What can I do? Thanks

  • SharePoint Designer Workflow 2013 Issue

    Hi All, We have an issue with the SharePoint designer workflow with the below error message. "Something went wrong. To Try again, reload the page and then start the workflow" suggest... Arun Prakash

  • Create Columns in Template using Smartforms

    Hi Guyz, Im using Template in smartforms and create 2 or more columns..but the columns must be in horizontal order like this : COMPANY   DEPT   BASIC but the column appeared vertical like this : COMPANY DEPT BASIC Another question is what is the purp