Publish web services with SAP 7.1

hello everybody,
i'm working with a sap installation netweaver 7.1
i want publish some functions as web services.
I made it many time with NW 7.0 without problem.
At the moment i'm using the same procedure:
SE37 - function name - Utilities - create webservices, etc etc...
SOAMANAGER - download wsdl etc etc
for test wsdl , usually i use Eclipse or other wsdl client.
when i publish webservices with 7.1 i have back errors from each client.
Does procedure is changed??
i'm missing something?

Did you used WSPUBLISH transaction for publishing?
You just configured service NOT published it. You can still configure it using SOAMANAGER just create service and endpoint (give any name) and it is done then you can use binding url for testing.
If this doesn't help then my advice to re-read everything related to Webservice Configuration (do not read about publishing). You are confusing two different thing, YOU CAN'T PUBLISH SERVICE WITHOUT SR.
Please read this and follow exact steps: http://help.sap.com/saphelp_nw70/helpdata/en/47/3971ff39591a53e10000000a1553f7/content.htm
If you are creating using wizard in SE80/SE37 then skip publishing part of service.
Regards,
Gourav

Similar Messages

  • INVOKING WEB SERVICE FROM SAP ERP

    Hi to all
    I need interchange informacion between NON-SAP system and SAP ERP using web services
    I know publish web services in SAP ERP, but I don't know how SAP consume a WS of other system
    Please, somebody know how can I do it this ? I don't want that XI consume this WS, I want that SAP ERP consume it.
    Thank you and regards
    Dario

    Hi,
    we can do it using Webdynpro for Java or ABAP. In addtiion to this check wtih any EDI related ones or ALE-IDOCS.
    Psl check this abt the Web Services information-
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/109aa318-5aa6-2a10-799d-a495383c1e01
    Reward if helpful.
    Best Wishes,
    Chandralekha

  • How to publish a SAP Web Service in SAP XI/PI 7.0

    Hi,
    First I've to say that I'n new in this deals with SAP Web Services and SAP XI/PI.
    I've created a Web Service with TX SE80 using a standard BAPI.
    I've created the Client Proxy with TX SE80.
    I've created a Logical Port wiht TX LPCONFIG.
    I've tried this is SOAMANAGER but I have this error...
    "SRT Framework exception: Uninstantiated object "subject sidl service" in method IF_SRT_WSP_CONFIG_SIDL~CREATE_CLNT_CFG_FROM_WSDL_D of class CL_SRT_WSP_CONFIG_SIDL"
    I would like to publish this service in my SAP XI/PI 7.0
    How can I solve the error in SOAMANAGER?
    How can I publish de SAP WS that I've created in SAP XI/PI?
    Thanks a lot.
    Waiting for your news.
    Fernando.

    Hi Dimitri,
    I had the same problem:
    "SRT Framework exception: Uninstantiated object "subject sidl service" in method IF_SRT_WSP_CONFIG_SIDL~CREATE_CLNT_CFG_FROM_WSDL_D of class CL_SRT_WSP_CONFIG_SIDL"
    And by following Nags hints I got solution:
    1, On the system where is your service provider, run transaction SICF
    2, Execute this transaction
    3, Go to node: default_host/sap/bc/srt/wsil
    4, Right click on "wsil" -> choose "Test service" - web browser should open with XML definition of service
    5, Find your service provider. In my case it looks like this:
    <service>
    <name>ZTEST_WS</name>
    u2212
    <wsdlNamespace>
    urn:sap-com:document:sap:soap:functions:mc-style/service
    </wsdlNamespace>
    <wsdlName>service</wsdlName>
    u2212
    <wsdl>
    http://xxx.yyy.com:8000/sap/bc/srt/wsdl/srvc_DF838C999AA282F18829001CC4D74176/wsdl11/service/ws_policy/document?sap-client=800
    </wsdl>
    </service>
    5, Look for WSDL link -> in my case:
    http://xxx.yyy.com:8000/sap/bc/srt/wsdl/srvc_DF838C999AA282F18829001CC4D74176/wsdl11/service/ws_policy/document?sap-client=800
    I dont know why, but this link is different like WSDL link in service definition which I can see in SE80:
    http://xxx.yyy.com:8000/sap/bc/srt/wsdl/sdef_ZTEST_WS/wsdl11/ws_policy/document?sap-client=800
    6, Use this link (from "wsil") instead of link from SE80 in SOAMANAGER to create logical port
    7, Yours logicall port should be created without errors.
    My question - have anybody idea, why this links are different and why only that second one works?
    Peter

  • Connect to Secure web service with certificate from SAP EP

    Hi Experts,
    Here is the current situation:
    1. Our business requirement is to connect 3rd party RESTful web service which requires secure connection with private client certificate attached
    2. I've tested in my Java test application and successfully attached private certificate to HttpsURLConection request to the web service and made a connection. No problem at all.
    KeyStore keyStore  = KeyStore.getInstance("PKCS12");
    InputStream inputStream = new FileInputStream("privateKeyCert.p12");
    keyStore.load(inputStream, "myPassword".toCharArray());
    KeyManagerFactory keyManagerFactory = KeyManagerFactory.getInstance(KeyManagerFactory.getDefaultAlgorithm());
    keyManagerFactory.init(keyStore, "myPassword".toCharArray());
    KeyManager[] kms = keyManagerFactory.getKeyManagers();
    SSLContext sslContext = SSLContext.getInstance("SSL");
    sslContext.init(kms, null, new SecureRandom());
    SSLSocketFactory sockFact = sslContext.getSocketFactory();
    URL url = new URL("https://www.thirdpartywebservice.com/testroot/");
    HttpsURLConnection conn = (HttpsURLConnection) url.openConnection();
    conn.setSSLSocketFactory(sockFact);
    conn.setRequestMethod("POST");
    conn.setDoOutput(true);
    conn.setDoInput(true);
    conn.setUseCaches(false);
    conn.setDefaultUseCaches (false);
    conn.setRequestProperty("Content-Type", "text/xml");
    3. Next, I tried to apply my Java application to SAP EP NetWeaver, and found that I have to use SecureConnectionFactory:
    https://help.sap.com/saphelp_nw70ehp1/helpdata/en/e2/71c83edf72e16be10000000a114084/content.htm
    4. So, I modified my Java code for SAP EP:
    KeyStore keyStore  = KeyStore.getInstance("PKCS12");
    InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream("privateKeyCert.p12");
    keyStore.load(inputStream, "myPassword".toCharArray());
    SecureConnectionFactory scFactory = new SecureConnectionFactory(keyStore);
    HttpURLConnection conn = scFactory.createURLConnection("https://www.thirdpartywebservice.com/testroot/");
    conn.setRequestMethod("POST");
    conn.setDoOutput(true);
    conn.setDoInput(true);
    conn.setUseCaches(false);
    conn.setDefaultUseCaches (false);
    conn.setRequestProperty("Content-Type", "text/xml");
    And I'm facing the following error message:
    Exception: java.security.UnrecoverableKeyException: ja
    va.security.GeneralSecurityException: Unable to decrypt private key: javax.crypto.BadPaddingException: Invalid PKCS#5 padding length: 253
    Could you please help me what this error message means?
    Do you think do I need to to do some other configuration to make connection to web service with client certificate?
    This is our first approach. Please help...
    Thank you in advance.

    SunJSSE implement SSL server CertificateRequest in a strict mode, if client failed to find a proper certificate corresponding the server request, it does not guess what's the proper certificate and send to the server. In your case, because there is no intermediate certificate in the client context, so there is no way to make the decision which certificate would be acceptable by server, so client does not send any cert to server. That's why you got a handshaking error.
    I guess your client key store does not contains a full certificate path from the client end-entity certificate to the root CA. Please import the full certificate path into the key store.
    BTW, these approaches should work, but I found no reason why one does not adopt #1:
    1. import the full certification path of client certificate into client key store.
    2. as a workaround, configure the server to send a list including the intermediate certificates;
    3. as a workaround, you will have to customize the client KeyManager if you don't want to or are not able to configure the server to send a list including the intermediate certificates.

  • How to consume sap xi pi web services or sap RFC with oracle 11g forms.

    Dear All
    how to consume sap xi pi web services or sap RFC with oracle 11g forms.
    or
    how to config 11g forms with sap xi....
    or how to call sap xi web services in 11g forms....
    or can send sample code....
    Regards
    smfatmi
    Edited by: smfatmi on Oct 17, 2011 2:16 AM
    Edited by: smfatmi on Oct 17, 2011 2:17 AM

    Dear All
    how to consume sap xi pi web services or sap RFC with oracle 11g forms.
    or
    how to config 11g forms with sap xi....
    or how to call sap xi web services in 11g forms....
    or can send sample code....
    Regards
    smfatmi
    Edited by: smfatmi on Oct 17, 2011 2:16 AM
    Edited by: smfatmi on Oct 17, 2011 2:17 AM

  • Can we publish Flows as Web Services in SAP BODS ? How ?

    Hello Friends,
    Can we publish Flows as Web Services in SAP BODS ? How ?
    Best Regards,
    Bheem.

    Hello
    Batch jobs and real-time services can be published via the Data Services web service.  See the Integrator Guide for full details - http://help.sap.com/businessobject/product_guides/sbods42/en/ds_42_integrate_en.pdf
    Michael

  • Failed to test a SAP PI Published web service on SOAPUI

    Hi All,
    I have developed the RFC to Web service through SAP PI 7.1 . Web service published on 'Services Registry' and test on it. It accepts the my request and respond from SAP R3. All the message was successfully recorded on SXMB_MONI.
    In Integration Directory, i could view the web service URL . I navigated to the Sender Agreement -> Display WSDL and i could see the "WSDL URL' and wsdl content on large text box.
    I access the WSDL URL from SOAPUI tool and set the preference -> proxy setting also. it populated the request message successfully but respond gives the '400 Bad HTTP request' and Detail: -> illegal path specified  . No SOAPUI request recorded on SXMB_moni.
    i try the same following way also . i saved the WSDL on xml file and access it through the SOAPUI -> import project. that also failed on SOAPUI.
    Can you please help to solve the issue ?
    Thanks,
    Rehan

    Hi Rehan
    Please check the below blog, it might help
    Publish services from PI 7.1 to the Service Registry
    Consuming SAP PI published Web Service
    regards,
    Harish

  • Calling and Publishing Web Service

    Hi, I am new to Web Services in SAP. Got 2 questions regarding this:
    1. How do we call a Web Service from SAP?
    2. If I want to publish a Web Service in SAP ECC6, what are the required steps?
    Sorry, haven't had much luck with my searches. Thanks in advance!

    You can check the following url/documentation to get an idea of how the Web Services work in SAP:
    [Administration of the Internet Communication Manager|http://help.sap.com/erp2005_ehp_04/helpdata/EN/b8/2a8d65be7eee4eb66067f8a33d1c8b/frameset.htm]
    Also check [Internet Communication Framework|http://help.sap.com/erp2005_ehp_04/helpdata/EN/36/020d3a0154b909e10000000a114084/frameset.htm].
    Nelis

  • How to create a web services with Developer Studio?

    hi all,
    I would like to know how can I create a Web Services with Developer Studio 7.0, but a try because I could not publish it to consume.
    thanks!

    Thanks for your answers
    Web Services try when I get the following error:
    http://img386.imageshack.us/my.php?image=errorms9.jpg
    <--Localization failed: ResourceBundle='com.sap.caf.rt.resources.CAFExceptionResources',
    ID='MMR_BO_NOTFOUND', Arguments: ['Prueba2Service']-->
    I do not know what the cause of error
    thanks

  • Issue with OSI PI WCF Web Service with wshttpbinding

    Hi Experts,
    System Details:
    SAP MII 14 SP4
    OSI PI Web Service: PITimeSeries
    I am having issue when trying to call OSI PI web service using http post. it is returning status 0 when i am using exception handler in BLS.
    Same web service works fine with basichttpbinding (SOAP 1.1)  but with wshttpbinding (SOAP 1.2) it is giving error.
    Following are Web config binding details for web service.
          <wsHttpBinding>
            <binding name="wsBinding_2011" sendTimeout="00:01:00" receiveTimeout="00:10:00" bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="524288" maxReceivedMessageSize="65536" messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
              <reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false" />
              <security mode="Message">
                <message clientCredentialType="Windows" negotiateServiceCredential="true" algorithmSuite="Default" establishSecurityContext="true" />
              </security>
            </binding>
          </wsHttpBinding>
    I am not sure it could be the issue with passing windows credentials.
    Did anybody consumed WCF web service with wshttpbinding with security mode as Message and clientCredentialType as Windows.
    Also i was trying to pass MYSAPSSO2 SSO token to service in http post but first i am not sure if this is correct windows token and second which header property of service should be mapped and i am not sure that I am going into correct direction or not.
    Please let me know what i am missing.
    I have tried following other options and tools:
    SOAP UI: basichttpbinding works fine for wshttpbinding receiving Internal Server error in log and Response as
                      The security context token is expired or is not valid.
    MII Web Service Action Block: basichttpbinding works fine for wshttpbinding not able to configure url through wizard because as per                                                                              my discussion with other MII experts MII does not support SOAP1.2. that is one reason for using http post.
    WCF Storm: both bindings works fine (There is option to select windows authentication and Impersonation level as delegation)
    WCF Test Client: Both bindings works fine
    Any help is appreciated.
    Thanks & Regards,
    Manoj Bilthare

    Hi Sam,
    The web service is valid following are details of testing on various tools.
    SOAP UI: basichttpbinding works fine for wshttpbinding receiving Internal Server error in log and Response as The security context token is expired or is not valid.
    MII Web Service Action Block: basichttpbinding works fine for wshttpbinding not able to configure url through wizard because as per my discussion with other MII experts MII does not support SOAP1.2. that is one reason for using http post.
    WCF Storm: both bindings works fine (There is option to select windows authentication and Impersonation level as delegation)
    WCF Test Client: Both bindings works fine
    Please let me know if additional details required.
    Thanks & Regards,
    Manoj Bilthare

  • Error when consuming Web Service in SAP R/3 ECC 6.0

    Hi to everyone.
    I have created an asynchronous Web Service in SAP R3, which I want to use in SAP PI later.
    When I test the Web Service using WS Navigator or XMLSpy the following error occurs:
    SOAP Runtime Protocol: ABAP Runtime exception: 1F09B73915F6B645E10000000A11447B occurred in program CL_SOAP_APPLICATION_PROXY=====CP CP in include CL_SOAP APPLICATIONPROXY=====CM008 at position 110
    SOAP Runtime Protocol: Exception message: An exception with the type CX_SY_REF_IS_INITIAL occurred, but was neither handled locally, nor declared in a RAISING clause
    I tested another synchronous Web Service developed by me in the same system, and the error does not occurs.
    I just searched an OSS Note and does not find anything.
    There are some restrictions in Web Service type developed in SAP R/3?
    Thanks in advance.
    Rafael Rojas.

    Hi.
    I think I must clarify my question.
    The Web Service is not called inside SAP R/3 but externally. For testing pourpose I actually use WS Navigator and XMLSpy.
    The method inside ABAP Server Proxy which is exposed as a Web Server in SAP R/3 system is the following. Note that the Web Service is Asynchronous.
    METHOD zpi_ii_test_ws_4_in~test_ws_4_in.
      DATA: lwa_zpi_test TYPE zpi_test.
      lwa_zpi_test-mandt = input-mt_test-record-client.
      lwa_zpi_test-bukrs = input-mt_test-record-company.
      lwa_zpi_test-belnr = input-mt_test-record-document.
      lwa_zpi_test-gjahr = input-mt_test-record-year.
      INSERT zpi_test FROM lwa_zpi_test.
      COMMIT WORK.
    ENDMETHOD.
    I have created another Web Service in SAP R/3 which is Synchronous, and the error does not occurs. The following is the method inside ABAP Server Proxy which is exposed as a Web Service in SAP R/3 system.
    METHOD zpi_ii_test_ws_3_in~test_ws_3_in.
      DATA: l_bukrs      TYPE bukrs,
            l_belnr      TYPE belnr_d,
            l_gjahr      TYPE gjahr,
            lr_belnr     TYPE RANGE OF belnr_d,
            lwa_zpi_test TYPE zpi_test.
      l_bukrs = input-mt_req-msg+0(4).
      l_gjahr = input-mt_req-msg+4(4).
      SELECT MAX( belnr ) INTO l_belnr
        FROM zpi_test
        WHERE bukrs EQ l_bukrs
          AND belnr IN lr_belnr
          AND gjahr EQ l_gjahr.
      IF l_belnr IS INITIAL.
        l_belnr = '4700000000'.
      ELSE.
        l_belnr = l_belnr + 1.
      ENDIF.
      lwa_zpi_test-mandt = sy-mandt.
      lwa_zpi_test-bukrs = l_bukrs.
      lwa_zpi_test-belnr = l_belnr.
      lwa_zpi_test-gjahr = l_gjahr.
      INSERT zpi_test FROM lwa_zpi_test.
      COMMIT WORK.
      output-mt_resp-msg = l_belnr.
    ENDMETHOD.
    I hope to have clarified my question.
    Rafael Rojas.

  • Web Services in Sap R/3 4.6c

    Hi!
    Can I provide a Web Service directly form Sap R/3 4.6c? Or do I have to migrate to another version of SAP?
    Thanks!

    Hi,
    The first SAP ERP release able to publish web services (SOA, not web application) is R/3 4.7 and this first implementation is fairly basic.
    For R/3 4.6c you will need an external web service provider which will convert the SOAP call in an RFC call. In the past, we have successfully developped  .NET programs (using SAP .NET connector) for this usage.
    Regards,
    Olivier

  • Problem in publishing web service

    i am getting problems in publishing coffee break
    service given in jawa web server development package
    exercise samples
    i ran "ant run-publish"
    i got the below response:
    javax.xml.registry.JAXRException:JAXR.UDDI.091:No
    concept specified for this classification
    at
    sun.com.xml.registry.uddi.UDDIMAPPER.classification2CategoryBag(Unknown
    Source)
    at
    sun.com.xml.registry.uddi.UDDIMAPPER.organisation2BuisinessEntity(Unknown
    Source)
    at
    sun.com.xml.registry.uddi.UDDIMAPPER.organisations2BuisinessEntities(Unknown
    Source)
    at
    sun.com.xml.registry.uddi.UDDIMAPPER.saveOrganisations(Unknown
    Source)
    at
    sun.com.xml.registry.uddi.BuisinessLifeCycleManagerImpl.saveOrganisations(Unknown
    Source)
    at JAXRPublish.executePublish(Unknown Source)
    at JAXRPublish.main(Unknown Source)
    The code is :
    import javax.xml.registry.*;
    import javax.xml.registry.infomodel.*;
    import java.net.*;
    import java.security.*;
    import java.util.*;
    * The JAXRPublish class consists of a main method, a
    * makeConnection method, and an executePublish
    method.
    * It creates an organization and publishes it to a
    registry.
    public class JAXRPublish {
    Connection connection = null;
    public JAXRPublish() {}
    public static void main(String[] args) {
    ResourceBundle bundle =
    ResourceBundle.getBundle("JAXRExamples");
    String queryURL =
    bundle.getString("query.url");
    String publishURL =
    bundle.getString("publish.url");
    // Edit to provide your own username and
    password
    // Defaults for Registry Server are
    testuser/testuser
    String username =
    bundle.getString("registry.username");
    String password =
    bundle.getString("registry.password");
    JAXRPublish jp = new JAXRPublish();
    jp.makeConnection(queryURL, publishURL);
    jp.executePublish(username, password);
    * Establishes a connection to a registry.
    * @param queryUrl     the URL of the query registry
    * @param publishUrl     the URL of the publish
    registry
    public void makeConnection(String queryUrl,
    String publishUrl) {
    * Specify proxy information in case you
    * are going beyond your firewall.
    ResourceBundle bundle =
    ResourceBundle.getBundle("JAXRExamples");
    String httpProxyHost =
    bundle.getString("http.proxyHost");
    String httpProxyPort =
    bundle.getString("http.proxyPort");
    String httpsProxyHost =
    bundle.getString("https.proxyHost");
    String httpsProxyPort =
    bundle.getString("https.proxyPort");
    * Define connection configuration properties.
    * To publish, you need both the query URL and
    the
    * publish URL.
    Properties props = new Properties();
    props.setProperty("javax.xml.registry.queryManagerURL",
    queryUrl);
    props.setProperty("javax.xml.registry.lifeCycleManagerURL",
    publishUrl);
    props.setProperty("com.sun.xml.registry.http.proxyHost",
    httpProxyHost);
    props.setProperty("com.sun.xml.registry.http.proxyPort",
    httpProxyPort);
    props.setProperty("com.sun.xml.registry.https.proxyHost",
    httpsProxyHost);
    props.setProperty("com.sun.xml.registry.https.proxyPort",
    httpsProxyPort);
    try {
    // Create the connection, passing it the
    // configuration properties
    ConnectionFactory factory =
    ConnectionFactory.newInstance();
    factory.setProperties(props);
    connection = factory.createConnection();
    System.out.println("Created connection to
    registry");
    } catch (Exception e) {
    e.printStackTrace();
    if (connection != null) {
    try {
    connection.close();
    } catch (JAXRException je) {}
    * Creates an organization, its classification,
    and its
    * services, and saves it to the registry.
    * @param username the username for the registry
    * @param password the password for the registry
    public void executePublish(String username,
    String password) {
    RegistryService rs = null;
    BusinessLifeCycleManager blcm = null;
    BusinessQueryManager bqm = null;
    try {
    rs = connection.getRegistryService();
    blcm = rs.getBusinessLifeCycleManager();
    bqm = rs.getBusinessQueryManager();
    System.out.println("Got registry service,
    query " +
    "manager, and life cycle manager");
    // Get authorization from the registry
    PasswordAuthentication passwdAuth =
    new PasswordAuthentication(username,
    password.toCharArray());
    Set creds = new HashSet();
    creds.add(passwdAuth);
    connection.setCredentials(creds);
    System.out.println("Established security
    credentials");
    ResourceBundle bundle =
    ResourceBundle.getBundle("JAXRExamples");
    // Create organization name and
    description
    Organization org =
    blcm.createOrganization(bundle.getString("org.name"));
              //System.out.println(bundle.getString("org.name"));
    InternationalString s =
    blcm.createInternationalString(bundle.getString("org.description"));
    org.setDescription(s);
    // Create primary contact, set name
    User primaryContact = blcm.createUser();
    PersonName pName =
    blcm.createPersonName(bundle.getString("person.name"));
    primaryContact.setPersonName(pName);
    // Set primary contact phone number
    TelephoneNumber tNum =
    blcm.createTelephoneNumber();
    tNum.setNumber(bundle.getString("phone.number"));
    Collection phoneNums = new ArrayList();
    phoneNums.add(tNum);
    primaryContact.setTelephoneNumbers(phoneNums);
    // Set primary contact email address
    EmailAddress emailAddress =
    blcm.createEmailAddress(bundle.getString("email.address"));
    Collection emailAddresses = new
    ArrayList();
    emailAddresses.add(emailAddress);
    primaryContact.setEmailAddresses(emailAddresses);
    // Set primary contact for organization
    org.setPrimaryContact(primaryContact);
    // Set classification scheme to NAICS
    ClassificationScheme cScheme =
    bqm.findClassificationSchemeByName(null,
    bundle.getString("classification.scheme"));
    // Create and add classification
    Classification classification =
    blcm.createClassification(cScheme,
    bundle.getString("classification.name"),
    bundle.getString("classification.value"));
    Collection classifications = new
    ArrayList();
    classifications.add(classification);
    org.addClassifications(classifications);
    // Create services and service
    Collection services = new ArrayList();
    Service service =
    blcm.createService(bundle.getString("service.name"));
    InternationalString is =
    blcm.createInternationalString(bundle.getString("service.description"));
    service.setDescription(is);
    // Create service bindings
    Collection serviceBindings = new
    ArrayList();
    ServiceBinding binding =
    blcm.createServiceBinding();
    is =
    blcm.createInternationalString(bundle.getString("svcbinding.description"));
    binding.setDescription(is);
    // allow us to publish a fictitious URL
    without an error
    binding.setValidateURI(false);
    binding.setAccessURI(bundle.getString("svcbinding.accessURI"));
    serviceBindings.add(binding);
    // Add service bindings to service
    service.addServiceBindings(serviceBindings);
    // Add service to services, then add
    services to organization
    services.add(service);
    org.addServices(services);
    // Add organization and submit to registry
    // Retrieve key if successful
    Collection orgs = new ArrayList();
    orgs.add(org);
    BulkResponse response =
    blcm.saveOrganizations(orgs);
    Collection exceptions =
    response.getExceptions();
    if (exceptions == null) {
    System.out.println("Organization
    saved");
    Collection keys =
    response.getCollection();
    Iterator keyIter = keys.iterator();
    if (keyIter.hasNext()) {
    javax.xml.registry.infomodel.Key
    orgKey =
    (javax.xml.registry.infomodel.Key) keyIter.next();
    String id = orgKey.getId();
    System.out.println("Organization
    key is " + id);
    } else {
    Iterator excIter =
    exceptions.iterator();
    Exception exception = null;
    while (excIter.hasNext()) {
    exception = (Exception)
    excIter.next();
    System.err.println("Exception on
    save: " +
    exception.toString());
    } catch (Exception e) {
    e.printStackTrace();
    } finally {
    // At end, close connection to registry
    if (connection != null) {
    try {
    connection.close();
    } catch (JAXRException je) {}
    Please solve my problem.

    I have the same problem when trying to deploy a simple web service with longs and bytes. I still don't know where the error comes from. Did you find something out? Any answer would be welcome.

  • Protecting a REST web service with Policy Agent

    I have deployed a REST web service in Glassfish using Jersey Annotations. A UI in the same Glassfish instance is protected by a policy agent that forces users through a login page. I would like to protect the REST web service with BASIC Authentication using the same policy agent. Is this possible? Is there supporting documentation?

    Hi Daniel,
    When you publish a message through Rest, hope your Restful service will receive/process the posted message?
    So
    YourBizTalk -->(Post Message to)-->RestFulService
    From the error message, "the published message could not be routed because no subscribers were found.", it seems like the this Restful service is a
    wrapper (or service interface) for BizTalk at client end( where message has been posted thru Rest) and actual posted message is “processed” by BizTalk and the error "" is from BizTalk "after" Rest. This message says the message you posted
    through rest is not found subscription at their end.
    So
    YourBizTalk -->(Post Message to)-->RestFulService -->Clients'BizTalk.
    Here problem is at Clients'BizTalk as shown where the posted message to their BizTalk is not processed because no subscription has been found.
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • Consuming Synchronous RESTful Web Service with PI

    Dear experts,
    i have a scenario for consuming RESTful web service.
    i have followed all the steps showed in the following link for configuring my interface.
    http://scn.sap.com/community/pi-and-soa-middleware/blog/2012/08/11/calling-synchronous-restful-web-service-with-pi--i
    but still i am facing issues at the communication channel level, the trace of the communication channel is as follows
    Error While Sending Message: Additional error text from response: com.sap.engine.interfaces.messaging.api.exception.MessagingException: org.apache.axis.ConfigurationException: adapter is null org.apache.axis.ConfigurationException: adapter is null at com.sap.aii.adapter.axis.modules.HandlerCore.process(HandlerCore.java:60) at com.sap.aii.adapter.axis.modules.HandlerBean.process(HandlerBean.java:86) at sun.reflect.GeneratedMethodAccessor602.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sap.engine.services.ejb3.runtime.impl.RequestInvocationContext.proceedFinal(RequestInvocationContext.java:47) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:166) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatesTransition.invoke(Interceptors_StatesTransition.java:19) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Resource.invoke(Interceptors_Resource.java:50) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Transaction.doWorkWithAttribute(Interceptors_Transaction.java:37) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Transaction.invoke(Interceptors_Transaction.java:21) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_MethodRetry.invoke(Interceptors_MethodRetry.java:46) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:191) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatelessInstanceGetter.invoke(Interceptors_StatelessInstanceGetter.java:23) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_SecurityCheck.invoke(Interceptors_SecurityCheck.java:25) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_ExceptionTracer.invoke(Interceptors_ExceptionTracer.java:17) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179) at com.sap.engine.services.ejb3.runtime.impl.DefaultInvocationChainsManager.startChain(DefaultInvocationChainsManager.java:138) at com.sap.engine.services.ejb3.runtime.impl.DefaultEJBProxyInvocationHandler.invoke(DefaultEJBProxyInvocationHandler.java:164) at com.sun.proxy.$Proxy3284.process(Unknown Source) at com.sap.aii.af.app.mp.ejb.ModuleProcessorBean.process(ModuleProcessorBean.java:264) at sun.reflect.GeneratedMethodAccessor544.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sap.engine.services.ejb3.runtime.impl.RequestInvocationContext.proceedFinal(RequestInvocationContext.java:47) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:166) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatesTransition.invoke(Interceptors_StatesTransition.java:19) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Resource.invoke(Interceptors_Resource.java:50) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Transaction.doWorkWithAttribute(Interceptors_Transaction.java:37) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Transaction.invoke(Interceptors_Transaction.java:21) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_MethodRetry.invoke(Interceptors_MethodRetry.java:46) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:191) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatelessInstanceGetter.invoke(Interceptors_StatelessInstanceGetter.java:23) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_SecurityCheck.invoke(Interceptors_SecurityCheck.java:25) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_ExceptionTracer.invoke(Interceptors_ExceptionTracer.java:17) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179) at com.sap.engine.services.ejb3.runtime.impl.DefaultInvocationChainsManager.startChain(DefaultInvocationChainsManager.java:138) at com.sap.engine.services.ejb3.runtime.impl.DefaultEJBProxyInvocationHandler.invoke(DefaultEJBProxyInvocationHandler.java:164) at com.sun.proxy.$Proxy646.process(Unknown Source) at com.sap.aii.af.app.listener.AFWListenerBean.onMessage(AFWListenerBean.java:422) at sun.reflect.GeneratedMethodAccessor558.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sap.engine.services.ejb3.runtime.impl.RequestInvocationContext.proceedFinal(RequestInvocationContext.java:47) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:166) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatesTransition.invoke(Interceptors_StatesTransition.java:19) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Resource.invoke(Interceptors_Resource.java:50) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Transaction.doWorkWithAttribute(Interceptors_Transaction.java:37) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Transaction.invoke(Interceptors_Transaction.java:21) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_MethodRetry.invoke(Interceptors_MethodRetry.java:46) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:191) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatelessInstanceGetter.invoke(Interceptors_StatelessInstanceGetter.java:23) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_SecurityCheck.invoke(Interceptors_SecurityCheck.java:25) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_ExceptionTracer.invoke(Interceptors_ExceptionTracer.java:17) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179) at com.sap.engine.services.ejb3.runtime.impl.DefaultInvocationChainsManager.startChain(DefaultInvocationChainsManager.java:138) at com.sap.engine.services.ejb3.runtime.impl.DefaultEJBProxyInvocationHandler.invoke(DefaultEJBProxyInvocationHandler.java:164) at com.sun.proxy.$Proxy603.onMessage(Unknown Source) at com.sap.engine.messaging.impl.spi.ServicesImpl.deliver(ServicesImpl.java:362) at com.sap.aii.adapter.xi.ms.XIEventHandler.onDeliver(XIEventHandler.java:1091) at com.sap.engine.messaging.impl.core.queue.consumer.RequestConsumer.onMessage(RequestConsumer.java:75) at com.sap.engine.messaging.impl.core.queue.Queue.run(Queue.java:1017) at com.sap.engine.messaging.runtime.MSWorkWrapper.run(MSWorkWrapper.java:58) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:185) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:302)
    i have also attached screen shots of module tab of my SOAP(Axis) adapter
    regards,
    sushant

    Hi Sushant
    Check the question 11.I am getting org.apache.axis.ConfiguraitonException: adapter is null in this note 1039369 - FAQ XI Axis Adapter
    (you will find all the answers in the attachment section)
    Regards.

Maybe you are looking for

  • Problem with regular crash with Xorg and nvidia

    Hello! I am using a archlinux distribution for about 5 years. There was sometime problems but now it is very unstable. Every reboot I have a crash of Xorgs and with this a crash of system. Log: Backtrace: 0: /usr/bin/Xorg (xorg_backtrace+0x3b) [0x809

  • How to show datagridview data in pdf

    Dear all I have a windows form application and want that datagridview data to get in pdf how to do that using itext or any other pdf dll

  • My camera is not working when ever i open cam apps its stucks.

    After upgrading to iOS7 on IPAD 2 the back camera is not working only get a black screen switing to front camera it works once then freezes

  • Creation of indexes?

    Hi, How can we specify the creation of all indexes should be done in a particular tablespace?

  • Communication error with the opmn server local port

    Working on 64-bit R12.0.6 on AIX 5L Application services are not being started properly. They are being started with status 2(sometimes with 4). Autocinfig is being successfully completed. Please help me how I can get rid of this error. Following are