Webservice request namespace

Hi there...
How can i put a namespace in my request xml in flex. So, my
going data is:
<clientRequestwithReturn>
<MoneyTransferRequest>
<requestChannel>01</requestChannel>
<fromAccountNo>0008830006000007</fromAccountNo>
</MoneyTransferRequest>
</clientRequestwithReturn>
But i need to send :
<xxx:clientRequestwithReturn xmlns:open="
http://www.xxxxx.org/">
<yyy:MoneyTransferRequest xmlns:mon="
http://www.yyyyy.com/">
<requestChannel>01</requestChannel>
<fromAccountNo>0008830006000007</fromAccountNo>
</mon:MoneyTransferRequest>
</open:clientRequestwithReturn>
So i need to put namespace info to my request object. How can
i do it?

I have the same problem. I am trying to connect to a webservice running on IBM websphere but it doesn't accept the xml in my request. It appears to be the same namespace issue.
Did you ever find a solution for this?
Is it a valid webservice call if you omit the namespace for an element or is this a bug in the Adaptive WS implementation?
Web Dynpro web service model generated request:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Header>
<sapsess:Session xmlns:sapsess="http://www.sap.com/webas/630/soap/features/session/">
<enableSession>true</enableSession>
</sapsess:Session>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
look between these lines -
<ns1:tamKontrolleraKontoLastAnrop xmlns:ns1="http://schemas.fora.se/modell/tam/1.0/TAM_Data">
<AnvandarNamn>30039647</AnvandarNamn>
</ns1:tamKontrolleraKontoLastAnrop>
look between these lines -
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
As you can see the tag
<AnvandarNamn>30039647</AnvandarNamn>
is missing a namespace.
It should be
<ns1:AnvandarNamn>30039647</ns1:AnvandarNamn>
Using a third part tool called Soapui i generate this request that works:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tam="http://schemas.fora.se/modell/tam/1.0/TAM_Data">
   <soapenv:Header/>
   <soapenv:Body>
      <tam:tamKontrolleraKontoLastAnrop>
         <tam:AnvandarNamn>30039647</tam:AnvandarNamn>
      </tam:tamKontrolleraKontoLastAnrop>
   </soapenv:Body>
</soapenv:Envelope>

