Reg@ Dynamic invocation of Webservices using an Single Invoke

Hi ,
I am trying to implement Dynamic invocation of webservices using a single Invoke .
Say , i have three webservices = WebA,WebB and Webc .Based on Logic , i need to invoke either of the webservice with an single Invoke .
In [  ws-addressing.xsd ] there are different elements ,"Address" is for endpoint URL.PortType??ServiceName ?? .
If i need to make use of this XSD can any one help me to map the WSDL components to this XSD Or lease suggest options if any ??
Regards ,
Naga

http://blogs.oracle.com/dasoa/2010/09/11g_dynamic_partnerlink_example.html
see the article he's refering too
eventually you need something like :
<assign>
<copy>
<from>
<EndpointReference xmlns="http://schemas.xmlsoap.org/ws/2003/03/addressing">
<Address>http://localhost:9700/orabpel/default/UnitedLoan</Address>
<ServiceName
xmlns:ns1="http://services.otn.com">ns1:UnitedLoan</ServiceName>
</EndpointReference>
</from>
<to variable="partnerReference"/>
</copy>
</assign>

Similar Messages

  • Problem with Dynamic Invocation of Webservice

    Hi,
    I am trying to use Dynamic Invocation Of Webservice, as defined in the following link .
    "http://download.oracle.com/docs/cd/B14099_19/web.1012/b14027/xhtmlstrm.htm#i1010275"
    I have written standalone java client program to invoke, while invoking i got the error as follows :
    Exception in thread "main" java.lang.NoSuchFieldError: FAULT_CODE_IOEXCEPTION
         at oracle.soap.transport.http.OracleSOAPHTTPConnection.send(OracleSOAPHTTPConnection.java:765)
         at org.apache.soap.rpc.Call.invoke(Call.java:248)
         at oracle.ds.v2.impl.adaptor.protocol.soap.DsSoapRpcHandler.execute(DsSoapRpcHandler.java:93)
         at oracle.ds.v2.impl.adaptor.protocol.soap.DsSoapHandler.execute(DsSoapHandler.java:130)
         at oracle.ds.v2.impl.adaptor.protocol.soap.DsSoapProtocolAdaptor.process(DsSoapProtocolAdaptor.java:134)
         at oracle.ds.v2.impl.engine.ProtocolManager.process(ProtocolManager.java:69)
         at oracle.ds.v2.impl.engine.DefaultManagerExecutionContext.executeProtocolAdaptor(DefaultManagerExecutionContext.java:382)
         at oracle.ds.v2.impl.adaptor.execution.DummyExecutionAdaptor.process(DummyExecutionAdaptor.java:54)
         at oracle.ds.v2.impl.engine.ExecutionManager.process(ExecutionManager.java:393)
         at oracle.ds.v2.impl.engine.ExecutionManager.doExecute(ExecutionManager.java:348)
         at oracle.ds.v2.impl.engine.ExecutionManager.execute(ExecutionManager.java:259)
         at oracle.ds.v2.impl.connection.DefaultDsConnection.execute(DefaultDsConnection.java:162)
         at oracle.j2ee.ws.client.impl.DefaultWebServiceMethod.execute(DefaultWebServiceMethod.java:192)
         at oracle.j2ee.ws.client.impl.DefaultWebServiceMethod.invoke(DefaultWebServiceMethod.java:160)
         at com.sub.atl.dynamicws.DynamicWS.wsdlDetails(DynamicWS.java:102)
         at com.sub.atl.dynamicws.DynamicWS.main(DynamicWS.java:19)
    Can, any one help to solve this error.

    What does your code look like?
    By the error it appears you are trying to access a field called "FAULT_CODE_IOEXCEPTION" which doesn't exist.

  • How to use both Static and dynamic Reports in WAD using a single template.

    Hi,
    I have 2 reports - Report1 & Report2. Report1 is a static report with 3 column in it. In WAD user does not want to see the third series in the chart so I have made series3 invisible in the chart.
    I am calling the Report2 via 'SET_DATA_PROVIDER_PARAMETERS' in the button option.
    Now the issue is that, Report2 is a dynamic report which is using a calyear vaiable range. As Report2 is using the template of Report1, Series3 of Report2 also gets hidden.
    Any solution for this?
    Thanks
    Nisha

    Hi Nisha,
    After setting the Report 2 DP thru SET_DATA_PROVIDER_PARAMETERS, you can use one more command SET_ITEM_PARAMETERS on the Chart webitem & edit the Series to make it visible. If there is a way to reset the DP back to Report 1, then you must once again use SET_ITEM_PARAMETERS to hide the Series.
    Or you can use another Chart webitem for Report 2 DP & make the Chart webitem for Report 1 hidden & the Chart webitem for Report 2 visible using SET_ITEM_PARAMETERS after setting Report 2 DP using SET_DATA_PROVIDER_PARAMETERS.
    --Priya

  • Exception while invoking webservices using Dynamic client without WSDL

    Hi All,
    I am getting the below exception while invoking webservices using Dynamic client without WSDL.
    javax.xml.rpc.soap.SOAPFaultException: Exception during processing: java.lang.RuntimeException: Missing license file for: WebLogic Platform 8.1 (see Fault Detail for stacktrace)
    at weblogic.webservice.core.ClientDispatcher.receive(ClientDispatcher.java:313)
    at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:144)
    at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:457)
    at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:443)
    at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:558)
    at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:411)
    at atthi.webservice.TestWSWithWSDL.main(TestWSWithWSDL.java:41)
    Exception in thread "main"
    Please find my source file below....
    import javax.xml.rpc.ServiceFactory;
    import javax.xml.rpc.Service;
    import javax.xml.rpc.Call;
    import javax.xml.rpc.ParameterMode;
    import javax.xml.namespace.QName;
    public class TestWSWithoutWSDL {
    public static void main(String[] args) {
    try{
    String address = "<WSDL's SOAP Address>";
    String namespaceURI = "<namespaceURI>";
    String serviceName = "<serviceName>";
    String portName = "<portName>";
    String ENCODING_STYLE_PROPERTY = "javax.xml.rpc.encodingstyle.namespace.uri";
    String URI_ENCODING = "http://schemas.xmlsoap.org/soap/encoding/";
    String agencyID = "AGN00533";
    String fileName = "testWS";
    String xmlString = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><web-services>Sample Application</web-services>";
    System.setProperty( "javax.xml.rpc.ServiceFactory", "weblogic.webservice.core.rpc.ServiceFactoryImpl");
    ServiceFactory factory = ServiceFactory.newInstance();
    * Create an instance of the Service with the given service QName
    Service service = factory.createService(new QName(serviceName));
    Call call = service.createCall(new QName(portName));
    call.setTargetEndpointAddress(address);
    call.setProperty(Call.SOAPACTION_USE_PROPERTY, new Boolean(true));
    call.setProperty(Call.SOAPACTION_URI_PROPERTY, "");
    call.setProperty(ENCODING_STYLE_PROPERTY, URI_ENCODING);
    QName stringQName = new QName("http://www.w3.org/2001/XMLSchema", "string");
    * Set operation name to invoke.
    call.setOperationName(new QName(namespaceURI,"<operationName>"));
    * Add parameters definitions in the call object.
    call.addParameter("string", stringQName, String.class, ParameterMode.IN);
    call.addParameter("string0", stringQName, String.class, ParameterMode.IN);
    call.addParameter("string1", stringQName, String.class, ParameterMode.IN);
    * Set definition of the return type.
    call.setReturnType(stringQName);
    Object[] inParams = new Object[3];
    inParams[0] = new String(agencyID);
    inParams[1] = new String(fileName);
    inParams[2] = new String(xmlString);
    String result = ((String)call.invoke(inParams)).toString();
    System.out.println(result);
    }catch (Exception e){
    e.printStackTrace();
    Please give your suggestions for the above said exception....
    Thanks & Regards....

    Hi All,
    I am getting the below exception while invoking webservices using Dynamic client without WSDL.
    javax.xml.rpc.soap.SOAPFaultException: Exception during processing: java.lang.RuntimeException: Missing license file for: WebLogic Platform 8.1 (see Fault Detail for stacktrace)
    at weblogic.webservice.core.ClientDispatcher.receive(ClientDispatcher.java:313)
    at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:144)
    at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:457)
    at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:443)
    at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:558)
    at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:411)
    at atthi.webservice.TestWSWithWSDL.main(TestWSWithWSDL.java:41)
    Exception in thread "main"
    Please find my source file below....
    import javax.xml.rpc.ServiceFactory;
    import javax.xml.rpc.Service;
    import javax.xml.rpc.Call;
    import javax.xml.rpc.ParameterMode;
    import javax.xml.namespace.QName;
    public class TestWSWithoutWSDL {
    public static void main(String[] args) {
    try{
    String address = "<WSDL's SOAP Address>";
    String namespaceURI = "<namespaceURI>";
    String serviceName = "<serviceName>";
    String portName = "<portName>";
    String ENCODING_STYLE_PROPERTY = "javax.xml.rpc.encodingstyle.namespace.uri";
    String URI_ENCODING = "http://schemas.xmlsoap.org/soap/encoding/";
    String agencyID = "AGN00533";
    String fileName = "testWS";
    String xmlString = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><web-services>Sample Application</web-services>";
    System.setProperty( "javax.xml.rpc.ServiceFactory", "weblogic.webservice.core.rpc.ServiceFactoryImpl");
    ServiceFactory factory = ServiceFactory.newInstance();
    * Create an instance of the Service with the given service QName
    Service service = factory.createService(new QName(serviceName));
    Call call = service.createCall(new QName(portName));
    call.setTargetEndpointAddress(address);
    call.setProperty(Call.SOAPACTION_USE_PROPERTY, new Boolean(true));
    call.setProperty(Call.SOAPACTION_URI_PROPERTY, "");
    call.setProperty(ENCODING_STYLE_PROPERTY, URI_ENCODING);
    QName stringQName = new QName("http://www.w3.org/2001/XMLSchema", "string");
    * Set operation name to invoke.
    call.setOperationName(new QName(namespaceURI,"<operationName>"));
    * Add parameters definitions in the call object.
    call.addParameter("string", stringQName, String.class, ParameterMode.IN);
    call.addParameter("string0", stringQName, String.class, ParameterMode.IN);
    call.addParameter("string1", stringQName, String.class, ParameterMode.IN);
    * Set definition of the return type.
    call.setReturnType(stringQName);
    Object[] inParams = new Object[3];
    inParams[0] = new String(agencyID);
    inParams[1] = new String(fileName);
    inParams[2] = new String(xmlString);
    String result = ((String)call.invoke(inParams)).toString();
    System.out.println(result);
    }catch (Exception e){
    e.printStackTrace();
    Please give your suggestions for the above said exception....
    Thanks & Regards....

  • Setting the charset in dynamic invocation

    I'm on WLS 8.1 SP1. The doc (http://e-docs.bea.com/wls/docs81/webserv/i18n.html)
    shows how to set the charset attribute of the Content-Type HTTP header via the
    client stub. But I am not using client stubs, I'm using dynamic invocation. So
    how do I accomplish the equivalent? I don't see an obvious javax.xml.rpc.Call
    property field for this.
    TIA...
    Mark

    The trouble with this example is that it doesn't use JAX-RPC dynamic invocation.
    The attachment contains an example of what I am trying to do. The method of interest
    is case3(), in which. on lines 294-296, is an (unsuccessful) attempt to set the
    character set. The other methods of interest here are getEMAExceptionServices()
    (which creates the javax.xml.rpc.Service object) and getUpdateExceptionResolutionStatusCall(Service
    iService) (which creates the javax.xml.rpc.Call object).
    [OK, this time I attached something.]
    -- Mark --
    Bruce Stephens <[email protected]> wrote:
    Hi Mark,
    Take a quick look at Manoj's Mega example [1] and see if this clears
    things up. If not, post your code and we can take a look, or speak to
    our outstanding support team: http://support.bea.com or [email protected]
    Thanks,
    Bruce
    [1]
    http://manojc.com/tutorial/mega/client/BindingProperties.java
    Mark Shaffer wrote:
    Bruce,
    If I try to get the "weblogic.webservice.bindinginfo" property froma Call object,
    this exception is thrown:
    javax.xml.rpc.JAXRPCException: unknown property: weblogic.webservice.bindinginfo
    at weblogic.webservice.core.rpc.CallImpl.getProperty(CallImpl.java:322)
    -- Mark --
    Bruce Stephens <[email protected]> wrote:
    Hi Mark,
    Did you try the code in the doc?
    import weblogic.webservice.binding.BindingInfo;
    BindingInfo info =
    (BindingInfo)stub._getProperty("weblogic.webservice.bindinginfo" );
    // The following method sets the Content-Type HTTP header
    info.setCharset( "UTF-8" );
    port.helloWorld();
    Thanks,
    Bruce
    Mark Shaffer wrote:
    Bruce,
    OK, but the disconnect here is that I don't have a BindingInfo object,nor do
    I know how to obtain one. All I have is javax.xml.rpc.* objects.
    -- Mark --
    Bruce Stephens <[email protected]> wrote:
    Hi Mark,
    Your client application can specify the character set that it would
    prefer the Web Service to use in its response by using the
    weblogic.webservice.binding.BindingInfo.setAcceptCharset() method.
    See: http://e-docs.bea.com/wls/docs81/webserv/i18n.html#1069629
    There is example code there as well.
    Hope this helps,
    Bruce
    Mark Shaffer wrote:
    I'm on WLS 8.1 SP1. The doc (http://e-docs.bea.com/wls/docs81/webserv/i18n.html)
    shows how to set the charset attribute of the Content-Type HTTP
    header
    via the
    client stub. But I am not using client stubs, I'm using dynamic
    invocation.
    So
    how do I accomplish the equivalent? I don't see an obvious javax.xml.rpc.Call
    property field for this.
    TIA...
    Mark
    [UTEMAExceptionServices.java]

  • Dynamic invocation in Axis

    I've deployed two services, one using framework Axis, one using framework Muse(a web service apache project).
    I want to make a dynamic invocation from Axis to use an operation of Muse, I add the code in the impl document of Axis. Is it possible to do that?
    Thank you in advance.

    first of all, you are invoking the webservice with a string, not with xml.
    secondly, ditch axis and go read a tutorial on jaxws, it will be 10 times easier.

  • Array of String for input paramter + dynamic invocation

    Does anybody know a place I can find an example of web service
    using the following methods:
    1. Array of String as input parameter
    2. Client uses dynamic invocation
    Specifically, 1. how do I define the parameter type in web-services.xml?
    2. how do I refer to the type in a client code?
    Thanks,
    Hong

    Hello,
    The doclitparam interop round 3 example does a echo string array.
    http://dev2dev.bea.com/managed_content/direct/webservice/r3server.zip
    Also there is a DII example in the WebService Wizard's archive:
    http://dev2dev.bea.com/managed_content/direct/webservice/wswa.html#qz29
    HTH,
    Bruce
    Hong wrote:
    Does anybody know a place I can find an example of web service
    using the following methods:
    1. Array of String as input parameter
    2. Client uses dynamic invocation
    Specifically, 1. how do I define the parameter type in web-services.xml?
    2. how do I refer to the type in a client code?
    Thanks,
    Hong

  • How to load data dynamically into target tables using files as a source

    Hi ,
    My scenario needs a single interface to load the data of 5 different files into five target tables using a single interface. All target tables have the same structure. It is possible to point to variable source files using ODI. But the same approach is not working with Database tables. I am getting errors while trying to make my target /source table as a dynamic one.
    Can anybody suggest anything. The last option would be writing a dynamic PL/SQL block in the KM. Any other suggestions friends ?
    Regards,
    Atish

    After creating a pair of identical source and target tables, I have carried out the following steps:
    I am trying just keeping the target as variable
    a)created a one to one interface,
    b)tested that it is running.
    c)created a variable(type =text),
    d)used the variable as #v_name in the resource of the target table datastore.
    e)in a package used the variable in a set variable step (first step).
    f) used the interface as the second step.
    g)executed the same in my context.
    the <project_code>.variable_name is not getting substituted in the sql_code that is generated by the KM. My KM is SQL Control Append and following is the code that it generates in the Insert into I$ step:
    /* DETECTION_STRATEGY = NOT_EXISTS */
    insert /*+ APPEND */ into HR.I$_JOBS_COPY1
         JOB_ID,
         JOB_TITLE,
         MIN_SALARY,
         MAX_SALARY,
         IND_UPDATE
    select      
         JOBS.JOB_ID     JOB_ID,
         JOBS.JOB_TITLE     JOB_TITLE,
         JOBS.MIN_SALARY     MIN_SALARY,
         JOBS.MAX_SALARY     MAX_SALARY,
         'I' IND_UPDATE
    from     HR.JOBS JOBS
    where     (1=1)
    and not exists (
         select     'X'
         from     HR.#PLAYGROUND."v_tab_name" T
         where     T.JOB_ID     = JOBS.JOB_ID
              and     ((JOBS.JOB_TITLE = T.JOB_TITLE) or (JOBS.JOB_TITLE IS NULL and T.JOB_TITLE IS NULL))
              and     ((JOBS.MIN_SALARY = T.MIN_SALARY) or (JOBS.MIN_SALARY IS NULL and T.MIN_SALARY IS NULL))
              and     ((JOBS.MAX_SALARY = T.MAX_SALARY) or (JOBS.MAX_SALARY IS NULL and T.MAX_SALARY IS NULL))
         )

  • Web Services Dynamic Invocation

    Hi,
    I am trying to find a way to do web services dynamic invocation where params and return type can be complex types.
    The process I intent to follow is, query a uddi registry based on some search criteria to get a reference to the service wsdl. Use maybe wsdl4j to introspect the wsdl to determine porttype, operations, param data types etc and then perform a dynamic invocation.
    Does anybody have any ideas on how best this can be achieved without having to reinvent the wheel.
    Thanks,
    -V

    Hi
    I am looking for the same thing, please let me know if you resolve it.
    thanks

  • Passing table from ABAP to webservice using SOAP

    Hello:
    I am trying to pass table data from ABAP code to a webservice using SOAP.  I have seen many examples of passing single value parameters such as:
      DATA: osoap   TYPE REF TO CSoapDocument.
        GET REFERENCE OF p_refno INTO dref.
        CALL METHOD osoap->add_parameter
          EXPORTING
            direction  = CSoapConstants=>ic_param_in
            name       = 'ws_ref_no'
            value      = dref.
        CALL METHOD osoap->set_tag_name_format
          EXPORTING format = CSoapConstants=>ic_tagfmt_default.
    However I cannot find any code examples of passing table data to a webservice.  Can anyone provide a sample or documentation for how to pass table data to a webservice?
    Thanks,
    Craig

    Hi Craig
    i just posted this on SAPfans for you too!
    if you are not using PI, then follow this....
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/bb/ddb33d2ae46b3be10000000a114084/frameset.htm
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/9b/dad1ae3908ee44a5caf57e10918be9/frameset.htm
    this is converting XSD to ABAP....
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/de/705c3c3806af06e10000000a11402f/frameset.htm
    i have only used PI to do this via ABAP Proxies....

  • Dynamic Invocation: Error The SOAP PA receives a SOAP Fault from SOAP serve

    Hi All,
    I am trying to run the sample code "Dynamic Invocation of Oracle9i Web Services using Oracle UDDI registry"
    I was able to run the web services, publish them, and inquiry them using local UDDI registry.
    However, while invoking any method provided by the web services using the inovk method I get the following error
    oracle.j2ee.ws.client.WebServiceProxyException: Invocation failed 5,100: The SOAP PA receives a SOAP Fault from SOAP server
    Can anybody help me please?
    Regards,
    S.Al Shamsi

    It looks like the problem is occuring on the server side. I guess you have included the stacktrace from the client, can you get hold of the server side stacktrace?

  • Unable to create WebService using Wizard

    XML experts,
    I am following the 'How to...Send XML Data to BW' guide.  In Step 26, for BW 3.5, I start to create WebService using SE37 and use the Wizard.  I go thru all the steps as follows:
    Virtual Inteface:  Myservice
    Short Description:  Myservice
    Endpoint Type:  Function Module
    Check  Name Mapping box
    Function Module:  /BI0/QI6ASENDXMLDATATOBW_RFC
    Name:  Myservice
    Short Description:  Myservice
    Profile:  Basic Authorization: SOAP Pro
    If you select Complete, the following objects are created in the Object Navigator:
    The virtual interface Mydemo
    The Web service Mydemo
    The address of the Web service is default_host/sap/bc/srt/rfc/sap/Mydemo
    In addition, the Web service definition is released for the SOAP runtime.
    To find the address of the Web service, use the transaction WSCONFIG, which supports you when you publish a Web service in the UDDI.
    WHEN I PRESS COMPLETE, I get a message 'Object can only be created in SAP Package'.  I SELECT OK and get the CREATE OBJECT DIRECTORY ENTRY popup for entering package info for transport.
    <b>Question:  Is this normal?  I tried local object ($tmp) and ZBIW, but it does not take it.  Says, test object cannot be created in foreign namespaces.  What do I need to do to bypass this?</b>
    Thanks a lot!!

    Hi
    <a href="/people/baris.buyuktanir2/blog/2007/02/12/how-to-create-dynamic-configurable-web-services-easily-with-netweaver-development-components-part-i 1</a>
    <a href="/people/baris.buyuktanir2/blog/2007/02/12/how-to-create-dynamic-configurable-web-services-easily-with-netweaver-development-components-part-ii 2</a>
    Regards
    Abhijith Ys

  • My family uses a single lap-top as our main internet connection and when we synch our respective I-pods, our I-tunes account seems to wipe-out our playlists, even though we have tried to create separate I-tune accounts.  Help!!

    My family uses a single lap-top as our home computer and several of us have i-pods that we like to synch, using I-tunes.  Although we've tried to create separate I-tune accounts, our i-tunes playlists are getting wiped out when one of us deletes songs on our I-pod and it seems as though I-tunes is not distinguishing our distinct accounts and all i-pods are being synched to reflect the latest i-pod anyone makes on their respective account.  It appears as though our distinct I-tune accounts are not being loaded on our lap-top when we sign in and unfortunately, when we're in I-tunes, there is nothing to indicate what account is on the screen.  For all the glowing appraisals apple-related products usually receive, we are finding i-tunes and its interface with our respective i-pods to be a very, very frustrating experience. 
    Can anyone shed some light on this for a family of non-techies?  Thx 
    Pegger64  

    You need to create separate Windows user accounts if you want to seperate the behaviour of iTunes for each user. That also means separate iTunes libraries for each user.
    Windows is a multi-user operating system but you are not using it properly. iTunes is not a multi-user application. No application is. You can't expect it to treat different users differently when they are all using the same computer user account.
    Do you understand what I mean?

  • Returning Errors from a webservice using XMLBeans

    I have a webservice that accepts XML as input and output parameters, and I'm using XMLBeans to handle this. I'm trying to work out how I can return error information from the webservice, so I created an Exception.xsd schema and 'include' it in the output XML Schema, so an exception xml element is valid in the output schema. The problem is, the XMLBean class generated from the output XML schema has no methods that allow me to create an Exception element. Is there some other way of handling the return of exceptions from webservices using XML?

    The answer is just throw a SoapFaultException and put the exception.xsd XMLBean in the FaultDetail section of the SoapFaultException.

  • I and my brother have different apple id's but are using the single itunes library on our home PC.When i am syncing my iphone most of the times the apps that were purchased with my brothers apple id is also getting on my iphone.

    i and my brother have different apple id's but are using the single itunes library on our home PC.When i am syncing my iphone most of the times the apps that were purchased with my brothers apple id is also getting on my iphone.
    How do i differentiate the apps that were purchased with my apple id and sync accordingly.As i want only the apps that were purchased in my apple id.
    I am aware of the fact that i can click on the app and check with "getinfo" to see with whose apple id it is brought.but there are hundreds app which i cannot check one by one.
    How do i filter the apps with apple id and sync?

    Connect the device to the computer.
    Open iTunes.
    Select the content desired to sync.
    Sync.

Maybe you are looking for