Accessing Party EDI details through code in 2013

Hi,
We are looking at options of accessing the Party EDI details from orchestration in BTS 2013 R2. But looks like the property X12Receiver belonging to the partner object  Microsoft.BizTalk.Edi.PartnerAgreementManager.Partner
has been deprecated. Although, using the property does not give a compilation error, it throws exception during runtime with the below error:
System.Data.SqlClient.SqlException (0x80131904): Could not find stored procedure 'edi_PartnerX12InterchangeSelect'.
Any pointers on how the accessing of party EDI details through code/within orchestration can be achieved? Appreciate any help on this regards. Thanks.

Refer "Custom Party Resolution" sample available in the BizTalk SDK -
http://msdn.microsoft.com/en-in/library/aa559134.aspx and pay specific attention to the code in "PartyResolutionStream.cs". This has the logic for querying the BizTalk Party database tables.
You can expose you own library/helper with this code and leverage it in the orchestration.
That having said, if you use the EDI Pipelines, the party resolution is done for you and available on the received message in the orchestration as promoted property. Refer
http://msdn.microsoft.com/en-us/library/bb226500.aspx
Regards.

Similar Messages

  • Retrieve the default content access account for search through code

    Hi there,
           Does anyone have the code to retrieve the default content access account (crawl account) for the MOSS search? I tried looking into Microsoft.Sharepoint.Search.Adminstration.SearchService namespace. It has a "crawlaccount" property but not sure how to initialize it.
    Thanks,
    Kish

    try:
    using Microsoft.Office.Server.Search.Administration;  
    using Microsoft.SharePoint;  
       using (SPSite site = new SPSite("http://basesmcdev2/sites/tester1"))  
                    SearchContext context = SearchContext.GetContext(site);  
                    Content content = new Content(context);  
                    return content.DefaultGatheringAccount;  
    http://www.certdev.com

  • Access SharePoint Online Data through code/powershell

    Hi All,<o:p></o:p>
    I need to access SharePoint Online site to upload documents from local machine to the doc libraries on the site.. (100s of docs)
    I am trying to see if I can use PowerShell script for this..  However, I see that SharePoint Online Management Shell cmdlets are not robust enough to do such operations..  Is there a way I can use CSOM / .net console app / any other way.. I am drawing
    blank here.. L<o:p></o:p>
    Any help is much appreciated.<o:p></o:p>
    Charan

    You can start from here
    http://blogs.technet.com/b/fromthefield/archive/2014/02/19/office365-script-to-upload-files-to-a-document-library-using-csom.aspx
    Regards Chen V [MCTS SharePoint 2010]

  • Exception while accessing web service through code

    I have a web service developed using AXIS deployed on Weblogic 8.1
    Another web application cotaining GUI deployed on Weblogic 10 tries to access this web service through code.
    This piece of code to invoke the web service is written in Action Class present inside web application. (Struts is used in GUI based web app)
    When the code tries to invoke web service I am getting following error.
    (401)Unauthorized xxx
         at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:630)
         at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:128)
         at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
         at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
         at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
         at org.apache.axis.client.AxisClient.invoke(AxisClient.java:180)
         at org.apache.axis.client.Call.invokeEngine(Call.java:2564)
         at org.apache.axis.client.Call.invoke(Call.java:2553)
         at org.apache.axis.client.Call.invoke(Call.java:1753)
         at com.ebv.app.web.action.UCS77_1ProcessOfficialChangeSaveDetailsAction.invokeAx(UCS77_1ProcessOfficialChangeSaveDetailsAction.java:243)
         at com.ebv.app.web.action.UCS77_1ProcessOfficialChangeSaveDetailsAction.callUCS77_1ProcessOfficialChangeWebService(UCS77_1ProcessOfficialChangeSaveDetailsAction.java:173)
         at com.ebv.app.web.action.UCS77_1ProcessOfficialChangeSaveDetailsAction.processAction(UCS77_1ProcessOfficialChangeSaveDetailsAction.java:133)
         at com.ebv.framework.web.action.EBVAction.execute(EBVAction.java:106)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
         at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    The web service URL is as follows:
    http://10.140.96.5:7808/services/ucs77_1/ProcessOfficialChangeSave77_1-v0001.soap
    However
    When I try to hit the webservice URL directly on browser login window appears where same username/password I provide which are passed in code to invoke the web service. I get the success page indicating that web service is invoked on hitting enter.
    The method used in UCS77_1ProcessOfficialChangeSaveDetailsAction.java to invoke web service is as follows:
    public String invokeAx
                   String xmlMessage,
                   String webServiceURL,
                   String webServiceOperation,
                   String username,
                   String password)
              String xmlResponse = null;
              Call webServiceCall = null;
              InputStream input = new ByteArrayInputStream(xmlMessage.getBytes());
              Service service = new Service();
              try
                   webServiceCall = (Call) service.createCall();
                   SOAPEnvelope env = new SOAPEnvelope(input);
                   SOAPEnvelope resEnv = null;
                   webServiceCall.setTargetEndpointAddress(new URL(webServiceURL));
                   webServiceCall.setOperationName(new QName(webServiceOperation));
                   webServiceCall.setUsername(username);
                   webServiceCall.setPassword(password);               
                   try
                        resEnv = webServiceCall.invoke(env);
                   catch (AxisFault e)
                        e.printStackTrace();
                        Message responseMessage = webServiceCall.getResponseMessage();
                        SOAPEnvelope soapXml = (SOAPEnvelope) responseMessage.getSOAPEnvelope();
                        xmlResponse = new String(soapXml.toString().getBytes(AppConstants.UTF8),AppConstants.UTF8);     
                   if (xmlResponse == null)
                        xmlResponse = resEnv.toString();
              catch (Exception e1)
                   e1.printStackTrace();
              return xmlResponse;
    Both the weblogic server reside on two different AIX machines.
    Can anybody tell what's the problem while invoking web service through code?

    time to look into the gateway logs as stated by the fault ..
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode xmlns:p="http://schemas.oblix.com/ws/2003/08/Faults">c</faultcode><faultstring>Step execution failed with an exception</faultstring><detail></detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
    looks like the cipher step might have failed

  • How can I set a third party application to access my organizations intranet through my organizations network

    how can I set a third party application to access my organizations intranet through my organizations network  . I am using blackberry bold 9700 OS 6

    Hi deepajithesh
    This feature is not available. Applications access the BlackBerry Network using the connection to BIS.
    Thanks
    -CptS
    Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)!

  • Accessing the KM Respository through Portal Code.

    Hi,
    I am New to Portal development.
    I want to Access the KM Repository through AbstractPortalComponent.
    Plz Reply ASAP with code.
    Thanks and Regards
    Kiran

    Hi Kiran,
    Here's some sample code that I've got of an abstract portal component that goes through the contents of a KM folder and displays the KM description for the file:
    package com.graybar.portal.titleload;
    import com.sapportals.portal.prt.component.*;
    import java.io.File;
    import java.util.ArrayList;
    import com.sapportals.portal.prt.component.IPortalComponentResponse;
    import com.sapportals.portal.security.usermanagement.*;
    import com.sapportals.wcm.repository.*;
    import com.sapportals.wcm.repository.service.IRepositoryServiceFactory;
    import com.sapportals.wcm.util.uri.*;
    public class TitleLoad extends AbstractPortalComponent {
        public void doContent(IPortalComponentRequest request, IPortalComponentResponse response) {
              response.write("starting... <BR>");     
              response.write("***************************** <BR>");
              IUser user = (IUser)request.getUser().getUser();
              IResourceContext resourceContext = new ResourceContext(user);
              // starting folder
              RID repositoryID = new RID("/documents/TitleLoad");
              // Get the Service
              IRepositoryServiceFactory repServiceFactory = null;
              try {
                   repServiceFactory = ResourceFactory.getInstance().getServiceFactory();
              } catch (Exception ex) {
                   ex.printStackTrace();
              if(repServiceFactory == null) {
                   System.out.println("Repository Service Factory is null!!");
              try {
                   IResource resource = ResourceFactory.getInstance().getResource(repositoryID, resourceContext);
                   if( resource != null ) {
                        if (resource.isCollection()) {
                             ICollection collection = (ICollection)resource;
                             IResourceList children = collection.getChildren();
                             int resourceCounter = 0;
                             String attrType = new String();
                             response.write("size = " + children.size() + "<BR>");
                             IProperty prop = null;
                             String propValue = null;
                             String resRid = null;
                             for (int i = 0; i < children.size(); i++){
                                  String validTo = new String();
                                  ArrayList attributes = new ArrayList();
                                  IResource ir = children.get(i);
                                  if (ir.getRID() != null)
                                       resRid = ir.getRID().toString();
                                  PropertyName propNameP = new PropertyName("http://sapportals.com/xmlns/cm", "description");
                                  prop = ir.getProperty(propNameP);
                                  response.write("before <BR>");
                                  try {
                                       propValue = prop.getStringValue();
                                  } catch (Exception e) {
                                       propValue = "";
                                  response.write("after <BR>");
                                  response.write("Name = " + ir.getName() + "; Description = " + propValue + "<BR>");
                                  resourceCounter++;
                   } else {
                        // resource not found
                        System.out.println("resource " + resource.getRID() + " does not exist");
              } catch( ResourceException e ) {
                // problem while retrieving the resource
                System.out.println("exception while trying to get resource " + e.getRID() + ": " + e.getMessage());
         response.write("finished <BR>");

  • No of classes, Methods, Lines of codes, DLL's used and Third Party Libraries details identifying tools

    We have started a project to migrate 100+ Web Applications developed using legacy Microsoft technologies to latest .Net 4.5 Framework.
    The following are the planned migration approach
    Classic Asp à                                                   
    Asp.Net 1.1 Framework à Asp.Net 4.5 Framework
    Asp.Net 2.0, 3.5, 4.0 Framework à         Asp.Net 4.5 Framework (Direct Migration)
    Asp.Net 2.0, 3.5, 4.0 Framework à         Asp.Net 4.5 Framework (Application Rewrite
    using MVC/Entity Framework)
    VB 6 (COM/DCOM) à                                  
    C# .Net 4.5 (Web Services)
    We have to analyze 100+ applications to categorize them as Simple/Medium/Complex conversions for planning the timeline for completing the migration activities.
    Analysis includes identifying the following details - No of classes, Methods, Lines of codes, DLL’s used and Third Party Libraries  details
    for 100+ Microsoft applications.
    Could you please let me know do we have any effective tool to identify above mentioned details?

    This forum is for Microsoft Project Server, an EPM tool. You will need to find a more suitable forum for your question.
    Good Luck with the conversion!
    Rod Gill
    Author of the one and only Project VBA Book
    www.project-systems.co.nz

  • I keep getting Error code: ERR_TIMED_OUT when accessing only one website through googlechrome or safari

    I keep getting Error code: ERR_TIMED_OUT when accessing only one website through googlechrome or safari

    Www.Onereceipt.Com<http://Www.Onereceipt.Com>
    Sent from my iPhone

  • Error while updating bank details through ESS

    Hi All,
    While updating banks details through ESS, " change in the payroll past not possible".
    I have checked IT0003 and noticed that accounted to  31.08.2014.
    I assume this might be causing the error. Could you please advice with your expertise.

    Let me explain how it happens and why we don't allow change of bank records in past 1959820 - ESS: Wrong delimit of TC3 records For other scenarios where ESS behavior is similar to PA30 :
    An example i share
    For other scenarios where ESS behavior is similar to PA30 :
    Current date < End date of current payroll period
    Current date > Accounted to date in IT0003
    Payroll status: released for payroll Got error when reviewing the editin
    -g.
    Error: Online maintenance is locked in payroll area QM
    Current date < End date of current payroll period
    Current date < Accounted to date in IT0003
    Payroll status: released for correction Got error when reviewing the edi
    -ting.
    Error: Change in the payroll past not possible
    Current date < End date of current payroll period
    Current date < Accounted to date in IT0003
    Payroll status: released for payroll Got error when reviewing the editin
    -g.
    Error: Online maintenance is locked in payroll area QM
    When the infotype 0009 is modified, the system is regrouping data for the infotypes which are checked releavnt according to the table T582G. Retroactivity is checked via V_T582A In view V_T582A for infotype 0009 you will see, I guess, that the field 'Past entry all.' is maintained with an 'E'. This means that it is not allowed to maintain any infotype 0009 record for the payroll past. The important day for this check is the last day of the last accounted period. Retroactive change of infotype 0009 is not permitted as the bank transfer is already done. This is the reason why this infotype can not be changed retroactively. For bank records end user must not be allowed to maintain past date records and should not be allowed to change any other detail of record when payroll for that period is already run. for e.g. if current date is 26/11/2013. Then end user must not be allowed to edit other bank record effective from 25/11/2013. We should not allow end user to edit record effective from 27/11/2013 because payroll is already run for that period. If user is allowed to change then data maintained in infotype 9 and information send to payroll may be different. You can use BAdi HRXSS_PER_BEGDA,to default the next payroll period

  • Unable to apply custom theme with background Image through code

    Hi,
    I am creating custom SharePoint 2013 theme and applying it through code on site by referring MSDN Article : "http://msdn.microsoft.com/en-us/library/office/jj927175(v=office.15).aspx".
    However when I try to add background image in custom theme and apply that theme to site then sites UI breaks.
    Details: I have two features, in feature-1: I am Deploying *.spfont, *.spcolor and background image. Then I am adding a new entry in "composed looks" list for my custom theme. in feature 2- I am applying the custom theme to site by using following
    code
    SPTheme theme = SPTheme.Open("NewTheme", colorPaletteFile, fontSchemeFile, backgroundURI);theme.ApplyTo(Web, true);
    Both feature activates without any errors, new entry also gets added in 'Composed Looks' list with all correct URLs, current item of composed looks list also change to custom theme but entire UI of site breaks If I remove background Image code from custom theme then everything works fine. Following code works fine
    SPTheme theme = SPTheme.Open("NewTheme", colorPaletteFile, fontSchemeFile);
    theme.ApplyTo(Web, true);
    If I apply same background Image manually(not through code) then also everything works as expected.Any help will be really appreciated.

    Hi,
    Thanks for your sharing, it will be helpful to those who stuck with the similar issue.
    Best regards
    Patrick Liang
    TechNet Community Support

  • How to use Axis to access a web service through Authentication  proxy

    Using axis access internat web service is success,but access a web service through Authentication proxy is failure.But other java classes connect through a proxy to the internet which works very well:
    please help me ,thank you!!!
    import org.apache.axis.client.Call;
    import org.apache.axis.client.Service;
    import javax.xml.namespace.QName;
    //this is my access webservice faliure   codes
    public class TestClient
       public static void main(String [] args) {
           try {
                System.getProperties().setProperty("http.proxySet", "true");
                System.getProperties().setProperty("http.proxyHost","proxy.com");
                System.getProperties().setProperty("http.proxyPort", "8080");
                System.getProperties().setProperty("http.proxyUser", "username");
                System.getProperties().setProperty("http.proxyPassword","password");
               String endpoint =
                        "http://nagoya.apache.org:5049/axis/services/echo";
               Service  service = new Service();
               Call     call    = (Call) service.createCall();
               call.setTargetEndpointAddress( new java.net.URL(endpoint) );
               call.setOperationName(new QName("http://soapinterop.org/", "echoString") );
               String ret = (String) call.invoke( new Object[] { "Hello!" } );
               System.out.println("Sent 'Hello!', got '" + ret + "'");
           } catch (Exception e) {
               System.err.println(e.toString());
       }I get an "(407)Proxy authorization required" error?

    I am also looking for a solution. Does any one know how to do through code instead of jvm settings?
    Thanks in advance!

  • Third Party Process (PR through Sales Order)

    Hi all,
    I have to configure the third party scenario (PR through Sales order) for one of my client.
    So can anybody tell me what are all pre-requisite / settings from the configuration point of view as well as from the transaction point of view.
    Thanks
    Shubham

    Hi,
    here is some stuff regarding third party purchasing,
    may be it will use ful,
    u2022     The item category group (BANS) in the sales:sales org.data screen of the material master controls whether or not the material will always be a third party material.  In this case, the item category in the sales order will be defaulted to u201CTAS.u201D   If the material is also procured internally, then the item category group can be set to u201CNORM,u201D and the material can still be used for third-party processing if desired.
    u2022     The item category in the sales order (TAS) informs the system that      procurement data must be maintained for the order.  In addition, this item  category results in a purchase requisition being automatically created with its item   category defaulted (S).
    u2022     The purchase requisition is created as a result of a sales order.  For each schedule line (quantities for sales orders broken up by dates of delivery), a purchase requisition item is created, provided that the item category on the
    sales order is u201CTASu201D for third-party.  The purchase requisitions created can
    be viewed and even edited from the schedule line screen (Edit-
    Procurement  Details).
    u2022     Changes in quantities, dates and account assignments in the purchase order result in the automatic changing of the sales order.
    u2022     A desired vendor (informational field) can be specified in the sales order in the procurement data for the order.  In addition, a fixed vendor may be assigned in this data if known at the time of the sales order. This then becomes the supplier for the third-party items. If the vendor is not specified in the sales order, the purchase requisition goes through the normal source determination.
    u2022     The account assignment in the purchase requisition can be either the sales order (C), or aux. account assignments (X). 
    u2022     Once created, the third-party purchase requisition follows normal
    purchasing procedures.
    u2022     Customer delivery information is copied onto the purchase requisition from the sales procurement data.
    u2022     If you create delivery schedules or change quantities during the purchasing process, these automatically get copied back to the schedule lines on the
    sales order.
    The goods receipt indicator can be found in the purchase requisition which can be edited from the sales order (Click on Item line- Hit Schedule Lines button -Hit Purchase Requisition Button).  This indicator determines whether or not the customeru2019s goods receipts are monitored.  When the indicator is off, invoice verification is done against the purchase order quantity, and the delivery of goods to the customer is not input into the system
    chenna
    Edited by: lakshmi reddy on Oct 6, 2010 2:23 PM

  • How to configure MS-Access 2010 DB details on weblogc using DBAdapter

    Hi Experts,
    Can any one help me how to configure MS-Access 2010 DB details on weblogic 11g using DBAdapters.
    If you provide step by step instuction, it is very usful to me.
    If you have any screen shots you can any one please send a file to my mail ID:[email protected]
    My Requirement:
    I need to fetch 3 columns data (product code/ serial numer and serial status) from MS-Access 2010 and store it on oracle 11g, for that I have wrote a web service code and I need to make it automation. I don't have any IDEA, how to make this web serevice as automation (automation means, when ever new record stored in MS-Access data I need to fetch newly created record from MS-Access 2010 and send it to Oracle 11g)
    Note: MS- Access 2010 present at vision system and Oracle 11g installed in linux server.
    Thanks,
    Phani

    Hi,
    I am also facing the same issue, not sure about what url to use. And also the login webservice doesn't work while I am testing using http://localhost:81/RTC/RTCService.asmx. It always throwing the following error
    " Unable to cast COM object of type 'RTCLib.RTCClientClass' to interface type 'RTCLib.IRTCClient'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{07829E45-9A34-408E-A011-BDDF13487CD1}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE))."
    Is the current owc_lcs.zip support MS Office Communication Server 2007?
    Please share the configuration step if anyone already integrated OCS 2007.
    Thanks,
    -Mukesh.
    Edited by: user9127933 on Feb 19, 2010 4:05 AM

  • How to give  acces  to app to use  the  images in device through code

    Hi,
    I am writting an Iphone app, in some part of my application there is a facility  to the users  to  upload their files , but the device is asking to give permission to the app to access files,   i have to do that  manually , my question   is there any way to acheive that through code,  In  am  using Xcode to  create my app
    Thanks.

    Hi Kasturi,
    > not accepting the points
    It worked on this and on one other thread, but this is still open: How to upload the image
    > want upload the images from the client side machine
    > to KM
    In the thread I just referred to, I already provided information about the HTMLB upload control. With this at hand, you'll get the file from the client to the server.
    At server side, get an ICollection instance where you want to store the file and create the corresponding resource. See https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/javadocs/nw04/sp12/knowledge management/com/sapportals/wcm/repository/icollection.html#createresource(java.lang.String,%20com.sapportals.wcm.repository.IPropertyMap,%20com.sapportals.wcm.util.content.IContent)
    Hope it helps
    Detlev

  • SAP to 3rd party: EDI and XI: Needed advantages and disadvantages

    HI All,
    I have a requirement to sent PO data from SAP to 3rd party Vendors.(more than 30 vendors). Client insists on using EDI.!!
    I have completed the config on SAP R/3 side and IDOCS are created in SAP R/3.
    Since we have XI in the landscape, I have a few questions in my mind. Appreciate if you could give you feedback on these questions:
    1. Should we send data directly from SAP to 3rd party using EDI adapter and avoid XI.
    2. I assume EDI adapter will automatically convert IDOC to vendor format data and vice-versa.
    3. All 30+ vendors will need to access this EDI adapter system or do they all need to have a separate one installed in there landscape.
    4. If we use XI, will the adapter be able to communicate to XI. If yes what is the adapter name which connects to XI.
    5. All vendors need this data in a slightly different format, so will the EDI adapter do the format conversion for every vendor ?
    6. Since all vendors have a diff file format needed, I want to avoid doing extensive message mapping in XI. So can the EDI adapter handle it or is ther any easy way to do this mapping.
    7. If mapping is not possible, then does it mean I will have to create a separate IDOC for each vendor in R/3 ( in vendor specific format) and send that to them.
    Thanks in advance.
    Regards
    Shirin

    Hi,
    1) Should we send data directly from SAP to 3rd party using EDI adapter and avoid XI.
    A) For EDI integration u need to have the EDi adapters and for that u need to purchase the seeburger license and which is need to be installed on XI and after that only u can use EDi adapter with Xi.
    U can not ignore XI.
    2. I assume EDI adapter will automatically convert IDOC to vendor format data and vice-versa.
    A) Yes but only when u purchase the seeburger license. there are other ways as well either use conversion agent or module program which convert the XML to EDI format.
    3. All 30+ vendors will need to access this EDI adapter system or do they all need to have a separate one installed in there landscape.
    A) U have to use the EDI adapters with Xi and configure ur scenario in XI for all the vendors.
    4. If we use XI, will the adapter be able to communicate to XI. If yes what is the adapter name which connects to XI.
    A) Seeburger provide As2,X400,FTP,VAn adapters for EDi integration.
    5. All vendors need this data in a slightly different format, so will the EDI adapter do the format conversion for every vendor ?
    A) What EDI format ur vendor receivers the data it depends upon that.
    6. Since all vendors have a diff file format needed, I want to avoid doing extensive message mapping in XI. So can the EDI adapter handle it or is ther any easy way to do this mapping.
    A) Mapping is the part of desing and mapping changes accroding to the business requirement and mapping rule which is provided by Functional people.
    7. If mapping is not possible, then does it mean I will have to create a separate IDOC for each vendor in R/3 ( in vendor specific format) and send that to them.
    A) u need to do the mapping between IDOC and EDi then only the data will be mapped with the required target EDI strcuture.
    chirag

Maybe you are looking for