Group-object hierarchy

Hi guys,
my Boss wants me to create a Report in powershell that Shows all machines per Location per Country and I'm struggling with that. Here are a few Infos about the whole Situation:
The AD OU structure is
RootOU
            -US
                     -DEN
                                 -DENPC001
                                 -DENPC002
                     -MAN
                                 -MANPC001
                                 -MANPC002
             -UK
                     -LON
                                 -LONPC001
                                 -LONPC002
I Need to come up with a script that results in 3 rows:
Country Name, Location Name, Number of Computers.
What I can manage to do is to get the Location and the Count of machines per Location, but how do I also get the Country in the same line?
Here's my code:
################ Code begin #############
function Get-ADLocationMembers {
 [CMDLetBinding()]
 Param (
  [string[]]$computername="LONPC001",
  [string]$DN="cn=LONPC001,ou=LON,ou=UK,dc=mydomain,dc=tld"
 BEGIN
        $objComp = New-Object -TypeName PSObject
    }#Begin
 PROCESS
  foreach ($computer in $computername) {
   $Location = (($computer).Substring(0,3))
   $Country = ((($dn -split ",")[-3]) -replace("OU=",""))
            write-Verbose "Location $($location)"
   write-verbose "Country $($Country)"
   $props = @{
    "Location" = $location;
    "Country"=$Country;
   }#foreach
   Add-Member -InputObject $objComp -NotePropertyMembers $props -EA "SilentlyContinue"
  }#foreach
 }#Process
    END
        $objComp
    }#End
Get-ADLocationMembers | Group Location -NoElement
############### Code End #################
The result is
Count Name
    1 LON
What I would Need is something like this:
Country Count Name
UK            1 LON
Any help is greatly appreciated :)
Thx
Sebastian
Sebastian Bammer