Similar Messages

  • Trace a webservice request to a remote server

    Hi!
    I'm looking for a way to trace an outgoing webservice request and its response with WebAS 7.0 (Java only). There is plenty of information available to trace requests to the WebAS itself, but I couldn't find anything if the target system is remote and the WebAS is only the client.
    At the moment, I'm working on a StandaloneClientProxy that failes to request a Webservice, as the returned content type is text/html. All I want is to see is what exactly is returned by the service (login page, error page, ...).
    Best regards,
    Frank

    Hello!
    Maybe it would help using the wsnavigator-Test-Tool? There you can see the returned SOAP. It can be fount under <host>:50000/wsnavigator on web as.
    Otherwise there are some proprietary tools for distributed systems like:
    Introscope (Full version - not in read only mode like it is offered in the SAP licence)
    Dynatrace
    There you can monitor connections over the whole network.

  • Set cookie in webservice request

    Hi,
    Is there a way to set a cookie in a webservice request or include the HttpCookie in the service call ? Basically I am using Axis on client side to call a .NET webservice on a remote server and need to pass user data to the service in a cookie.
    Thanks
    NK

    Hi Santhiyaraman,
    Webview control is in windows phone 8.1 runtime app, in windows phone 8 is webbrowser control.
    Webbrowser control does not provide some properties or methods to add custom cookie, but we can do this using the javascript. Code snippet looks like the following.
    private void setCookie(string name, string value, string path = "", string domain = "", bool isSecure=false, string expires = "")
    var sb = new StringBuilder();
    sb.AppendFormat("document.cookie = '{0}=\" + escape(\"{1}\")", name, value);
    if (!String.IsNullOrEmpty(expires))
    sb.AppendFormat(";expires=\"{0}\"", expires); // should be a GMTString
    if (!String.IsNullOrEmpty(path))
    sb.AppendFormat(";path=\"{0}\"", path);
    if (!String.IsNullOrEmpty(domain))
    sb.AppendFormat(";domain=\"{0}\"", domain);
    if (isSecure)
    sb.Append(";secure'");
    var cookieJs = sb.ToString();
    Debug.WriteLine(cookieJs);
    webBrowser.InvokeScript(cookieJs);
    You can find more information about it from
    http://stackoverflow.com/questions/13287409/windows-phone-webbrowser-set-cookies.
    Please try and let me know the result.
    Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • XML Namespace in WebService Request/Response

    Hi all,
    I have a question regarding xml namespace usage in wsdl and the corresponding request/response messages.
    I have already browsed quite some articles about xml namespaces as well as some forum threads, but I am still not sure.
    I have the following part of a wsdl document (generated by Integration Directory), defining a targetnamespace.
    u2026
    <wsdl:types>
        <xsd:schema targetNamespace="http://www.dorma.com/sap/xi/finance"
                             xmlns="http://www.dorma.com/sap/xi/finance"
                             xmlns:xsd="http://www.w3.org/2001/XMLSchema">
            <xsd:element name="DebtorGetDetailResponse" type="Z_BAPI_DEBTOR_GETDETAIL_Response"></xsd:element>
            u2026
            <xsd:complexType name="Z_BAPI_DEBTOR_GETDETAIL_Response">
                <xsd:sequence>
                    <xsd:element name="DEBITOR_COMPANY_DETAIL" type="BAPI1007_5" minOccurs="0">
                    </xsd:element> u2026
                </xsd:sequence>
            </xsd:complexType>
            u2026
        </xsd:schema>
        u2026
    </wsdl:types>
    u2026
    In my understanding, all types defined in the schema section of a wsdl document will be in the targetnamespace, if defined.
    Therefore the element DEBITOR_COMPANY_DETAIL would be in the namesapce
    http://www.dorma.com/sap/xi/finance
    However, the ABAP proxy generates a response message like follows,
    where only the root element is in this namespace and the child elements are in the global namespace:
    <?xml version="1.0" encoding="utf-8"?>
    <ns1:DebtorGetDetailResponse xmlns:ns1="http://www.dorma.com/sap/xi/finance"
                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <DEBITOR_COMPANY_DETAIL>
            u2026
        </DEBITOR_COMPANY_DETAIL>
        u2026
    </ns1:DebtorGetDetailResponse>
    Do I have a wrong understand of the wsdl (xml schema) or is this an erroneous behavior?
    The problem is that some 3rd-party software web service module does not accept
    the response message as not complient with the respective wsdl document.
    Any input is appreciated.
    Thanks
    Hans
    Edited by: Hans-Jürgen Schwippert on Oct 1, 2008 12:02 PM

    I have the same problem. I am trying to connect to a webservice running on IBM websphere but it doesn't accept the xml in my request. It appears to be the same namespace issue.
    Did you ever find a solution for this?
    Is it a valid webservice call if you omit the namespace for an element or is this a bug in the Adaptive WS implementation?
    Web Dynpro web service model generated request:
    <?xml version="1.0" encoding="UTF-8"?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <SOAP-ENV:Header>
    <sapsess:Session xmlns:sapsess="http://www.sap.com/webas/630/soap/features/session/">
    <enableSession>true</enableSession>
    </sapsess:Session>
    </SOAP-ENV:Header>
    <SOAP-ENV:Body>
    look between these lines -
    <ns1:tamKontrolleraKontoLastAnrop xmlns:ns1="http://schemas.fora.se/modell/tam/1.0/TAM_Data">
    <AnvandarNamn>30039647</AnvandarNamn>
    </ns1:tamKontrolleraKontoLastAnrop>
    look between these lines -
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    As you can see the tag
    <AnvandarNamn>30039647</AnvandarNamn>
    is missing a namespace.
    It should be
    <ns1:AnvandarNamn>30039647</ns1:AnvandarNamn>
    Using a third part tool called Soapui i generate this request that works:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tam="http://schemas.fora.se/modell/tam/1.0/TAM_Data">
       <soapenv:Header/>
       <soapenv:Body>
          <tam:tamKontrolleraKontoLastAnrop>
             <tam:AnvandarNamn>30039647</tam:AnvandarNamn>
          </tam:tamKontrolleraKontoLastAnrop>
       </soapenv:Body>
    </soapenv:Envelope>

  • ODI-Webservice Invocation- Namespace missing in BPEL

    Hi,
    I have installed ODI (10.1.3.4).While trying to invoke a webservice(simple BPEL process) by giving the wsdl url, and giving the inputs and executing it, the request to the webservice(BPEL process) reaches without the namespace spacified but for the root element. Could anyone suggest a solution to this missing namespace during webservice invocation in ODI
    Thanks in advance.
    Regards,
    Praveen

    Were you able to find any fix for this issue. We are having a major show stopper because of this. Your help will be appreciated. Thank you.

  • Help with webservice request

    I am trying to use an internal WSDL in which some of the
    attributes have a . in the name. For example"
    <xsd:attribute name="DT.RCVD" use="optional">
    <xsd:simpleType>
    <xsd:restriction base ="xsd:string">
    <xsd:maxLength value = "8" />
    <xsd:minLength value = "8" />
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:attribute>
    I can't seem to use this in the request section as it throws
    an error in compiling.
    Does anyone know a way to handle these types of WSDL's? I
    have used them before and everything works great as long as there
    isn't a dot(.) in the attribute name.
    Thanks.
    Matt

    "TransoniqHacker" <[email protected]> wrote
    in message
    news:go9qie$qqc$[email protected]..
    > Thanks for the response...
    >
    > I don't have trouble getting at the data once it is
    returned, but sending
    > the
    > data. See the code below.
    > When I try and run this code, I get a "syntax error:
    expecting colon
    > before
    > dot." error on the <mx:request> line.
    >
    > Thanks...
    > M
    >
    > <mx:WebService id="userRequest" wsdl="xyz.wsdl">
    > <mx:operation name="UpdateUnsecuredParcel"
    resultFormat="object"
    > fault="defaultFault(event);"
    result="remotingCFCHandler(event)">
    > <mx:request xmlns="">
    > <Batch>4000</Batch>
    > <TaxYear>2009</TaxYear>
    > <Mode>C</Mode>
    > <UserID>90654</UserID>
    > <Fields>
    > <APN>{APN.text}</APN>
    > <ACCT>{Acct.text}</ACCT>
    > <DT.RCVD>{dtReceived.text}</DT.RCVD>
    > </Fields>
    > </mx:request>
    > </mx:operation>
    > </mx:WebService>
    Do it in actionscript.
    var tmpXML:XMLList = <Batch>4000</Batch>
    <TaxYear>2009</TaxYear>
    <Mode>C</Mode>
    <UserID>90654</UserID>
    <Fields>
    <APN>{APN.text}</APN>
    <ACCT>{Acct.text}</ACCT>
    <foo>{dtReceived.text}</foo>
    </Fields>
    node:XMLNode = tmpXML.descendents('foo')[0];
    node.name = 'DT.RCVD';
    userRequest.request = tmpXML;
    HTH;
    Amy

  • WebService, HttpService, namespace

    I've happily been using htttpService calls, connecting to my
    own PHP scripts without many problems. But I now have to use
    services provided by a third party. The services can be used with
    either webService or httpService, but all return xml data with an
    included namespace. (xmlns="
    http://www.example.com/api").
    This seems to make life difficult, and I suspect I'm missing some
    magic ingredient. My biggest problem is populating a datagrid with
    the returned data.
    1. Problems using ArrayCollection
    If I use the webService call, and *don't* use the e4x
    resultFormat, I can populate the grid by setting the dataProvider
    to service.operation.lastResult. This works OK.
    If, instead, I set the dataProvider to an mx:ArrayCollection
    object like below, it doesn't work. No data appears in the grid.
    (This method is illustrated in a number of examples in the docs.)
    <mx:ArrayCollection id="statesAC"
    source="service.operation.lastResult" />
    But if I add an mx:Binding element, and point this to the
    ArrayCollection, it works.
    <mx:Binding source="service.operation.lastResult"
    destination="statesAC" />
    <mx:ArrayCollection id="statesAC" />
    I should be happy that this works, but I'd be more
    comfortable knowing why the middle approach doesn't, especially as
    the docs seem to push this as a preferred approach. Any thoughts?
    2. Problems using XMLListCollection
    This is more troubling, as I'd prefer to use an
    XMLListCollection to populate the grid.
    I've had no success using the webService approach. I can't
    get any of the above techniques for ArrayCollection to work for an
    XMLListCollection. No data appears in the grid.
    I've had more success with httpService and handling and
    converting the XML directly in the service's result event. But this
    also is not straightforward:
    -- I have to set a namespace, using either "default xml
    namespace = ...." or "use namespace ...". Without doing this, I'm
    unable to extract an XMLList from the returned XML. (The XMLList is
    used to make the XMLListCollection for the DataGrid.)
    -- It seems that the DataGrid's dataField properties are not
    recognised when a namespace is being used, even when the
    above-mentioned namespace settings are in place. A labelFunction
    has to be used, but even that is not straightforward.
    Assuming a property name of "Name", this won't work for a
    column setting (no data appear in the column):
    <mx:DataGridColumn dataField="Name" headerText="Name"/>
    This will work:
    public function gridFunction(item:Object,
    column:DataGridColumn):String {
    return item.Name;
    <mx:DataGridColumn headerText="Name"
    labelFunction="gridFunction"/>
    But this won't (although it works with XML that has no
    namespace set):
    public function gridFunction(item:Object,
    column:DataGridColumn):String {
    var fieldName:String = column.dataField;
    return item[fieldName];
    <mx:DataGridColumn headerText="Name"
    labelFunction="gridFunction"/>
    The labelFunction approach, although it displays data, still
    leaves isues with sorting. I'm sure this is not how things are
    meant to be.
    Any insights as to how to make this easier would be
    appreciated, especially with regard to working with
    XMLListCollections.

    From the webservice example.........
    http://www.cflex.net/showfiledetails.cfm?ChannelID=1&Object=File&objectID=582
    Instead of using:
    default xml namespace = "http://www.webservicex.net"; to
    define the default namespace of the Webservice,
    You can automatically find the namespace of the Webservice
    and set it to your default namespace in your result handler. Then
    you would be able to use multiple webservices in multiple result
    handlers.
    [Bindable]private var xmlResult:XML;
    private var wsDefaultNS:Namespace;
    private var wsDefaultNS:Namespace;
    private function onResult(oEvent:ResultEvent):void
    xmlResult = XML(oEvent.result);
    wsDefaultNS = xmlResult.namespace();
    default xml namespace = Namespace(wsDefaultNS);
    I have only been able to get data from webservices into a
    datagrid by the labelfunction. I don't know of another way.

  • WebService request whitespace trim

    I have found that when invoking a WebService at runtime the
    space at the end of a string in a request gets trimmed. This there
    anyway this can be avoided?
    Here's some code snippets...
    <mx:WebService id="trimTestWS" wsdl="TrimTest?WSDL">
    <mx:operation name="trimtest" resultFormat="e4x"
    fault="faultHandler(event)" result="resultHandler(event)" />
    </mx:WebService>
    <mx:Script>
    <![CDATA[
    private function init():void {
    trimTestWS.trimtest.request.data = "ABC ";
    trimTestWS.trimtest.send();
    I have found with the above that the XML sent from from flash
    player has <data>ABC</data> rather than the expected
    <data>ABC </data>. Is there someway I can preserve the
    space?
    Thanks in advance.

    "soastation" <[email protected]> wrote in
    message
    news:ga3h3k$473$[email protected]..
    >I have found that when invoking a WebService at runtime
    the space at the
    >end of
    > a string in a request gets trimmed. This there anyway
    this can be avoided?
    >
    > Here's some code snippets...
    >
    > <mx:WebService id="trimTestWS"
    wsdl="TrimTest?WSDL">
    > <mx:operation name="trimtest" resultFormat="e4x"
    > fault="faultHandler(event)"
    result="resultHandler(event)" />
    > </mx:WebService>
    >
    > <mx:Script>
    > <![CDATA[
    > private function init():void {
    > trimTestWS.trimtest.request.data = "ABC ";
    > trimTestWS.trimtest.send();
    > }
    >
    > I have found with the above that the XML sent from from
    flash player has
    > <data>ABC</data> rather than the expected
    <data>ABC </data>. Is there
    > someway I
    > can preserve the space?
    Look at the prettyPrinting and ignoreWhiteSpace properties of
    the XML
    object.

  • How to know the size of a webservice request

    Hello...
    I'd like to know if you know how do I get the size of a Web request? I mean, I need to know the size of a Web Request 'cause I'll fill a Gauge Object up based on the quantity that I have received from the WebService.
    I'm using the KSOAP and KXML API's for consuming that WebServices and I used the Content-lengh Method and it didnt return anything to me... it returned empty. So, do you know how do I fill a Gauge Object based on the size of the WebRequest? Could you tell me some examples plz?
    Thanx...
    Lucas Abrao

    How to know the size of a DB ?If you want to know the physical size, query dba_data_files + dba_temp_files. if you need to know the actual consumed space in those files, compute sum of bytes from DBA_SEGMENTS.
    How to know the size of a TABLE ?Query all/dba/user_segments.
    How to get the content of a procedure/view/trigger ?all/dba/user_source, all/dba/user_views, all/dba/user_triggers.
    Message was edited by:
    Satish Kandi

  • ContentType in HTTP Header issue while sending webservice request

    I have a client application deployed on weblogic10.3.4 which access a remote web application (on websphere5.1).
    The soap request fails because WebSphere5.1 does not accept double quote around utf-8 in ContentType header of HTTP.
    e.g:
    Content-Type: text/xml;charset=utf-8 is valid
    Content-Type: text/xml;charset="utf-8" is not valid
    This can be fixed on glassfish by upgrading metro library.
    But how can I fix this problems on weblogic server?
    I found weblogic8.1 doc which says this issue has been fixed (CR198996), but why does it still exist on 10.3.4?
    Any suggestions would be appreciate.

    Hi _MiRichter,
    Well Done!
    Thank you very much for sharing the solution to us.
    Best Regards,
    Amy Peng
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Enhancement request: Namespace for Javascript

    Carl:
    As APEX market penetration grows and it matures as a web development environment, we will start to see APEX applications integrate one (or more) of the fantastic Javascript toolkits out there to build rich client-side functionality.
    To avoid collisions and in accordance with Javascript best practices, may I suggest that all APEX Javascript functions be encapsulated in a global APEX (or OAE or whatever) namespace/Javascript object. All APEX Javascript objects, methods, functions, variables, etc should be included in this namespace. We can always create local instances of commonly used functions/objects to maintain backward compatibility.
    Just my 2c.
    Thanks

    I'm seeing the same problem; it will let me view Java code, and edit it in the editor, but there's no way of saving it back to the database, or compiling (or debugging or etc...)
    Also, if I try and run java in via the sql window I get:
    Error starting at line 1 in command:
    CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED "whatever" AS
    Error report:
    Non supported SQL92 token at position: 227:
    Don't really know what that error message is for; is that column or row? I can't see either displayed for the sql window anyway. No clue what token it's talking about either - would be useful for it to give a better error message than that.
    thanks,
    William

  • Add SOAP header before the WebService request (Windows Forms)

    I have to add this header before my Request:
    <h:FordDealerIdentity xmlns:h="urn:ford/star/security/v1.0" xmlns="urn:ford/star/security/v1.0">
    <soapenv:Header>
    <SiteCode>SZBRA</SiteCode>
    </soapenv:Header>
    </h:FordDealerIdentity>
    My request:
    var srv = new ConsumerServiceScheduleV1();
    var a = new RetrieveScheduleRequestType();
    var b = new DealerType();
    var c = new ScheduleType();
    srv.Credentials = new System.Net.NetworkCredential("","SZBRA05168");
    //ScheduleType[] ret;
    b.Code = 05168;
    b.Name = "BraconCampos";
    a.Dealer = b;
    a.SchedulingFrom = new DateTime(10/10/2014);
    a.SchedulingTo = new DateTime(15/10/2015);
    c.SchedulingCategory = SchedulingCategoryType.Regular;
    srv.ClientCertificates.Add(new System.Security.Cryptography.X509Certificates.X509Certificate2(@"E:\Agenda Ford\Certificados Agend@Ford\BracomCampos.pfx", "qaz123"));
    textBox1.Text = srv.RetrieveSchedule(a).ToString();

    Is Windows Forms! :)
    And what forum deals with SOAP and Web services more than any other forum?  Many types of client based applications such as  Windows form, WPF, Sliverlight, Windows service classlib project like a BLL and so forth deal sith SOAP and WEB.
    How is what you are talking about a Windows forms issue?
    My Application is Windows Forms. I need to know how to insert this header before request.

  • WebService / request

    New to Flex so apologies if this is a simple problem. I'm
    trying to connect to a web service but for reasons I'm not entirely
    sure of, the service only responds if an empty XML "structure" is
    passed. i.e.
    <InvoiceDetail>
    <item>
    <Crtby></Crtby>
    <Crtdt></Crtdt>
    <Crttm></Crttm>
    <Updby></Updby>
    <Upddt></Upddt>
    <Updtm></Updtm>
    <Otype></Otype>
    <Objid></Objid>
    </item>
    </InvoiceDetail>
    When I insert this into an mx:request tag, Flex insists on
    sending <Crtby>[Object Object]</Crtby> in the request.
    Any ideas how I can persuade Flex to send the string as
    is....
    Thanks
    Peter

    Use AS code to build and send the request, it is easier to
    debug.
    var xmlRequest:XML = <InvoiceDetail>
    ...</InvoiceDetail>;
    myWebServiceId.request = xmlRequest;
    myWebServiceId.send();
    Tracy

  • "User not found" error through SOAP webservice request AddGroup.asmx

    Hi there,
    With the help of NINTEX Im trying to create a new group via the webservice:
    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:m="http://schemas.microsoft.com/sharepoint/soap/directory/">
    <soap:Header>
    </soap:Header>
    <soap:Body>
    <m:AddGroup>
    <m:groupName>TestGroup</m:groupName>
    <m:ownerIdentifier>mydomain/user</m:ownerIdentifier>
    <m:ownerType>user</m:ownerType>
    <m:defaultUserLoginName>mydomain/user</m:defaultUserLoginName>
    <m:description>
    </m:description>
    </m:AddGroup>
    </soap:Body>
    </soap:Envelope>
    I keep getting a user not found. I tried the same approche in a SharePoint 2010 environment and there it works just fine. 
    I tried changing the username to i0#.w|mydomain/user, after reading an article HOW TO: Add users to SharePoint Groups using SharePoint 2013 UserGroup.asmx Web Service on blogs.technet.com
    Does anyone has an idea what the problem could be?

    Hi,
    From your description, an error occurred when you create a new group via the web service in SharePoint 2013.
    Please use “\” instead of “/”, for example: use “i0#.w|mydomain\user” instead of “i0#.w|mydomain/user”.
    Here are two other ways to create a new group for your reference:
    1. Use SPServices.
    http://spservices.codeplex.com/wikipage?title=Users%20and%20Groups
    2. Use ECMA Client object model, the following code for your reference:
    // Create Group
    var groupCreationInfo = new SP.GroupCreationInformation();
    groupCreationInfo.set_title('Collaboration ' + folderName);
    groupCreationInfo.set_description('This is a new Collaboration Group');
    this.oGroup = currentweb.get_siteGroups().add(groupCreationInfo);
    clientContext.load(oGroup);
    oGroup.set_owner(GroupObject);
    oGroup.update();
    Best Regards
    Dennis Guo
    TechNet Community Support

  • Setting up custom headers in webservice request

    Hi,
    I have generated stubs using WSDL2Java (Axis 1.1). The wsdl file contains one custom header.
    Can any one tell me how to set value for this custom header?
    Thanks

    Hi Abhisek,
    If you want to create your own patterns, you can follow this step:
    menu utilities --> more utilities --> edit pattern --> create pattern.
    Type in the code you want to use as a pattern.
    Save it and back out.
    Now once you create it there, you should be able to enter in the "Other Pattern" field.
    Hope it will help you.
    Thanks,
    Sarita Singh Rathour

Maybe you are looking for

  • Visual Studio 2013 does not rebuild all code resulting in old code deployed through wsp

    I recently converted my SharePoint 2010 project from Visual Studio 2010 to Visual Studio 2013. I have the Premium version with Update 1. I quickly noticed that 2013 has bugs. For instance I could get a build error out of nowhere while developing, sta

  • Why my VM on Azure is stopped? My MSDN credit has run out but why do you need to deallocate the VM?

    This is ridiqulous - MS did it again I didn't care for few bucks if I overrun the credit and BUM!!!!!!! all production websites and VMs stopped Still can't reanimate VMs Bad job Microsoft Azure, very bad job How this supposed to help: The server enco

  • Published size smaller than planned

    Hi: I have been labouring with an animated cartoon Christmas card (my first attempt at using Flash). Thanks to help from David Stiller I have succeeded in getting it to work (save for moving the background layer to line up with the animation). I trie

  • Korg Legacy M1 in multi mode in Logic?

    I have a Korg Legacy M1 plugin. Although there are multiple outputs selectable in the gui of the plugin, there is no multi out version available in the instrument menu in Logic's channel strip, only stereo. Is this just not implemented in Logic, or a

  • Send data with profibus (Newbie)

    Hi, Im new to  labview and have only been working with PLC before so please have patience with my lw knowledge. Im trying to send some data (analog inputs) from labview to my Siemens S7 PLC using a Comsoft profiboard. I have got the communication to