Portal Service configuration (parameters)

Hi,
I have created a portal service, and it's functioning properly (i.e i can call it from an iView and to use its methods without any problem). Now I would like to configure (put) some parameters for the service from the portal - I go to "System Administration" -> "System Configuration" -> "Service Configuration", but i cannot see my service listed among the other services. Is there anything special i have to implement in the service, so that it's visible from that location, or maybe i have to put something in the portalapp.xml ? Any help is appreciated. Thanks.
Angel

Hi Angel,
> Any help is appreciated
Is it? Your last request didn't sound so in the end...
I would like to help you (it's quite easy here), but I would also like to be sure to have a sufficiently self-critical counterpart...
Regards
Detlev
PS: Come on, is it that hard to say "Ooops, my fault"?
PPS: Marion has been faster
Message was edited by: Detlev Beutner

Similar Messages

  • Portal service configuration

    I am writing a portal service and would like to use the System Administration --> System Configiguration --> Service Configuration to store some initialization parameters.  I was successful in putting values into the service config via the portalapp.xml file:
      <service-profile>
        <property name="myConfig" value="true"/>
      </service-profile>
    What I need to know is how to read those properties from my service.  I see an IServiceConfig interface that has a getProperty method, however I don't know how to implement/instantiate it.  Also, if this is the correct interface, do I need to add a SharingReference in the <application-config> of the portalapp.xml?
    Thanks,
    Ray

    Each service will have a init method and the serviceContext will be passed to you by the Framework.
    You can read the properties from the service context. Similar to this.
      * Generic init method of the service. Will be called by the portal runtime.
      * @param serviceContext
      public void init(IServiceContext serviceContext)
        String value = serviceContext.getServiceProfile().getProperty("myConfig");
    Thanks
    Ankur

  • How to create the Portal Service in Portal 7.3,

    Dear Experts,
    how to create the Portal Service in Portal 7.3, as we create in Portal 7.0 by creating the Portal Project in that we create Portal Service and we can start and stop in Portal Service configuration in System Administration
    Thanks,
    Sagar Pande

    Hi Sagar,
    Procedure
      1.  Open the SAP NetWeaver Administrator by either of the following methods:
           a. Use the URL to your AS Java (hostname:port) to access the AS Java home page and use the link to SAP NetWeaver Administrator.
           b. Alternatively, add nwa to the AS Java URL to access SAP NetWeaver Administrator directly. (hostname:port/nwa).
      2  Go to   Operations Management   Systems   and click the Start & Stop link.
        The Start & Stop: Java EE Instances window opens.
      3  Click the Java EE Application bar and select the relevant application in the Application List.
        The Portal Services pane displays the services associated with the selected application.
      4  Use the buttons Start Service or Stop Service.
    Refer to Portal 7.3 help
    http://help.sap.com/saphelp_nw73/helpdata/en/f6/ac978061ac4b24a87a1f821313c4fe/frameset.htm
    Br,
    Venky

  • How to Create Portal Service in Portal 7.3

    Dear Experts,
    how to create the Portal Service in Portal 7.3, as we create in Portal 7.0 by creating the Portal Project in that we create Portal Service and we can start and stop in Portal Service configuration in System Administration
    Thanks,
    Sagar Pande

    Hi Sagar,
    Procedure
      1.  Open the SAP NetWeaver Administrator by either of the following methods:
           a. Use the URL to your AS Java (hostname:port) to access the AS Java home page and use the link to SAP NetWeaver Administrator.
           b. Alternatively, add nwa to the AS Java URL to access SAP NetWeaver Administrator directly. (hostname:port/nwa).
      2  Go to   Operations Management   Systems   and click the Start & Stop link.
        The Start & Stop: Java EE Instances window opens.
      3  Click the Java EE Application bar and select the relevant application in the Application List.
        The Portal Services pane displays the services associated with the selected application.
      4  Use the buttons Start Service or Stop Service.
    Refer to Portal 7.3 help
    http://help.sap.com/saphelp_nw73/helpdata/en/f6/ac978061ac4b24a87a1f821313c4fe/frameset.htm
    Br,
    Venky

  • How to change parameters in amconsole for "Service Configuration"?

    Hello all,
    After Sun JES installation I'm changed few parameters in amconsole as amadmin.
    1. "Service Configuration" -> "Portal Desktop" -> "Authentication-less Portal Desktop Configuration "
    selected as "Disable"
    2. "Service Configuration" -> "Globalization Settings" -> "Charsets Supported by Each Locale"
    Add locale "locale=ru|charset=UTF-8;ISO-8859-1"
    Is it possible to do it from command line?
    I think it should be amadmin command...
    Thanks

    already resolved
    [http://forums.sun.com/thread.jspa?threadID=5355515&messageID=10550818]

  • Problem while starting Portal Service from service configuration

    While starting Portal service i am getting following error message:
    "Server xxxxx:Error in the listener class com.sap.ip.portal.admin.portalanywhere.QueryHandler during the process of handleTopic"
    Please help me to reolve this error
    Edited by: Pande Sagar on Jul 15, 2010 11:46 AM
    Edited by: Pande Sagar on Jul 15, 2010 11:49 AM

    Following is the PortalApp.xml file
    <?xml version="1.0" encoding="UTF-8"?>
    <application alias="sample">
      <application-config>
        <property name="ServicesReference" value="com.sap.portal.ivs.connectorservice,com.sap.portal.ivs.internalconnector"/>
      </application-config>
      <components/>
      <services>
        <service name="sample">
          <service-config>
            <property name="className" value="sample"/>
          </service-config>
          <service-profile>
            <property name="test" value="na"/>
          </service-profile>
        </service>
      </services>
    </application>
    sample.java file
    package samp;
      import com.sapportals.portal.prt.service.IServiceConfiguration;
    import com.sapportals.portal.prt.service.IServiceContext;
      public abstract class sample implements Isample{
      private IServiceContext mm_serviceContext;
         public void init(IServiceContext serviceContext)
         mm_serviceContext = serviceContext;
         public void afterInit()
      public void configure(IServiceConfiguration configuration)
         public void destroy()
      public void release()
    public IServiceContext getContext()
          return mm_serviceContext;
          public String getKey()
          return KEY;
    Isample Interface
    package samp;
    import com.sapportals.portal.prt.service.IService;
    public interface Isample extends IService
         public static final String KEY = "MySample.sample";
         public String hi();
    Edited by: Pande Sagar on Jul 19, 2010 2:04 PM
    Its getting deployed properly but from system administration >> system configuration >> service configuration >> from application >> administrate service >> List of services >> HERE ITS GIVING AN ERROR >> Error in the listener class com.sap.ip.portal.admin.portalanywhere.QueryHandler during the process of handleTopic
    Edited by: Pande Sagar on Jul 19, 2010 2:06 PM

  • Any API or Portal Service for configuration wizard in nwa?

    Hi All,
             Do you know is there any open API or portal service available for calling the configuration wizard under NWA-> Deloy and Change?
    Thanks

    Brad,
    I am trying to do bypass the login for a web template by programming the ZBEX web service with a logon and password and it is not working for me. If you are still using a solution like that, post a reply and I can ask specific questions.
    Thanks
    Vineet

  • Custom Portal Service not displayed under Service Configuration

    Hi All,
    I am working on EP 7.0 SP8.
    SAP Portal is not displaying any custom built Portal Services under Service Configuration tab.
    I checked with the permission, and I am having the required authorization for my service.
    I am not able to find any document on making the custom service available under Service Configutation to start/stop the service.
    Please let me know any reference docs on this.
    -Thanks,
    Pavan

    Hi Pavan,
    > working on EP 7.0 SP8
    Glad to hear that you are not stuck on EP5   No, really, that is older than old... Anyhow:
    > not displaying any custom built Portal Services under Service Configuration tab
    There services are only listed if they are configurable, i.e. if they have a service profile with at least one property (compare http://help.sap.com/saphelp_nw70ehp2/helpdata/en/df/e6b74253ffda11e10000000a155106/frameset.htm). Otherwise it makes less sense to restart a service (normally this is done after changing a service profile parameter).
    Hope it helps
    Detlev

  • Error during startup of portal service after SPS11

    Hi Guys,
    After installation of SPS11 to our 2004s portal system we have problem with startup of our Portal service.
    Before SPS11 we had SPS9 system and everything was working correctly.
    Our service is connecting to Database during its initialization.
    This is part of our code:
    Properties p = new Properties();
    p.put("java.naming.factory.initial", "com.sap.engine.services.jndi.InitialContextFactoryImpl");
    try
         Context ctx = new InitialContext(p);
         _ds = (DataSource)ctx.lookup(POOLNAME);
         Connection conn = _ds.getConnection();
         conn.close();
         LogWriter.traceInfo(LogWrapper.trace,"Connection established.");
    } catch (NamingException ex)
    The error is:
    #1.5#000802A2BF4A00580000038200003E3000042C1F016BDC9A#1174411586934#System.err#sap.com/irj#System.err#Guest#2####a813ff20d70611dbbcd7000802a2bf4a#SAPEngine_Application_Thread[impl:3]_27##0#0#Error##Plain###com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Object not found in lookup of SABMILLER.
         at com.sap.engine.services.jndi.implserver.ServerContextImpl.lookup(ServerContextImpl.java:649)
         at com.sap.engine.services.jndi.implclient.ClientContext.lookup(ClientContext.java:344)
         at com.sap.engine.services.jndi.implclient.OffsetClientContext.lookup(OffsetClientContext.java:254)
         at com.sap.engine.services.jndi.implclient.OffsetClientContext.lookup(OffsetClientContext.java:271)
         at javax.naming.InitialContext.lookup(InitialContext.java:347)
         at javax.naming.InitialContext.lookup(InitialContext.java:347)
         at cz.sap.statemanagement.StateLogRetriever.<init>(StateLogRetriever.java:73)
    The probleam appears only during startup of portal!
    If you deploy service on running portal it is started without any problems.
    We tried to apply note (Note 960199 - 2-Phase Init Mechanism for Portal Services is Deprecated) but without success.
    This is modification of our portalapps.xml as described in Note.
        <service name="StatemanagementLogService">
          <service-config>
            <property name="className" value="cz.sap.statemanagement.StatemanagementLogService"/>
            <property name="startup" value="true"/>
            <property name="twophaseinit" value="always"/>
          </service-config>
    Please could you help us with this problem?
    Anyone has an idea what is wrong?
    Thanks a lot
    Ondrej

    Hi Nirmal,
    thanks you for your quick response. This is what the installer returns when I use your suggested command:
    Mar 7, 2012 2:35:56 PM [Error]: The parameter jce_policy_zip in externally supplied configuration is invalid.
    I looked up the parameters for the STARTUP:
    rootdir [guiport] [httpport] [guistart] [guimode] [config] [sid] [instanceNr]
    Thus the jce_policy_zip is not a valid parameter.
    However, after deleting the file specified I could just run STARTUP again and this worked.
    Thanks
    Marcel
    Edited by: M. Rabe on Mar 7, 2012 2:57 PM

  • Portal Service from wsdl testing problem

    Hi all,I use Developer Studio to generate sap portal wsdl client,when I finished generating,I want to do test.But it throws the Exception like that
    java.lang.IllegalStateException: Not able to initialize Web Service configuration for service TPOStatusService#
    com.sapportals.portal.prt.service.soap.mapping.SpecializedRegistry.initSerializersXML(SpecializedRegistry.java:601)
    com.sapportals.portal.prt.service.soap.mapping.SpecializedRegistry.initXMLBased(SpecializedRegistry.java:477)
    com.sapportals.portal.prt.service.soap.SOAPServiceManager.getSpecializedRegistry(SOAPServiceManager.java:321)
    com.sapportals.portal.prt.service.soap.PRTSOAPCall.invokeMethod(PRTSOAPCall.java:181)
    com.ilog.pct.tpo.proxy.TPOService.getProblemInfo(TPOService.java:168     at com.ilog.pct.tpo.pages.KpiPage$KpiPageDynPage.doProcessAfterInput(KpiPage.java:48)
    I don't know what's the problem.Can anyone help me to solve this problem?
    The followings is my wsdl:
    <?xml version="1.0" encoding="UTF-8"?>
    <wsdl:definitions targetNamespace="http://ws.tpo.ilog.com" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://ws.tpo.ilog.com" xmlns:intf="http://ws.tpo.ilog.com" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <!--WSDL created by Apache Axis version: 1.3
    Built on Oct 05, 2005 (05:23:37 EDT)-->
    <wsdl:types>
      <schema elementFormDefault="qualified" targetNamespace="http://ws.tpo.ilog.com" xmlns="http://www.w3.org/2001/XMLSchema">
       <element name="getProblemInfo">
        <complexType>
         <sequence>
          <element name="name" type="xsd:string"/>
         </sequence>
        </complexType>
       </element>
       <element name="getProblemInfoResponse">
        <complexType>
         <sequence>
          <element name="getProblemInfoReturn" type="impl:ProblemInfo"/>
         </sequence>
        </complexType>
       </element>
       <simpleType name="ProcessStatus">
        <restriction base="xsd:string">
         <enumeration value="1"/>
         <enumeration value="2"/>
         <enumeration value="3"/>
        </restriction>
       </simpleType>
       <complexType name="Vehicle">
        <sequence>
         <element name="cost" type="xsd:double"/>
         <element name="count" type="xsd:int"/>
         <element name="fixcost" type="xsd:double"/>
         <element name="name" nillable="true" type="xsd:string"/>
        </sequence>
       </complexType>
       <complexType name="ArrayOfVehicle">
        <sequence>
         <element maxOccurs="unbounded" minOccurs="0" name="item" type="impl:Vehicle"/>
        </sequence>
       </complexType>
       <complexType name="ProblemInfo">
        <sequence>
         <element name="numbervehicles" type="xsd:int"/>
         <element name="numbervisit" type="xsd:int"/>
         <element name="processStatus" nillable="true" type="impl:ProcessStatus"/>
         <element name="shipvisit" type="xsd:int"/>
         <element name="total" type="xsd:double"/>
         <element name="vehicle" nillable="true" type="impl:ArrayOfVehicle"/>
        </sequence>
       </complexType>
       <complexType name="SvcException">
        <sequence>
         <element name="errorMsg" nillable="true" type="xsd:string"/>
        </sequence>
       </complexType>
       <element name="fault" type="impl:SvcException"/>
      </schema>
    </wsdl:types>
       <wsdl:message name="getProblemInfoResponse">
          <wsdl:part element="impl:getProblemInfoResponse" name="parameters"/>
       </wsdl:message>
       <wsdl:message name="getProblemInfoRequest">
          <wsdl:part element="impl:getProblemInfo" name="parameters"/>
       </wsdl:message>
       <wsdl:message name="SvcException">
          <wsdl:part element="impl:fault" name="fault"/>
       </wsdl:message>
       <wsdl:portType name="TPOProcessSvc">
          <wsdl:operation name="getProblemInfo">
             <wsdl:input message="impl:getProblemInfoRequest" name="getProblemInfoRequest"/>
             <wsdl:output message="impl:getProblemInfoResponse" name="getProblemInfoResponse"/>
             <wsdl:fault message="impl:SvcException" name="SvcException"/>
          </wsdl:operation>
       </wsdl:portType>
       <wsdl:binding name="TPOProcessSvcSoapBinding" type="impl:TPOProcessSvc">
          <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
          <wsdl:operation name="getProblemInfo">
             <wsdlsoap:operation soapAction=""/>
             <wsdl:input name="getProblemInfoRequest">
                <wsdlsoap:body use="literal"/>
             </wsdl:input>
             <wsdl:output name="getProblemInfoResponse">
                <wsdlsoap:body use="literal"/>
             </wsdl:output>
             <wsdl:fault name="SvcException">
                <wsdlsoap:fault name="SvcException" use="literal"/>
             </wsdl:fault>
          </wsdl:operation>
       </wsdl:binding>
       <wsdl:service name="TPOProcessSvcService">
          <wsdl:port binding="impl:TPOProcessSvcSoapBinding" name="TPOProcessSvc">
             <wsdlsoap:address location="http://localhost:8080/tpo-web/services/TPOProcessSvc"/>
          </wsdl:port>
       </wsdl:service>
    </wsdl:definitions>

    Your installation for SAP JCO is not correct. Download the SAP JCO from service.sap.com and install it on your computer as the installation guide says.
       The above error is due to missing file librfc32.dll. If you are using windows operating system. Put the dll files in windows/system32 directory. thank you.
    Read the following thread. this should definitely solve your problem.
    https://forums.sdn.sap.com/profile.jspa?userID=608260
    PS: reward points if this hepls. thank you
    Message was edited by: Prakash  Singh

  • Customize portal service parameter

    Hi all,
      I just create a portal service within a portal application, and this service has several parameters declared in <service-profile> element in protalapp.xml. Now I would like to know how to change the parameter value after deployment. I tried portal system administration and NW config tool but without lucky I didn't find out where to go. Any information is welcome. Thanks!
    B.R

    Hi Lee,
    you are running the CE-Portal (7.1). A lot of things have changed there. But I found it. You have to configure your service with the nwa. Go to:
    hostname:port/nwa/app-modules
    There you find a list of all services. You can set a filter to find your service. For more information have a look here:
    http://help.sap.com/saphelp_nwce10/helpdata/en/df/9f20b403f541efa0450dd38107d319/frameset.htm
    Hope this helps. Regards,
    Norbert

  • How to log exceptions and imp logging info in Portal Service via ILogger?

    Hi Experts,
    I m trying to use ILogger for my application.
    Information about my application:
    I have created a Portal Service and exposed it as a Web Service which is deployed as a PAR file on to the SAP J2EE Engine.
    I need to use the Logging facility of ILogger in this Portal Service.
    I have written the following code in the Init() function of the Portal Service
    public void init(IServiceContext serviceContext)
           mm_logger = serviceContext.getLogger("com.persistent.pankaj");
    I have put the logger.xml in the logger folder of PORTAL-INF
    my logger.xml is as follows:
    <Server>
    <Logger name="testLog" loggerInterface="com.sapportals.portal.prt.logger.ILogger" locationName="com.sap.portal.testLog" pattern="%d # %20t %15s %m #" isActive="true">
    <LoggerClass className="com.sapportals.portal.prt.logger.SimpleFileLogger" level="INFO">
    <param filename="logs/com.persistent.pankaj.log" append="true">
    </param>
    </LoggerClass>
    </Logger>
    </Server>
    On deploying my portal service as a web service
    I m unable to get the logs.
    I even dont know where will i get the log file, means wat is the exact location where i can check my log results
    I m a newbie for this
    Please help me out
    Help will be rewarded n appreciated
    -pankaj

    Hi Pankaj,
    In your init method try this code to create the logger:
    ILogger logger = PortalRuntime.getLogger("testLog");
    In your logger.xml the logger name was testLog and not com.persistent.pankaj so while creating logger you should use testLog in the above code.
    By default all the logs are written to defaultTrace.log files, to check them read this:
    Portal Runtime Logs
    If you want to log in a seperate logfile then you should set a seperate log destination, which is not recommended on productive systems due to performance problems.
    Also read these to know how to set seperate log destinations:
    Netweaver Portal Log Configuration & Viewing (Part 3)
    Netweaver Portal Log Configuration & Viewing (Part 1)
    Netweaver Portal Log Configuration & Viewing (Part 2)
    Regards,
    Praveen Gudapati

  • Error while loading service Document Services Configuration (NW 7.0 SP13)

    Hello,
    I'm in the process of configuring the Adobe Document Services. Now I've received the Certificate + Credentials from SAP which I requested as described in Note 736902. I try to install them according to the Adobe Document Services Configuration Guide which I've downloaded from https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/90355269-4d89-2a10-0bb9-f388704f1dcd. [original link is broken] I've copied the pfx File to /usr/sap/<SAPSID>/SYS/global/AdobeDocumentServices/TrustManagerService/trust/credentials.
    Then I started Visual Administrator and opened Server <x> &#8594; Services &#8594; Document Services Configuration. Here I get this Error returned:
    Error while loading service Document Services Configuration
    com.sap.engine.services.adminadapter.exception.AdminException: com/adobe/ads/service/configuration/swing/CredentialTabUI
    Does anyone has a hint how I can resolve this problem?
    Regards
    Gregor

    Hello,
    I solved this problem by restarting J2EE and the Server.
    Regards
    Gregor

  • REST API: Create Deployment throwing error BadRequest (The specified configuration settings for Settings are invalid. Verify that the service configuration file is a valid XML file, and that role instance counts are specified as positive integers.)

    Hi All,
    We are trying to access the Create Deployment method stated below
    http://msdn.microsoft.com/en-us/library/windowsazure/ee460813
    We have uploaded the Package in the blob and browsing the configuration file. We have checked trying to upload manually the package and config file in Azure portal and its working
    fine.
    Below is the code we have written for creating deployment where "AzureEcoystemCloudService" is our cloud service name where we want to deploy our package. I have also highlighted the XML creation
    part.
    byte[] bytes =
    new byte[fupldConfig.PostedFile.ContentLength + 1];
                fupldConfig.PostedFile.InputStream.Read(bytes, 0, bytes.Length);
    string a = Encoding.UTF8.GetString(bytes, 0, bytes.Length);
    string base64ConfigurationFile = a.ToBase64();
    X509Certificate2 certificate =
    CertificateUtility.GetStoreCertificate(ConfigurationManager.AppSettings["thumbprint"].ToString());
    HostedService.CreateNewDeployment(certificate,
    ConfigurationManager.AppSettings["SubscriptionId"].ToString(),
    "2012-03-01", "AzureEcoystemCloudService", Infosys.AzureEcosystem.Entities.Enums.DeploymentSlot.staging,
    "AzureEcoystemDeployment",
    "http://shubhendustorage.blob.core.windows.net/shubhendustorage/Infosys.AzureEcoystem.Web.cspkg",
    "AzureEcoystemDeployment", base64ConfigurationFile,
    true, false);   
    <summary>
    /// </summary>
    /// <param name="certificate"></param>
    /// <param name="subscriptionId"></param>
    /// <param name="version"></param>
    /// <param name="serviceName"></param>
    /// <param name="deploymentSlot"></param>
    /// <param name="name"></param>
    /// <param name="packageUrl"></param>
    /// <param name="label"></param>
    /// <param name="base64Configuration"></param>
    /// <param name="startDeployment"></param>
    /// <param name="treatWarningsAsError"></param>
    public static
    void CreateNewDeployment(X509Certificate2 certificate,
    string subscriptionId,
    string version, string serviceName, Infosys.AzureEcosystem.Entities.Enums.DeploymentSlot deploymentSlot,
    string name, string packageUrl,
    string label, string base64Configuration,
    bool startDeployment, bool treatWarningsAsError)
    Uri uri = new
    Uri(String.Format(Constants.CreateDeploymentUrlTemplate, subscriptionId, serviceName, deploymentSlot.ToString()));
    XNamespace wa = Constants.xmlNamespace;
    XDocument requestBody =
    new XDocument();
    String base64ConfigurationFile = base64Configuration;
    String base64Label = label.ToBase64();
    XElement xName = new
    XElement(wa + "Name", name);
    XElement xPackageUrl =
    new XElement(wa +
    "PackageUrl", packageUrl);
    XElement xLabel = new
    XElement(wa + "Label", base64Label);
    XElement xConfiguration =
    new XElement(wa +
    "Configuration", base64ConfigurationFile);
    XElement xStartDeployment =
    new XElement(wa +
    "StartDeployment", startDeployment.ToString().ToLower());
    XElement xTreatWarningsAsError =
    new XElement(wa +
    "TreatWarningsAsError", treatWarningsAsError.ToString().ToLower());
    XElement createDeployment =
    new XElement(wa +
    "CreateDeployment");
                createDeployment.Add(xName);
                createDeployment.Add(xPackageUrl);
                createDeployment.Add(xLabel);
                createDeployment.Add(xConfiguration);
                createDeployment.Add(xStartDeployment);
                createDeployment.Add(xTreatWarningsAsError);
                requestBody.Add(createDeployment);
                requestBody.Declaration =
    new XDeclaration("1.0",
    "UTF-8", "no");
    XDocument responseBody;
    RestApiUtility.InvokeRequest(
                    uri, Infosys.AzureEcosystem.Entities.Enums.RequestMethod.POST.ToString(),
    HttpStatusCode.Accepted, requestBody, certificate, version,
    out responseBody);
    <summary>
    /// A helper function to invoke a Service Management REST API operation.
    /// Throws an ApplicationException on unexpected status code results.
    /// </summary>
    /// <param name="uri">The URI of the operation to invoke using a web request.</param>
    /// <param name="method">The method of the web request, GET, PUT, POST, or DELETE.</param>
    /// <param name="expectedCode">The expected status code.</param>
    /// <param name="requestBody">The XML body to send with the web request. Use null to send no request body.</param>
    /// <param name="responseBody">The XML body returned by the request, if any.</param>
    /// <returns>The requestId returned by the operation.</returns>
    public static
    string InvokeRequest(
    Uri uri,
    string method,
    HttpStatusCode expectedCode,
    XDocument requestBody,
    X509Certificate2 certificate,
    string version,
    out XDocument responseBody)
                responseBody =
    null;
    string requestId = String.Empty;
    HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(uri);
                request.Method = method;
                request.Headers.Add("x-ms-Version", version);
                request.ClientCertificates.Add(certificate);
                request.ContentType =
    "application/xml";
    if (requestBody != null)
    using (Stream requestStream = request.GetRequestStream())
    using (StreamWriter streamWriter =
    new StreamWriter(
                            requestStream, System.Text.UTF8Encoding.UTF8))
                            requestBody.Save(streamWriter,
    SaveOptions.DisableFormatting);
    HttpWebResponse response;
    HttpStatusCode statusCode =
    HttpStatusCode.Unused;
    try
    response = (HttpWebResponse)request.GetResponse();
    catch (WebException ex)
    // GetResponse throws a WebException for 4XX and 5XX status codes
                    response = (HttpWebResponse)ex.Response;
    try
                    statusCode = response.StatusCode;
    if (response.ContentLength > 0)
    using (XmlReader reader =
    XmlReader.Create(response.GetResponseStream()))
                            responseBody =
    XDocument.Load(reader);
    if (response.Headers !=
    null)
                        requestId = response.Headers["x-ms-request-id"];
    finally
                    response.Close();
    if (!statusCode.Equals(expectedCode))
    throw new
    ApplicationException(string.Format(
    "Call to {0} returned an error:{1}Status Code: {2} ({3}):{1}{4}",
                        uri.ToString(),
    Environment.NewLine,
                        (int)statusCode,
                        statusCode,
                        responseBody.ToString(SaveOptions.OmitDuplicateNamespaces)));
    return requestId;
    But every time we are getting the below error from the line
     response = (HttpWebResponse)request.GetResponse();
    <Error xmlns="http://schemas.microsoft.com/windowsazure" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
      <Code>BadRequest</Code>
      <Message>The specified configuration settings for Settings are invalid. Verify that the service configuration file is a valid XML file, and that role instance counts are specified as positive integers.</Message>
    </Error>
     Any help is appreciated.
    Thanks,
    Shubhendu

    Please find the request XML I have found it in debug mode
    <CreateDeployment xmlns="http://schemas.microsoft.com/windowsazure">
      <Name>742d0a5e-2a5d-4bd0-b4ac-dc9fa0d69610</Name>
      <PackageUrl>http://shubhendustorage.blob.core.windows.net/shubhendustorage/WindowsAzure1.cspkg</PackageUrl>
      <Label>QXp1cmVFY295c3RlbURlcGxveW1lbnQ=</Label>
      <Configuration>77u/PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0NCiAgKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKg0KDQogIFRoaXMgZmlsZSB3YXMgZ2VuZXJhdGVkIGJ5IGEgdG9vbCBmcm9tIHRoZSBwcm9qZWN0IGZpbGU6IFNlcnZpY2VDb25maWd1cmF0aW9uLkNsb3VkLmNzY2ZnDQoNCiAgQ2hhbmdlcyB0byB0aGlzIGZpbGUgbWF5IGNhdXNlIGluY29ycmVjdCBiZWhhdmlvciBhbmQgd2lsbCBiZSBsb3N0IGlmIHRoZSBmaWxlIGlzIHJlZ2VuZXJhdGVkLg0KDQogICoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioNCi0tPg0KPFNlcnZpY2VDb25maWd1cmF0aW9uIHNlcnZpY2VOYW1lPSJXaW5kb3dzQXp1cmUxIiB4bWxucz0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9TZXJ2aWNlSG9zdGluZy8yMDA4LzEwL1NlcnZpY2VDb25maWd1cmF0aW9uIiBvc0ZhbWlseT0iMSIgb3NWZXJzaW9uPSIqIiBzY2hlbWFWZXJzaW9uPSIyMDEyLTA1LjEuNyI+DQogIDxSb2xlIG5hbWU9IldlYlJvbGUxIj4NCiAgICA8SW5zdGFuY2VzIGNvdW50PSIyIiAvPg0KICAgIDxDb25maWd1cmF0aW9uU2V0dGluZ3M+DQogICAgICA8U2V0dGluZyBuYW1lPSJNaWNyb3NvZnQuV2luZG93c0F6dXJlLlBsdWdpbnMuRGlhZ25vc3RpY3MuQ29ubmVjdGlvblN0cmluZyIgdmFsdWU9IkRlZmF1bHRFbmRwb2ludHNQcm90b2NvbD1odHRwcztBY2NvdW50TmFtZT1zaHViaGVuZHVzdG9yYWdlO0FjY291bnRLZXk9WHIzZ3o2aUxFSkdMRHJBd1dTV3VIaUt3UklXbkFrYWo0MkFEcU5saGRKTTJwUnhnSzl4TWZEcTQ1ZHI3aDJXWUYvYUxObENnZ0FiZnhONWVBZ2lTWGc9PSIgLz4NCiAgICA8L0NvbmZpZ3VyYXRpb25TZXR0aW5ncz4NCiAgPC9Sb2xlPg0KPC9TZXJ2aWNlQ29uZmlndXJhdGlvbj4=</Configuration>
      <StartDeployment>true</StartDeployment>
      <TreatWarningsAsError>false</TreatWarningsAsError>
    </CreateDeployment>
    Shubhendu G

  • Service Registry in Web Service Configuration

    Hi
    I have a unique problem
    I am using NWDS
    SAP NetWeaver Developer Studio
    SAP Enhancement Package 1 for SAP NetWeaver Developer Studio 7.1 SP04 PAT0000
    Build id: 200911281443
    In NWDS when I go to Windows --> Preferences --> Destination Configuration --> Web Service Configuration --> and say CREATE in the Destination Type I can not see the option of Service Registry I can only see the option of WSDL and WSIL
    and in the following doc
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e058a805-68b2-2b10-6a8b-fc570f1c37d1?quicklink=index&overridelayout=true
    How to Browse an Enterprise Services Registry in Visual Composer.pdf
    Page 13 they have shown a screenshot where it shows the Destination Type as Service Registry
    Can anyone tell me please how can I get the option of having Service Registry in Web Service Configuration
    I have also installed CE 7.1 EHP1 preview provided by SDN
    I know its a unique problem but if someone can throw light on this it will be very helpful to all those who want to work on Enterprise Service Repository
    Regards
    JM

    Hi John,
    I think the screenshot is wrong.
    You can use WSIL to configure the backend system.
    The WSIL url for ABAP systems is http://[host]:[port]/ sap/bc/srt/wsil?sap-client=[client_no]
    Regards,
    Christian

Maybe you are looking for

  • How to find out which object has a specific attribute value

    Hi all, which is the easiest way to check in a collection of objects which object has an attribute with a specific value? i.e. I have n objects of classA and they all have an attribute "String value;". How can I check which object has that attribute

  • URGENT HELP WITH BLACKBERRY ID!

    Hello,  I have a persistent problem with my BlackBerry ID. When I registered I stupidly entered my email address without the number in it, so it was incorrect. Unfortunately, this is the only email address the phone recognizes, so when I type in my a

  • How to get notifications on my home and looked screen?

    I'm trying to get my sms and may messenger messages to be shown on my home screen like a preview. I know that there is a small icon that is shown on the left corner but this isent sofisient and I'm loosing impotent sms and messages. So what do I do?

  • PeopleSoft - Record to report and procure to pay

    Hi all, I've been working with Oracle EBS all my carear and know i've been required to change my skill to PeopleSoft so I'm a begginer at PeopleSoft. In one month I will be involved in a PeopleSoft project where "procure to pay" and "record to report

  • Serious problem using frameworks!!!

    Hi! I am using WAF framework... I have to do something like this.... a screen which supports Add,Delete,Copy functionality.... the details are shown row by row.... so When I hit the Add or Delete or Copy buttons once... a row is added or deleted or c