$dns = @(
"cn=DENPC001,ou=DEN,ou=US,dc=mydomain,dc=tld",
"cn=DENPC002,ou=DEN,ou=US,dc=mydomain,dc=tld",
"cn=MANPC001,ou=MAN,ou=US,dc=mydomain,dc=tld",
"cn=MANPC002,ou=MAN,ou=US,dc=mydomain,dc=tld",
"cn=MANPC003,ou=MAN,ou=US,dc=mydomain,dc=tld",
"cn=LONPC001,ou=LON,ou=UK,dc=mydomain,dc=tld",
"cn=LONPC002,ou=LON,ou=UK,dc=mydomain,dc=tld")
$ht = @{}
$regex1 = 'cn=.+,(ou=.+,ou=.+),dc=mydomain,dc=tld'
$regex2 = 'ou=(.+),ou=(.+)'
$dns |
foreach {
if ($_ -match $regex1)
{$ht[$matches[1]]++}
$ht.keys |
foreach {
$_ -match $regex2 > $null
[PSCustomObject]@{
Country = $Matches[2]
Location = $Matches[1]
Count = $ht[$_]
} |
sort Country,Location |
Format-Table -AutoSize
Country Location Count
UK LON 2
US DEN 2
US MAN 3
[string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "

Similar Messages

  • Error in Distribution of Actual cost in Cost Object Hierarchy

    Hi,
    I am getting an error while doing the Distribution of Actual cost from Cost Object Node to the assigned Order.
    Cost element/origin 630000 could not be distributed
    Message no. KZ468
    Diagnosis
    The cost element/ origin 630000 could not be distributed because there are no target costs for this cost element/origin or for cost element group CO-PC-TOT.
    Procedure
    Check the calculated target costs and cost element group CO-PC-TOT assigned to the target cost version.
    Procedure for System Administration
    Proceed
    Although the Cost element is Present in cost element group CO-PC-TOT.
    One more information, the order  that is assigned in Cost Object Hierarchy is of CO-Product orders.
    I have searched in the forum but I havent got any solution.
    Kindly help.
    regards
    Kami

    Hi,
    Concerning error message KZ 468, it has the following origin: In the  customizing of the cost object category (transaction okz5), check if the 'single object selection' is set to 'Control through variance key'. If you consider the F1-Help for this option you will find the following  explanation:
    if the indicator Control through variance key is turned on, the production order, process order, or product cost collector can only be assigned to the cost object hierarchy if:
    -> The material is assigned to the lowest node of the hierarchy
    -> No variance key is specified in the order
    The important point is, that orders that have a variance key are excluded from the cost distribution.
    In transaction KKF8 you will find that all these orders do indeed have  a variance key. Hence, all of these orders are included, there are no target costs from the orders and the costs cannot be distributed. Thus the error message kz 468.
    Please consider that and check the customizing again.
    Not having target costs in the distribution indicates either a wrong set up of the hierarchy or, more likely, no valid cost estimate for a certain material of a production order or product cost collector could be found.
    Did you check whether for this cost element/origin target costs exist, and also for the cost element group? If not the message KZ468 is correct and probably the cost element group has to be maintained properly.
    The distribution of actual costs calculates target costs on-the-fly and the variance calculation does not have to be carried out before. Quite the opposite than the variance calculation requires the distribution as a preceding step. Furthermore it is not sufficient that one cost element is in a cost element group but the interval where the cost element has been assigned to has to have some target costs. Otherwise this won't work and message KZ468 is issued.
    regards
    Waman

  • Feature restore request. (allow locked and grouped objects to be able to tagged.

    In CS2, using the direct selection tool, I'm able to select and tag the image even if it's grouped and locked, no script needed at all, no sweat and fast!
    Furthermore this XML element can also be moved freely in the structure hierarchy after tagged and remains grouped and locked.
    In CS3 and CS4,
    I can't do that.
    It will give a warning message "Cannot modify elements that contain locked content, or are contained by locked content. Please unlock or check out the content and try again."
    So need to write script to unlock the image's parent first, and then tag and locked the object back automatically.
    (This script is essential so as to prevent any unintentional and accidental change on the page layout if it's done manually)
    But to make matter worse, grouped objects will need to also find out all these ancestors and have them unlocked first!
    It creates alot of hassle! Really being user-unfriendly in CS3/CS4 when doing such a simple xml tagging task.
    PLEASE please restore the wonderful CS2 feature back in the next version of Indesign.
    MILLIONS of thanks!!

    I'd suggest you submit your suggestion through the iTunes application feedback page. It's more likely to be seen by the iTunes development group that way.

  • Error while creating MV replication group object

    Hi,
    I am getting error while creating replication group object. I tried to create using OEM and SQLPlus
    OEM error
    This error while creating M.V. rep. group object
    There is a table or view named SCOTT.EMP.
    It must be dropped before a materialized view can be created.
    In SQLPLUS
    SQL> CONNECT MVIEWADMIN/MVIEWADMIN@SWEET
    Connected.
    SQL>
    SQL> BEGIN
    2 DBMS_REPCAT.CREATE_MVIEW_REPOBJECT (
    3 gname => 'SCOTT',
    4 sname => 'KARTHIK',
    5 oname => 'emp_mv',
    6 type => 'SNAPSHOT',
    7 min_communication => TRUE);
    8 END;
    9 /
    BEGIN
    ERROR at line 1:
    ORA-23306: schema KARTHIK does not exist
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 86
    ORA-06512: at "SYS.DBMS_REPCAT_SNA_UTL", line 2840
    ORA-06512: at "SYS.DBMS_REPCAT_SNA_UTL", line 773
    ORA-06512: at "SYS.DBMS_REPCAT_SNA_UTL", line 5570
    ORA-06512: at "SYS.DBMS_REPCAT_SNA", line 82
    ORA-06512: at "SYS.DBMS_REPCAT", line 1332
    ORA-06512: at line 2
    Please not already I have created KARTHIK schema.

    Arthik,
    I think I know what may have happened.
    As I can see you are trying to create support for an updateable materialized view.
    You have to make sure the name of the schema that owns the materialized view is the same as the schema owner of the master table (at master site).
    From the code you have shown, I bet the owner of table EMP is SCOTT.
    From the other hand, you want to create materialized view EMP_MV under schema KARTHIK that refers to table SCOTT.EMP at master site.
    According to the documentation, the schema name used in DBMS_REPCAT.CREATE_MVIEW_REPOBJECT must be same as the schema that owns the master table.
    Please check the documentation at the link below
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14227/rarrcatpac.htm#i109228
    I tried to reproduce your example in my environment, and I got exactly the same error which actually confirms my assumption that the reason for the error is the fact that you tried to create the materialized view in a schema with different name than the one where master table exists.
    I'll skip some of the steps that I used to create the replication environment.
    I have two databases, DB1.world and DB2.world
    On DB2.world I will generate replication support for table EMP which belongs to user SCOTT
    SQL> conn scott/*****@DB2.world
    Connected.
    SQL>create materialized view log on EMP with primary key;
    Materialized view log created.
    SQL>
    SQL>conn repadmin/*****@DB2.world
    Connected.
    SQL>BEGIN
      2       DBMS_REPCAT.CREATE_MASTER_REPGROUP(
      3         gname => 'GROUPA',
      4         qualifier => '',
      5         group_comment => '');
      6*   END;
    PL/SQL procedure successfully completed.
    SQL>BEGIN
      2       DBMS_REPCAT.CREATE_MASTER_REPOBJECT(
      3         gname => 'GROUPA',
      4         type => 'TABLE',
      5         oname => 'EMP',
      6         sname => 'SCOTT',
      7         copy_rows => TRUE,
      8         use_existing_object => TRUE);
      9*   END;
    10  /
    PL/SQL procedure successfully completed.
    SQL> BEGIN
      2       DBMS_REPCAT.GENERATE_REPLICATION_SUPPORT(
      3         sname => 'SCOTT',
      4         oname => 'EMP',
      5         type => 'TABLE',
      6         min_communication => TRUE);
      7    END;
      8  /
    PL/SQL procedure successfully completed.
    SQL>execute DBMS_REPCAT.RESUME_MASTER_ACTIVITY(gname => 'GROUPA');
    PL/SQL procedure successfully completed.
    SQL> select status from dba_repgroup;
    STATUS                                                                         
    NORMAL                                                                          Now let's create updateable materialized view at DB1. Before that I want to let you know that I created one sample in DB1 user named MYUSER. MVIEWADMIN is Materialized View administrator.
    SQL>conn mviewadmin/****@DB1.world
    Connected.
    SQL>   BEGIN
      2       DBMS_REFRESH.MAKE(
      3         name => 'MVIEWADMIN.MV_REFRESH_GROUPA',
      4         list => '',
      5         next_date => SYSDATE,
      6         interval => '/*1:Hr*/ sysdate + 1/24',
      7         push_deferred_rpc => TRUE,
      8         refresh_after_errors => TRUE,
      9         parallelism => 1);
    10    END;
    11  /
    PL/SQL procedure successfully completed.
    SQL>   BEGIN
      3       DBMS_REPCAT.CREATE_SNAPSHOT_REPGROUP(
      5         gname => 'GROUPA',
      7         master => 'DB2.wolrd',
      9         propagation_mode => 'ASYNCHRONOUS');
    11    END;
    12  /
    PL/SQL procedure successfully completed.
    SQL>conn myuser/*****@DB1.world
    Connected.
    SQL>CREATE MATERIALIZED VIEW MYUSER.EMP_MV
      2    REFRESH FAST
      3    FOR UPDATE
      4    AS SELECT EMPNO, ENAME, JOB, MGR, SAL, COMM, DEPTNO, HIREDATE
      5*      FROM   [email protected];
    Materialized view created.
    SQL>conn mviewadmin/******@DB1.world
    Connected.
    SQL> BEGIN
      2       DBMS_REFRESH.ADD(
      3         name => 'MVIEWADMIN.MV_REFRESH_GROUPA',
      4         list => 'MYUSER.EMP_MV',
      5         lax => TRUE);
      6    END;
      7  /
    PL/SQL procedure successfully completed.And now lets run CREATE_MVIEW_REPOBJECT.
    SQL>   BEGIN
      2       DBMS_REPCAT.CREATE_MVIEW_REPOBJECT(
      3         gname => 'GROUPA',
      4         sname => 'MYUSER',
      5         oname => 'EMP_MV',
      6         type => 'SNAPSHOT',
      7         min_communication => TRUE);
      8    END;
      9  /
      BEGIN
    ERROR at line 1:
    ORA-23306: schema MYUSER does not exist
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 86
    ORA-06512: at "SYS.DBMS_REPCAT_SNA_UTL", line 2840
    ORA-06512: at "SYS.DBMS_REPCAT_SNA_UTL", line 773
    ORA-06512: at "SYS.DBMS_REPCAT_SNA_UTL", line 5570
    ORA-06512: at "SYS.DBMS_REPCAT_SNA", line 82
    ORA-06512: at "SYS.DBMS_REPCAT", line 1332
    ORA-06512: at line 3 I reproduced exactly the same error message.
    So the problem is clearly in the schema name that owns the materialized view.
    Now lets see if what would happen if I create the MV under schema SCOTT which has the same name as the schema on DB2.world where the master table exists.
    SQL>conn scott/****@DB1.world
    Connected.
    SQL>CREATE MATERIALIZED VIEW SCOTT.EMP_MV
      2    REFRESH FAST
      3    FOR UPDATE
      4    AS SELECT EMPNO, ENAME, JOB, MGR, SAL, COMM, DEPTNO, HIREDATE
      5*      FROM   [email protected];
    Materialized view created.
    SQL>conn mviewadmin/******@DB1.world
    Connected.
    SQL> BEGIN
      2       DBMS_REFRESH.ADD(
      3         name => 'MVIEWADMIN.MV_REFRESH_GROUPA',
      4         list => 'SCOTT.EMP_MV',
      5         lax => TRUE);
      6    END;
      7  /
    PL/SQL procedure successfully completed.And now lets run CREATE_MVIEW_REPOBJECT.
    SQL>   BEGIN
      2       DBMS_REPCAT.CREATE_MVIEW_REPOBJECT(
      3         gname => 'GROUPA',
      4         sname => 'SCOTT',
      5         oname => 'EMP_MV',
      6         type => 'SNAPSHOT',
      7         min_communication => TRUE);
      8    END;
    PL/SQL procedure successfully completed.As you can see everything works fine when the name of the schema owner of the MV at DB1.world is the same as the schema owner of the master table at DB2.world .
    -- Mihajlo
    Message was edited by:
    tekicora

  • Grouped objects not saved correctly

    I group objects (graphics and text), save the file, but when I open it again, grouped objects are moved, sometimes outside the slide. This seems to affect graphics dropped onto keynote, and only of they are grouped. Graphics & text produced inside keynote, using its graphing tools are displayed correctly.
    Anyone sees the same behavior? More importantly, anyone has a fix?
    Keynote 08
    OS 10.6.2

    Hi,
    I noticed that I can not change the precision on a column in one of my tablesProbably that's a FK column.
    For the other problem - probably it's caused by merge conflict and you have in the file symbols <<<<<< >>>>>> and non valid XML elements. You can try to replace the content of the file manually using version from repository. There will be better processing of suche cases in next release.
    Philip

  • Can't group objects in Captivate?

    Why no option to "group" objects in Captivate? -- not only is this standard in vector graphics programs (Freehand, Illustrator, Flash, even in Word), it's necessary for efficient editing.

    Hi there
    You may group, but the grouping is temporary.
    Note that Captivate is not a vector application. Instead it is a raster based applicaton. Perhaps that explains it?
    If you really would like to see it emerge as a future option, please submit a Wish Form to ask for it.
    Click here to visit the Wish Form/Bug Reporting Form
    Cheers... Rick
    Click here for Adobe Certified Captivate and RoboHelp HTML Training
    Click here for the SorcerStone Blog
    Click here for RoboHelp and Captivate eBooks

  • Error with WebServices and object hierarchy

    Hello,
    I'm using Web Services (deployed on Axis Server) with SJC. SJC don't understood the object hierarchy. It's seem to be the same problem than in post http://forum.sun.com/jive/thread.jspa?forumID=123&threadID=50290 and
    http://forum.sun.com/jive/thread.jspa?forumID=123&threadID=52967.
    I have 3 classes.
    GrandSon
    Son with an array of GrandSon
    Father with an array of Son
    The class :
    Father :
    package test;
    public class Father {
         private Son[] theSons;
         public Father()
              theSons = new Son[2];
              theSons[0] = new Son();
              theSons[1] = new Son();
         public Son[] getSons()
              return theSons;
    Son :
    package test;
    public class Son {
         private String name = "Son";
         private GrandSon[] grandSons;
         public Son()
              grandSons = new GrandSon[2];
              grandSons[0] = new GrandSon();
              grandSons[1] = new GrandSon();
         public String getName()
              return name;
         public GrandSon[] getGrandSons()
              return grandSons;
    GrandSon
    package test;
    public class GrandSon {
         String name;
         public String getName()
              return "I'm a Grandson";
    I'm creating the webService from Father JavaBean. Here is the WSDL file generated by wtp plugin for Eclipse :
    <?xml version="1.0" encoding="UTF-8"?>
    <wsdl:definitions targetNamespace="http://test" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://test" xmlns:intf="http://test" 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://test" xmlns="http://www.w3.org/2001/XMLSchema">
    <element name="getSons">
    <complexType/>
    </element>
    <element name="getSonsResponse">
    <complexType>
    <sequence>
    <element maxOccurs="unbounded" name="getSonsReturn" type="impl:Son"/>
    </sequence>
    </complexType>
    </element>
    <complexType name="GrandSon">
    <sequence>
    <element name="name" nillable="true" type="xsd:string"/>
    </sequence>
    </complexType>
    <complexType name="ArrayOfGrandSon">
    <sequence>
    <element maxOccurs="unbounded" minOccurs="0" name="item" type="impl:GrandSon"/>
    </sequence>
    </complexType>
    <complexType name="Son">
    <sequence>
    <element name="grandSons" nillable="true" type="impl:ArrayOfGrandSon"/>
    <element name="name" nillable="true" type="xsd:string"/>
    </sequence>
    </complexType>
    </schema>
    </wsdl:types>
    <wsdl:message name="getSonsRequest">
    <wsdl:part element="impl:getSons" name="parameters"/>
    </wsdl:message>
    <wsdl:message name="getSonsResponse">
    <wsdl:part element="impl:getSonsResponse" name="parameters"/>
    </wsdl:message>
    <wsdl:portType name="Father">
    <wsdl:operation name="getSons">
    <wsdl:input message="impl:getSonsRequest" name="getSonsRequest"/>
    <wsdl:output message="impl:getSonsResponse" name="getSonsResponse"/>
    </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="FatherSoapBinding" type="impl:Father">
    <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="getSons">
    <wsdlsoap:operation soapAction=""/>
    <wsdl:input name="getSonsRequest">
    <wsdlsoap:body use="literal"/>
    </wsdl:input>
    <wsdl:output name="getSonsResponse">
    <wsdlsoap:body use="literal"/>
    </wsdl:output>
    </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="FatherService">
    <wsdl:port binding="impl:FatherSoapBinding" name="Father">
    <wsdlsoap:address location="http://localhost:8080/webServiceSimple/services/Father"/>
    </wsdl:port>
    </wsdl:service>
    </wsdl:definitions>
    When I try to call my Web Service in Sun Java Creator, I have this error message :
    InvocationTargetException com.sun.rave.websvc.ui.ReflectionHelper.callMethodWithParams(ReflectionHelper.java:459)
    com.sun.rave.websvc.ui.TestWebServiceMethodDlg$MethodTask.run(TestWebServiceMethodDlg.java:1031)
    java.lang.Thread.run(Thread.java:595)
    null sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    java.lang.reflect.Method.invoke(Method.java:585) com.sun.rave.websvc.ui.ReflectionHelper.callMethodWithParams(ReflectionHelper.java:450)
    com.sun.rave.websvc.ui.TestWebServiceMethodDlg$MethodTask.run(TestWebServiceMethodDlg.java:1031)
    java.lang.Thread.run(Thread.java:595)
    deserialization error: unexpected XML reader state. expected: END but found: START
    Runtime exception; nested exception is: deserialization error: unexpected XML reader state. expected: END but found: START: {http://test}grandSons
    com.sun.xml.rpc.client.StreamingSender._handleRuntimeExceptionInSend(StreamingSender.java:318)
    com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:300)
    webservice.Father_Stub.getSons(Father_Stub.java:68)
    webservice.fatherservice.FatherServiceClient.getSons(FatherServiceClient.java:29)
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:585)
    com.sun.rave.websvc.ui.ReflectionHelper.callMethodWithParams(ReflectionHelper.java:450) com.sun.rave.websvc.ui.TestWebServiceMethodDlg$MethodTask.run(TestWebServiceMethodDlg.java:1031)
    java.lang.Thread.run(Thread.java:595)
    deserialization error: unexpected XML reader state. expected: END but found: START: {http://test}grandSons
    com.sun.xml.rpc.encoding.literal.LiteralObjectSerializerBase.deserialize(LiteralObjectSerializerBase.java:128) webservice.Son_LiteralSerializer.doDeserialize(Son_LiteralSerializer.java:54)
    com.sun.xml.rpc.encoding.literal.LiteralObjectSerializerBase.internalDeserialize(LiteralObjectSerializerBase.java:216)
    com.sun.xml.rpc.encoding.literal.LiteralObjectSerializerBase.deserialize(LiteralObjectSerializerBase.java:124)
    webservice.GetSonsResponse_LiteralSerializer.doDeserialize(GetSonsResponse_LiteralSerializer.java:53)
    com.sun.xml.rpc.encoding.literal.LiteralObjectSerializerBase.internalDeserialize(LiteralObjectSerializerBase.java:216)
    com.sun.xml.rpc.encoding.literal.LiteralObjectSerializerBase.deserialize(LiteralObjectSerializerBase.java:124)
    webservice.Father_Stub._deserialize_getSons(Father_Stub.java:115)
    webservice.Father_Stub._readFirstBodyElement(Father_Stub.java:102)
    com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:215)
    webservice.Father_Stub.getSons(Father_Stub.java:68)
    webservice.fatherservice.FatherServiceClient.getSons(FatherServiceClient.java:29)
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:585)
    com.sun.rave.websvc.ui.ReflectionHelper.callMethodWithParams(ReflectionHelper.java:450)
    com.sun.rave.websvc.ui.TestWebServiceMethodDlg$MethodTask.run(TestWebServiceMethodDlg.java:1031)
    java.lang.Thread.run(Thread.java:595)
    The SOAP communication seems to be correct. I'm sniffing the communication channel:
    Request from SJC:
    POST /webServiceSimple/services/Father HTTP/1.1
    Content-Type: text/xml; charset=utf-8
    Content-Length: 335
    SOAPAction: ""
    Cache-Control: no-cache
    Pragma: no-cache
    User-Agent: Java/1.5.0_06
    Host: 127.0.0.1:8081
    Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
    Connection: keep-alive
    <?xml version="1.0" encoding="UTF-8"?>
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns0="http://test"><env:Body><ns0:getSons/></env:Body></env:Envelope>
    Response from AXIS ( I have corrected text indentation) :
    HTTP/1.1 200 OK
    Content-Type: text/xml;charset=utf-8
    Transfer-Encoding: chunked
    Date: Thu, 24 Aug 2006 12:44:27 GMT
    Server: Apache-Coyote/1.1
    292
    <?xml version="1.0" encoding="utf-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <soapenv:Body><getSonsResponse xmlns="http://test">
    <getSonsReturn>
    <grandSons>
    <grandSons>
    <name>I'm a Grandson</name>
    </grandSons>
    <grandSons>
    <name>I'm a Grandson</name>
    </grandSons>
    </grandSons>
    <name>Fils</name>
    </getSonsReturn>
    <getSonsReturn>
    <grandSons>
    <grandSons>
    <name>I'm a Grandson</name>
    </grandSons>
    <grandSons>
    <name>I'm a Grandson</name>
    </grandSons>
    </grandSons>
    <name>Fils</name>
    </getSonsReturn>
    </getSonsResponse>
    </soapenv:Body></soapenv:Envelope>
    0
    I suppose that the version of SOAP used in AXIS and in SJSC may be different. Array's definition have been changed in version SOAP 1.2.
    Here an array is described like this :
    <grandSons> <- ARRAY
    <grandSons> <-OBJECT : ARRAY[0]
    </grandSons>
    <grandSons><-OBJECT : ARRAY[1]
    </grandSons>
    </grandSons>
    Probably explains this message :
    deserialization error: unexpected XML reader state. expected: END but found: START: item
    Somebody have an idea ?
    Thanks.

    Hi Frank,
    I've checked further, and for testing, I have made a change to the sample Reference Cursor package code (NVL'd the parameter), but I still get the same error:
    CREATE OR REPLACE PACKAGE BODY RefCursorExample IS
      FUNCTION get_requests_for_tech(p_email VARCHAR2) RETURN ref_cursor IS
        the_cursor ref_cursor;
      BEGIN
        OPEN the_cursor FOR
          SELECT sr.svr_id, sr.status, sr.problem_description
            FROM service_requests sr, users u
         WHERE sr.assigned_to = u.user_id
           AND u.email = NVL(p_email,u.email);
        RETURN the_cursor;
      END get_requests_for_tech;
      FUNCTION count_requests_for_tech(p_email VARCHAR2) RETURN NUMBER IS
        the_count NUMBER;
      BEGIN
        SELECT COUNT(*)
          INTO the_count
          FROM service_requests sr, users u
         WHERE sr.assigned_to = u.user_id
           AND u.email = NVL(p_email,u.email);
        RETURN the_count;
      END count_requests_for_tech;
    END RefCursorExample;My issue is that it works with NULL for the parameter in the Business Component Browser (BCB), but when I get to the JSF ExecuteWithParams the application looks like it expects NOT NULL when NULL should work. Is there a way to trace where this is happening? Since the BCB works, can I assume it is the JSF side that is causing this? I have already turned on my logging to FINE in logging.properties, and I can't seem to find why this is being triggered...
    java.util.logging.ConsoleHandler.level = FINE
    com.sun.faces.level=FINE
    Thanks!
    Kenton

  • CP5 - W7 - Nested/Grouped objects - Not possible

    Hi dear community,
    I use Photoshop, Premiere, after effects, and many other adobe produts...
    All of them have something in common, you can group or nest objects, vector based or pixel based media does not matter.
    In Premiere, yoy can group a film a title and some effects into a cilp, and then use that clip as a object.
    In Photoshop you can create folders under layers and use those to manage several objects at once.
    But what about captivate? Even the "not to be mensioned here PowerPoint" can group objects.
    Why is it so that within a company one does not reuse smart ideas and maby code?
    Do not get me wrong, I love all the posibilities with captivate, but explode sometimes on the small unessesary to forget to develop things.
    And to you who want to tell me about SHIFT, that is not what I am talking about
    Thank you for reading!
    // Daniel

    Hello,
    Sorry for that, must have been tired. The link is in the main page of these CP-forums, but here you have it too:
    Feature Request Form
    Lilybiri

  • Import of material groups into hierarchy not possible (note 432339)

    Dear All,
    I am trying to replicate material groups (DNL_CUST_PROD1) from R3 system.  Prior to this our SRM system configured as standalone and Material Hierarchy is already defined.  When I am trying to replicate the material groups in SMQ2 I am receiving status as "sysfail" and further I am getting above message.  In the message the OSS note also mentioned.  In the OSS note they have given following solution
    Error message "Import of material groups into hierarchy &1 not possible":
    In transaction COMM_PRAPPLCAT, you specify that the hierarchy specified in the error message is to be used for application 'Purchasing' (02). This means that the material groups would be created in this hierarchy. Delete this setting in Transaction COMM_PRAPPLCAT. If hierarchy R3MATCLASS already exists, assign 
    hierarchy R3MATCLASS to application 'Purchasing'. Then the material  groups are created in hierarchy R3MATCLASS. If you want to import the material groups into the hierarchy specified in the error message, you can also keep this hierarchy
    assigned to application 'Purchasing' and deactivate the error message. Error message "Import of material types into hierarchy &1 not possible". You can do this in Customizing under 'Customer Relationship Management -> Master data -> Basic settings -> Define system message characteristics'.
    My problem is I am not able to find out the path given in the  OSS note ( i.e, Customer Relationship Management u2013 Master data) . Any one can help me in this regard ?
    with regards
    Ram

    Hi ram
    one upon a time supplier relation ship management and customer relation ship management comes under EBP node i.e ebp 3.5 versions.
    /people/marcin.gajewski/blog/2007/02/05/how-to-replicate-material-master-from-r3-to-srm
    plz visit Marchin blog to.o
    since u r aleady in standalone but now you may try push material group from ecc to srm .
    so you need to do set up all crm middleware settings in ecc and srm.
    br
    muthu

  • Data collection for cost object hierarchy - no data at order level!

    Hi everyone,
    When using transaction KKP6 to see my hierarchy for cost object, the system displays all the values that are allocated on my hierarchy nodes, but I do not have the values that should come from the production orders (repetitive manufacturing with production version).
    I use transaction KKRZ to collect data for cost object hierarchy, but it seems that the system does not retrieve any information from the orders.
    Would someone know about this point customizing steps to follow to retrieve my orders values?
    Thanks in advance for your answer. Rewards guaranteed!
    Ronan

    Hi Amadeus,
    To do so, I have used transaction OKZ5 in the customizing and ticked "always cost object hierarchy" and "distribution".
    By doing so, you enable the system to distribute costs within a cost hierarchy. Otherwise the system will only determine costs on the hierarchy.
    Try this, it may work for you as well. During your period-end closing, you sould now use "cost object hierarchy" instead of product cost collector.
    Regards,
    Ronan

  • Error while deactivating Group account hierarchy

    Hi,
    I was executing an adhoc summary report(web report) where in I had to expand group account hierarchy upto node level 8.
    When I tried to deactivate the group account hierarchy ,there is an error messages saying "an error occured during loading.Please look into the upper frame for further information" & "System error in program SAPLRRK0 and form SORTING_PRUEFEN_01-04-..."
    Now I tried to go back to the variable selections from the toolbar, there is one more error message " the internal error is a targetted termination since the program has an incorrect status".
    I executed the same report now Using Bex,
    Using local view I selected group account hierarchy upto level 8 and executed.Later I deactivated the hierarchy and found report working fine with out any errors.
    Can U some suggest me why only on web reporting iam encountering this error.Please suggest me a remedy.
    ThanX N Regards,
    Suku

    Hi,
    Have you entered "111111" in the filed group account number?  If so, this account should be available / created in your group chart of account.
    Hope it helps
    Saravanan.A

  • Change center of grouped objects

    Hi,
    I am making a very simple animation and this might not be the best tool for it but I don't know another (and I'm using CS4).
    For each frame of the animation I have an artboard and in each artboard I move whatever objects need to be moved in that frame relative to the previous one.
    When I look at the movie, each frame is not properly aligned with the previous one and so my question.
    Is it possible to group all objects in a given frame and then define a center for all the whole group so that I can change this center to be a static point in the animation and then use that center to position all grouped objects relative to the artboard?
    Thanks in advance
    Pablo

    You can set a reference point in a symbol.
    But maybe you'd better show something ...

  • Enumerating members of a Group object

    Is there anything specific you must do to enumerate the �member� attribute of a group Object via JNDI.
    I am using an instance of ADAM as a test Directory. I can search for Group objects with no problem, but when I process the results/object attributes I find that the member attribute is always null ?

    The problem was with my Test Directory not my JNDI code - installed and populated a new instance of my ADAM test Directory and Group member enumeration is working fine now.

  • Flowing Grouped objects

    Hi All,
    I am working on a product catalog in InDesign 6 and need some help flowing grouped objects (2 images and 1 text frame) through a 3 column 2 row layout. How do I set it up so when I add more products/grouped objects the current products flow to the next cell or even next page? I'm stuck! Any help on this would be greatly appreciated!

    Use anchor object to anchor image to text, then when move text the image move with it.

  • Resizing grouped objects keynote

    In keynote I would like to be able to resize grouped objects without maintaining proportionality - is this possible?
    The "Constrain Proportions" button is greyed out for grouped objects for me.
    I'm using version 6.2

    Why can't I resize grouped objects in the new Keynote without constraining proportions
    The only people who can give an informed answer are the Apple engineers, however they don't post in the user to user community.
    Keynote 5.3 certainly could do this, but the latest version of Keynote is a completely separate application with different tools and features and file format.
    You can let Apple know of your concern by using:     Apple Feedback

Maybe you are looking for

  • How do I get iTunes Radio to play deeper into my list of chosen artists

    I've created a "station" with many of my favorite artists but the station seems to be stuck at the top of the list and seldom if ever plays tunes from the artist below the first 6 or 7. I have the station tuned all the way to Discover. Thanks

  • Using variables in TestStand 4.0

    Hi, I am new to TestStand and I am still a bit puzzled about: 1. The differences between using Locals / Parameters / FileGlobals / StationGlobals in practices.  (Especially between Locals and FileGlobals, I can't notice any differences when using the

  • Opening an image from LR3 or LR4 into Ps

    I still have Ps 4 on my computer and installed Ps 6 Beta.  Now when I am in LR (I have both LR 3 and LR 4 full versions) and right click an image to "edit in Ps) I only have the option of editing in Ps6 Beta. What happened to the "edit in Ps 4" optio

  • Annoying MobileMe Renewal Notice in iWeb

    Is there any way to stop the annoying MobileMe renewal notice in iWeb? It appears every single time I publish my website. Since I have my MobileMe account set to automatically renew, I hit the "No Thanks" button on the notice, but it just keeps comin

  • I cannot successfully download the trial version of Adobe Premiere Pro CC

    Whenever I try to download this trial I get the following message:  Installation failed. Installation completed though some optional components failed to install correctly. (6)