Error when setting dynamically the target URL in receiver SOAP Adapter

Hi,
I'm setting dynamically (from the mapping) the target URL in the receiver SOAP adapter:
String url = "http://mosxd30:50000/XISOAPAdapter/MessageServlet?senderParty=&senderService=DUM&receiverParty=&receiverService=&interface=SI_OA_CustomInvoiceData&interfaceNamespace=urn:repsol.com:laboratory:firma";
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/SOAP", "TServerLocation");
conf.put(key, url);
The receiver adapter fails with:
"invalid content type for SOAP: TEXT/HTML; HTTP 401 Unauthorized"
Reading weblogs, etc, the most probable cause for this is a wrong target URL, but then what I did was to set it as a fixed URL in the C.Channel, and it worked, so the URL is fine.
In the communication channel, I'm using "Configure user authentication", with a user and password, and what I think it's happening is that if I use another different URL dynamically, the channel is ignoring the user authentication settings.
Any ideas?
Thanks

I forgot to say that I've checked the SAP note "FAQ Soap adapter", and it says:
Q: I get an authorization error "401 Unauthorized" from the adapter's servlet. What went wrong?
           A: The adapter's servlet is protected by default. You must use one of the user names assigned in security role xi_adapter_soap_message for component XISOAPAdapter. Please consult the documentation for Visual Administrator to view and change the security setting.
           The user authentication of the SOAP adapter is not part of the SOAP adapter but of the web container of the J2EE engine. The default authentication setting is defined in the web.xml descriptor file of the SOAP dapter web application. This setting may be modified from Visual Administrator with some restriction. Please refer to the security documentation for the J2EE engine.
           Please note that 710 onwards there is no Visual Administrator instead the Netweaver Administrator is to be used to assign the roles to the user to access the SOAP adater servlet.The user must be assigned one of the following roles SAP_XI_IS_SERV_USER, SAP_XI_APPL_SERV_USER, SAP_XI_DEVELOPER_J2EE, SAP_XI_ADMINISTRATOR_J2EE.
The target URL is a sender soap adapter (the result of one interface is sent to another one via soap adapter), and it's this one which is complaining because of the authentication I think. But I don't know why it's ignoring the user authentication flag I'm using.

Similar Messages

  • Target url for receiver soap adapter

    Hi everybody
    where will I get the target url to enter in the receiver soap adapter parameters? I got the link from wsdl  under "address location"..But when I open the link from the internet explorer I could see an empty  wsdl 
    <faultstring xml:lang="en">SRT: Wrong Content-Type and empty HTTP-Body received</faultstring>
    thanks
    Ramya

    Hi Ramya,
    When you try opening the URL using web browser, you are not sending any data and hence in response you get an empty message.
    But at the same time, the message shows you that the service corresponding to that URL is invoked, activated and running.
    Give the same URL in your receiver communication channel and try execcuting the scenario, as far as receiver URL is concerned, it should work.
    -Tanaya.

  • I have compiled a program for a target after I added a new vi from NI_AALPro.lvlib. The addition worked fine on my development computer but gave me errors when run on the target.

    I have compiled a program for a target after I added a new vi from NI_AALPro.lvlib. The addition worked fine on my development computer but gave me errors when run on the target.
    The box displayed:
    Missing subVI NI_AALBase.lvlib:1D Linear Evaluation.vi in VI NI_PtbyPt.lvlib:Linear Fit PtbyPt.vi
    Missing subVI NI_AALPro.lvlib:MSE.vi in VI NIPtbtPt.lvlib:Linear Fit PtbyPt.vi
    What do I need to do to bring the correct library into the transportable code?

    Hello,
    I was unable to reproduce the behavior that you saw.  I was able to deploy my application with the Linear Fit PtByPt without issues.
    Could you attach the smallest piece of code that reproduces this behavior so that I can test it as well?
    Justin Parker
    National Instruments
    Product Support Engineer

  • HT1677 In safari browser cookies is working fine. But when I add the browser url to the screen then the cookies concept is not working. In safari setting cookies is always open only. Can you please provide any information regarding to this?

    In safari browser cookies is working fine. But when I add the browser url to the screen then the cookies concept is not working. In safari setting cookies is always open only. Can you please provide any information regarding to this?

    Hello,
    '''Try Firefox Safe Mode''' to see if the problem goes away. [[Troubleshoot Firefox issues using Safe Mode|Firefox Safe Mode]] is a troubleshooting mode that turns off some settings and disables most add-ons (extensions and themes).
    ''(If you're using an added theme, switch to the Default theme.)''
    If Firefox is open, you can restart in Firefox Safe Mode from the Help menu by clicking on the '''Restart with Add-ons Disabled...''' menu item:<br>
    [[Image:FirefoxSafeMode|width=520]]<br><br>
    If Firefox is not running, you can start Firefox in Safe Mode as follows:
    * On Windows: Hold the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac: Hold the '''option''' key while starting Firefox.
    * On Linux: Quit Firefox, go to your Terminal and run ''firefox -safe-mode'' <br>(you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    [[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]] article to find the cause.
    ''To exit Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    When you figure out what's causing your issues, please let us know. It might help others with the same problem.
    Thank you.

  • Run time error when set filter on the request id in the output query.

    Hi all,
    I am getting a run time error when I select the request id and set filter on that and  when i am selecting all the request id it contains around 2lacs values in that If i cliked ok on that .
    It popped up a msg like this
    " Run time error 61706
    Insufficient memory to perform operation "

    User was educated not to select the entire data in the filter

  • Dynamic Webservice Target URL

    I am using Crystal Reports for Eclipse to serve up some reports for my web application. Currently, I am using JDBC datasources in which I am changing the datasource at runtime in a CrystalReportViewer where I also set some report parameters for every report that passes thru it. However, I am now switching from JDBC datasources as my data provider to webservices. The webservices work perfectly during design time. However, in my report, I have to tell it that the webservice is located at http://localhost/. When I go to deploy these reports to production servers, I need to dynamically change the target URL to something like http://myproductionserver/ at runtime. I know this needs to take place in my CrystalReportViewer, but I can't figure out how to do it there. Can someone point me in the direction I need to be going?
    Thanks in advance...

    Ok. I've been making a little bit of progress with this. I have added "replaceConnection" on my database controller and am changing the URLs there. However, when I do that, I get an invalid argument exception.
    Here is my replaceConnection code:
    private void replaceConnection(DatabaseController dbController) throws ReportSDKException
           ConnectionInfos connInfos = dbController.getConnectionInfos(null);
           for(IConnectionInfo connInfo : connInfos)
                PropertyBag pb = connInfo.getAttributes();
                String newQEServer = connInfo.getAttributes().getStringValue("PreQEServerName").replace("localhost", "BJRKQJ1-SHAW");
                String newServerName = connInfo.getAttributes().getStringValue("Server Name").replace("localhost", "BJRKQJ1-SHAW");
                String newHttpWebserviceUrl = connInfo.getAttributes().getStringValue("Http WebService URL").replace("localhost", "BJRKQJ1-SHAW");
                pb.put("PreQEServerName", newQEServer);
                pb.put("Server Name", newServerName);
                pb.put("Http WebService URL", newHttpWebserviceUrl);
                dbController.replaceConnection(connInfo, connInfo, null, DBOptions._ignoreCurrentTableQualifiers + DBOptions._doNotVerifyDB);
    Here is the exception stack trace:
    <<< ERROR - Unable to create parameter for type int32s >>><<< ERROR -  detected an exception: Invalid argument
         at com.crystaldecisions.reports.common.ExceptionFactory.a(Unknown Source)
         at com.businessobjects.reports.sdk.requesthandler.ParameterRequestHandler.a(Unknown Source)
         at com.businessobjects.reports.sdk.requesthandler.ParameterRequestHandler.do(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.do(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.a(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.call(Unknown Source)
         at com.crystaldecisions.reports.common.ThreadGuard.syncExecute(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.for(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.int(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.int(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)
         at com.businessobjects.sdk.erom.jrc.a.a(Unknown Source)
         at com.businessobjects.sdk.erom.jrc.a.execute(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.RemoteAgent$a.execute(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.CommunicationChannel.a(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.RemoteAgent.a(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.RemoteAgent.char(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.RemoteAgent.new(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.RemoteAgent.do(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.RemoteAgent.if(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.UndoUnitBase.performDo(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.UndoUnitBase.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.an.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ParameterFieldController.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ParameterFieldController.add(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.DatabaseController.for(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.DatabaseController.byte(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.DatabaseController.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.DatabaseController.replaceConnection(Unknown Source)
         at com.businessobjects.GenerateReport.replaceConnection(GenerateReport.java:322)
         at com.businessobjects.GenerateReport.createReportViewer(GenerateReport.java:213)
         at com.businessobjects.GenerateReport.generateReport(GenerateReport.java:77)
         at com.businessobjects.GenerateReport.doFilter(GenerateReport.java:57)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
         at java.lang.Thread.run(Unknown Source)
    >>>
    Sorry if the code gets displayed all out of whack. I can never get this thing to display correctly using the "code" with { } tags.

  • How to change dynamically the Webservice URL

    Hi,
    I added a webservice to my projet from a WSDL.
    As my application needs to fire this webservice towards different servers, I set dynamically the URL in my code. Here is the problem. When I point to the initial server (the one I got the WSDL from), everything is fine. But when I want to fire the webservice toward another machine, my code is not taken into consideration and my application still communicates with the initial server !
    I have something like:
            URL url = null;
            StuffService stuffService = new StuffService(RIOT_url, new QName("http://web.stuff.com/", "StuffService"));
            Stuff stuffPort = stuffService.getStuffPort();
            try {
                url = new URL("http://localhost:3337StuffService/Stuff?wsdl");
            } catch (MalformedURLException ex) {
                Logger.getLogger(Page1.class.getName()).log(Level.SEVERE, null, ex);
                  //USE THE WEBSERVICEIs there something wrong in my code ?
    Do I need to change some files in the project ?
    Thanks for your help

    This has nothing to do with JSF. Rather post webservice related questions at the webservice forum: [http://forum.java.sun.com/forum.jspa?forumID=331]
    Back to the actual problem, are you using a webservice proxy? A proxy should be able to pick up the URL and port the request.

  • Error: You cannot login because an error occurred while retrieving the login URL. (WW

    Situation is this.. was using 8.1.6 EE and Oracle Portal.. was able to get the Oracle Portal page up and after a while the application died.. this happened numerous times. Found in one of these forums that a bug existed (UTL_HTTP) and recommended going to 8.1.7 EE because of a patch. I migrated my 8.1.6 EE to 8.1.7 EE(made sure procedures & packages were valid). I'm able to bring up the Oracle Portal page but when I go to login I get this:
    Error: You cannot login because an error occurred while retrieving the login URL. (WWC-41441)
    Thoughts?

    Hi,
    I ran ssodatan again and got the following error:
    ERROR: Setting Login Server Partner App
    ORA-06508: PL/SQL: could not find program unit being called
    I then found out that the wwsec_sso_enabler_private in the SSO
    schema is invalid and this was causing the above error. I tried
    recompiling the package but got the following error:
    Errors for PACKAGE BODY WWSEC_SSO_ENABLER_PRIVATE:
    LINE/COL ERROR
    151/6 PL/SQL: SQL Statement ignored
    151/13 PLS-00320: the declaration of the type of this
    expression is incomplete or malformed
    151/20 PLS-00336: non-object-table "SECI" illegal in this
    context
    160/4 PL/SQL: SQL Statement ignored
    643/6 PL/SQL: SQL Statement ignored
    643/13 PLS-00320: the declaration of the type of this
    expression is incomplete or malformed
    643/20 PLS-00336: non-object-table "SECI" illegal in this
    context
    LINE/COL ERROR
    651/4 PL/SQL: SQL Statement ignored
    713/4 PL/SQL: SQL Statement ignored
    713/50 PLS-00382: expression is of wrong type
    745/3 PL/SQL: SQL Statement ignored
    746/10 PLS-00389: table, view or alias name "ENBCONFIG" not
    allowed in this context
    The same package in the Portal schema is valid. Will an
    export of this package from a working instance and an import into
    the above instance solve this problem?
    Thanks and Regards,
    Rupesh

  • Getting an error when setting up Apple ID on new Mac book air

    I am setting up new Mac book air and getting an error at the sign up with Apple ID. Says couldn't sign in because of a server error. Try signing in again

    I got this error when setting up a new iMac. I now beleive the reason was that I had already restored accounts and files from a Time Machine backup, and it then connected me to the Apple ID during the login. It is a flaw in the setup process that it didn't check for that and skip the Apple ID step.

  • Error when writing to the Internal Buffer-runtime error during querydisplay

    Hi
              I am working in BW 3.5. I am trying to run a query in BEx Analyzer but I am getting the following Error
    Error when writing in the Internal Buffer see OSS note 156957
    I tried for the note but I am not getting relevant information.
    Please let me know what to do.
    Thanks,
    Padma

    Hi,
    please apply the note 1614788. After note implementation, you need to set parameter RSR_HIER_THRESHOLD_EXPORTDB in table RSADMIN via report SAP_RSADMIN_MAINTAIN in transaction SE38.
    If you set this parameter to value 50.000 for example, all hierarchies with more than 50.000 nodes will be buffered in the database instead of using the export/import buffer.
    To find out the current size of a hierarchy, goto the hierarchy maintenance in transaction RSH1 and copy the hierarchie ID from the header data. With this key you can goto transaction SE16 and select table RSRHIEDIR_OLAP (Field HIEID is the hierarchy ID).
    It should resolved your issue.
    Thanks,
    Venkat

  • I found an error when I changed the contact information.

    I found an error when I changed the contact information.
    Yesterday, I imported all my contact information from my old phone to my brand new iPhone 4S at an AT&T store. Everything looked fine, but all the first names and the last names were switched. So, I had to correct all contact information manually again. It was so ridiculous.
    When I corrected the contact information, the names on my contact list were not changed immediately. For example, when the name of a person, ‘Doe John’, was changed to ‘John Doe’, the name on the contact list was not changed and remained as ‘Doe John’. After I rebooted my iPhone, the name on the list was changed correctly. Do I have to reboot every time when I switched the first name and the last name?
    My iPhone Information
    IPhone 4S White 16G
    Model: MC924LL
    iOS Version: 5.0.1 (9A405)

    Is ths display order for contacts set the way you want it?
    Settings > Mail,Contacts,Calendars > Display Order

  • You cannot login because an error occurred while retrieving the login URL.(WWC-41441)

    Hi,
    I have a Portal install with the following specifications:
    OS - Sun Solaris 2.6
    DB - 8.1.7.0.0
    iAS - 1.0.2.2
    Portal - 3.0.9.0.7
    It was working fine. Then the initjvm.sql that installs the JVM
    in the database was run. This was done as part of the steps
    required for enabling the UTL_SMTP. The script ran without any
    errors but after that Portal Login was failing with the following
    error:
    You cannot login because an error occurred while retrieving the
    login URL. (WWC-41441)
    and there were no Java classes present in the Portal or SSO
    schema. To overcome this error I reloaded the SSOHash classes to
    Portal and SSO schemas and ran ssodatan. The script ran
    successfully and I was able to login to the Portal after that.
    However, if I login as the administrator and try to create or
    edit users from the Administer tab of Portal, the same error
    occurs again:
    You cannot login because an error occurred while retrieving the
    login URL. (WWC-41441)
    I can programmatically add users using the Security APIs.
    The wwsec_enabler_config_info$ table of the Portal schema
    contains one row but the wwsec_enabler_config_info$ table of the
    SSO Schema contains no rows.
    This install of Portal is hosting a number of applications and as
    such running opca again is not an option.
    Any workaround for this?
    Thanks,
    Rupesh

    Hi,
    I ran ssodatan again and got the following error:
    ERROR: Setting Login Server Partner App
    ORA-06508: PL/SQL: could not find program unit being called
    I then found out that the wwsec_sso_enabler_private in the SSO
    schema is invalid and this was causing the above error. I tried
    recompiling the package but got the following error:
    Errors for PACKAGE BODY WWSEC_SSO_ENABLER_PRIVATE:
    LINE/COL ERROR
    151/6 PL/SQL: SQL Statement ignored
    151/13 PLS-00320: the declaration of the type of this
    expression is incomplete or malformed
    151/20 PLS-00336: non-object-table "SECI" illegal in this
    context
    160/4 PL/SQL: SQL Statement ignored
    643/6 PL/SQL: SQL Statement ignored
    643/13 PLS-00320: the declaration of the type of this
    expression is incomplete or malformed
    643/20 PLS-00336: non-object-table "SECI" illegal in this
    context
    LINE/COL ERROR
    651/4 PL/SQL: SQL Statement ignored
    713/4 PL/SQL: SQL Statement ignored
    713/50 PLS-00382: expression is of wrong type
    745/3 PL/SQL: SQL Statement ignored
    746/10 PLS-00389: table, view or alias name "ENBCONFIG" not
    allowed in this context
    The same package in the Portal schema is valid. Will an
    export of this package from a working instance and an import into
    the above instance solve this problem?
    Thanks and Regards,
    Rupesh

  • Error when I deployed the java EAR application in NWDS 7.1

    HI All,
    I got the  error when I deployed the java EAR application in NWDS 7.1 version..help me out...........................................
    com.sap.ide.eclipse.deployer.api.APIException: DeployException,cause=[ERROR CODE DPL.DCAPI.1023] AuthorizationException.
    Reason: , An error occurred during the deployer retrieval. Cause =[ERROR CODE DPL.DC.3151] The user LJ4PJW could not be authorized, because doesn't own the (com.sap.engine.interfaces.security.ServiceAccessPermission dc) permission for deploy controller. at com.sap.ide.eclipse.deployer.dc.ComponentManagerImpl.getDeployProcessor(ComponentManagerImpl.java:62)
    Thanks
    Costa

    The user LJ4PJW could not be authorized, *because doesn't own the* (com.sap.engine.interfaces.security.ServiceAccessPermission dc) *permission for deploy controller. a*t com.sap.ide.eclipse.deployer.dc.ComponentManagerImpl.getDeployProcessor(ComponentManagerImpl.java:62)
    The user is not have proper authorizations. Use some other administrators user id which has all admin roles and authorizations assigned and try to deploy.
    Regards,
    Ravi

  • Is there a way to remove the changes to the URL Bar, specifically the status information and the target URL?

    To begin, I utterly despise the changes to the URL Bar and the removal of the Status bar. In order to stay with the latest version of Firefox I am attempting to recreate the look and feel as best I can.
    I have already installed the Status-4-Evar extension. The only thing that remains is to remove the status information and the target URL from the bar.
    Are there any settings in about:config that will allow me to make these changes?
    EDIT: Status information can be removed by toggling. status4evar.statusInUrlBar. Still looking for a way to remove the target URL...

    This code in [http://kb.mozillazine.org/UserChrome.css userChrome.css] below the @namespace line seems to remove the links that appear on hover.
    <pre><nowiki>@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
    .urlbar-textbox-container {color: inherit !important;}
    .urlbar-textbox-container-children {opacity: 1 !important;}
    .urlbar-over-link-box {opacity: 0 !important;}
    </nowiki></pre>
    See http://kb.mozillazine.org/Editing_configuration#How_to_edit_configuration_files

  • Why is the number "1" when setting up the dial fat thickness did not change the font? Is it possible to adjust the font in the thick klavioture typing?

    Why is the number "1" when setting up the dial fat thickness did not change the font? Is it possible to adjust the font in the thick klavioture typing?

    paulcb wrote:
    Using the Bold Text Accessibility option does make the keypad numbers a little bolder.
    Yep - I was only looking at Text Size.
    But still, not sure what the deal is. The "1" is just as readable as any other number on the keyboard regardless.

Maybe you are looking for