Server did not recognize the value of HTTP Header SOAPAction: .

hello friends,
I am wrote a WebService client as below
import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
import javax.xml.namespace.QName;
public class AtmuClient
public static void main(String [] args) {
try {
String req="request";
String endpoint ="http://10.1.3.104/mims/service.asmx?WSDL";
String nameSpaceUri = "http://www.cum.com/MIMS";
Service service = new Service();
Call call = (Call) service.createCall();
call.setTargetEndpointAddress( new java.net.URL(endpoint) );
call.setOperationName(new QName(nameSpaceUri, "echoString") );
String ret = (String) call.invoke( new Object[] { req } );
System.out.println("Sent 'Hello!', got '" + ret + "'");
} catch (Exception e) {
System.err.println(e.toString());
the out put I am getting is
Server did not recognize the value of HTTP Header SOAPAction: .
what still I need to incorporate to my code. Do i need to add any methods still ? and one more thing is do i need to write WSDD for this? how ?. can any bady guide me
thanQ for any greatful guidance.
HAN.

Try setting an empty header object for the Call
SOAPContext ctx = new SOAPContext();
     Header header = new Header();
     Call call = new Call("", "", params, header, "", ctx);   Regards
Byju Joy

Similar Messages

  • BC Ecommerce SOAP Error: Server did not recognize the value of HTTP Header SOAPAction

    I am trying to add a product to an ecommerce site with this soap action: Product_UpdateInsert
    I have followed this very brief instruction: https://jollyrogers.worldsecuresystems.com/catalystwebservice/catalystecommercewebservice. asmx?op=Product_UpdateInsert
    I have a html page in a secure area with a jQuery ajax soap script.
    I get the this error when I run the script:
    <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><soap:Fault><faultcode>soap:Client</faultcode><faultstring>Server did not recognize the value of HTTP Header SOAPAction: https://jollyrogers.worldsecuresystems.com/CatalystDeveloperService/CatalystEcommerceWebse rvice/Product_UpdateInsert.</faultstring><detail /></soap:Fault></soap:Body></soap:Envelope>
    I have also tried to add a header with the Soap action with the beforeSend in the ajax call.
    This must have been solved before I suppose?
    Here is my script:
    <!DOCTYPE html>
    <html lang="en">
    <head>
    <title>Test SOAP Request</title>
        <script type="text/javascript" src="//code.jquery.com/jquery-1.10.2.min.js"></script>
        <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery-cookie/1.3.1/jquery.cookie.min.js"></script>
        <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.5.1/underscore-min.js"></script>
        <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/backbone.js/1.0.0/backbone-min.js"></script>
        <script type="text/javascript" src="//cdn.worldsecuresystems.com/bcapi/bcapi-0.0.1.min.js"></script>
    </head>
    <body>
    <script>
    var wsUrl = "https://jollyrogers.worldsecuresystems.com/catalystwebservice/catalystecommercewebservice. asmx";
    var soapRequest =
    '<?xml version="1.0" encoding="utf-8"?> \
    <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> \
      <soap12:Body> \
        <Product_UpdateInsert xmlns="https://jollyrogers.worldsecuresystems.com/CatalystDeveloperService/CatalystEcommerceWebse rvice"> \
          <username>myEmailAdress</username> \
          <password>mySecretPassw</password> \
          <siteId>1894001</siteId> \
          <productList> \
            <Products> \
              <productCode>ZJAWEyuuyN</productCode> \
              <productName>My test product</productName> \
              <description>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</description> \
              <smallImage>/images/product1/small.jpg</smallImage> \
              <largeImage>/images/product1/large.jpg</largeImage> \
             <cataloguesArray> \
                 <string>/Store/</string> \
              </cataloguesArray> \
              <pricesSaleArray> \
                <string>US/19.95,3/17.96,7/16.96</string> \
              </pricesSaleArray> \
              <pricesRetailArray> \
                <string>US/20,5/19,8/20</string> \
              </pricesRetailArray> \
              <pricesWholesaleArray> \
                <string>US/20,5/19,8/20</string> \
              </pricesWholesaleArray> \
              <wholesaleTaxCodeArray> \
                <string>US/0.00</string> \
              </wholesaleTaxCodeArray> \
              <taxCodeArray> \
                <string>GB/VAT</string> \
              </taxCodeArray> \
              <groupProducts> \
                <string>580H0036BL</string> \
                <string>ACAI60</string> \
                <string>ABC-123</string> \
              </groupProducts> \
              <groupProductsDescriptions> \
                <string>Lorem ipsum dolor sit amet</string> \
                <string>consectetur adipisicing elit</string> \
              </groupProductsDescriptions> \
              <supplierEntityId>1234</supplierEntityId> \
              <supplierCommission>0</supplierCommission> \
              <weight>30</weight> \
              <tags>NEW!</tags> \
              <unitType>string</unitType> \
              <minUnits>0</minUnits> \
              <maxUnits>2</maxUnits> \
              <inStock>43</inStock> \
              <onOrder>3</onOrder> \
              <reOrder>2</reOrder> \
              <inventoryControl>true</inventoryControl> \
              <canPreOrder>true</canPreOrder> \
              <custom1>Text in custom field 1</custom1> \
              <custom2>Text in custom field 2</custom2> \
              <custom3>Text in custom field 3</custom3> \
              <custom4>Text in custom field 4</custom4> \
              <popletImages>/images/image1.jpg;/images/image2.jpg;</popletImages> \
              <enabled>true</enabled> \
              <deleted>false</deleted> \
              <captureDetails>true</captureDetails> \
              <downloadLimitCount>20</downloadLimitCount> \
              <limitDownloadsToIP>0</limitDownloadsToIP> \
              <isOnSale>true</isOnSale> \
              <hideIfNoStock>true</hideIfNoStock> \
              <productAttributes>Size*|5|Y:L||UK/2|US/20,S||UK/1|US/10</productAttributes> \
              <isGiftVoucher>false</isGiftVoucher> \
              <enableDropShipping>true</enableDropShipping> \
              <productWeight>0</productWeight> \
              <productWidth>0</productWidth> \
              <productHeight>0</productHeight> \
              <productDepth>0</productDepth> \
              <excludeFromSearch>false</excludeFromSearch> \
              <productTitle>My product title</productTitle> \
              <cycletypeId>3</cycletypeId> \
              <cycletypeCount>-1</cycletypeCount> \
              <slug>my-product</slug> \
              <hasVariations>true</hasVariations> \
              <variations> \
                <ProductVariation xsi:nil="true" /> \
                <ProductVariation xsi:nil="true" /> \
              </variations> \
            </Products> \
          </productList> \
        </Product_UpdateInsert> \
      </soap12:Body> \
    </soap12:Envelope>';
    $.ajax({
         type: "POST",
         beforeSend: function(xhr){xhr.setRequestHeader('SOAPAction', 'https://jollyrogers.worldsecuresystems.com/CatalystDeveloperService/CatalystEcommerceWebse rvice/Product_UpdateInsert');},
         url: wsUrl,
         contentType: "text/xml",
         dataType: "xml",
         data: soapRequest,
         success: processSuccess,
         error: processError
    function processSuccess(data, status, req)
       if (status == "success")
       alert("Success!");
    function processError(data, status, req)
       alert("Failed!");
       alert(req.responseText + " " + status);
    </script>
    </body>
    </html>

    This line is a target namespace so it should not be changed: <Product_Retrieve xmlns="http://tempuri.org/CatalystDeveloperService/CatalystEcommerceWebservice"> It is very easy to think that it's a placeholder and that it should be replaced with your own url, which it should not and which will fail.
    This works now:
    <!DOCTYPE html>
    <html lang="en">
        <head>
            <title>Test 7 SOAP Request</title>
            <script type="text/javascript" src="//code.jquery.com/jquery-1.10.2.min.js"></script>
        </head>
        <body>
            <script>    
                var SoapMessage = '<?xml version="1.0" encoding="utf-8"?> \
    <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> \
    <soap12:Body> \
    <Product_Retrieve xmlns="http://tempuri.org/CatalystDeveloperService/CatalystEcommerceWebservice"> \
    <username>Your Email</username> \
    <password>Your password</password> \
    <siteId>1894001</siteId> \
    <productCode>HHKDKXS5MB</productCode> \
                </Product_Retrieve> \
                </soap12:Body> \
                </soap12:Envelope>';
                var url = "https://jollyrogers.worldsecuresystems.com/catalystwebservice/catalystecommercewebservice. asmx";
                $.support.cors = true;
                $.ajax({
                    type: "POST",
                    url: url,
                    data: SoapMessage,
                    dataType: "xml",
                    processData: true,
                    contentType: "text/xml; charset=\"utf-8\"",
                    success: function (msg) {
                        alert("suc: " + msg);
                    error: function (msg) {
                        alert("Failed: " + msg);
            </script>
        </body>
    </html>   

  • Receiver SOAP Adapter Problem-soap fault: Server did not recognize the valu

    I have a scenario for service orders using async call : IDOC-XI-SOAP.
    I used the XML Spy tool to test the Service order's web services and it works fine. I imported the same WSDL file in XI. When I send a SOAP message from XI, I get a following error in the adapter engine.
    <i>MP: exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: SOAP: response message contains an error XIAdapter/PARSING/ADAPTER.SOAP_EXCEPTION - soap fault: Server did not recognize the value of HTTP Header SOAPAction: AddUpdateCostObjectLevel1.</i>
    Can someone please help me...
    Thanks in advance!
    Mrudula

    This problem is resolved by me by passing the "http://company's URL/AddUpdateCostObjectLevel1" in the SOAP action.
    Thanks to all for your input.
    Mrudula

  • Sharing via email says the server did not recognize the username and password  combination

    I am trying to share photos in iPhoto via email (gmail) and it says the server does not recognize the username password combination. I have deleted the email account rebooted iMac and re-entered the gmail account info and I get the same message. I have confirmed the username and password are correct.

    LarryHN I guess I should have clarified that. I did try it that way and I am able to email pictures with mail set as the email client. When I change it to iPhoto as the email client is when I get this message. I have the same setup on my Macbook and it works great for emailing pictures from iPhoto. Although I can send them through email client, I prefer doing it through iPhoto.

  • "server did not recognize the following recipients", Easy Fix

    I have had problems with sending emails to the members of an organization, as a Group in Address Book. I'd get the message shown in the title above, with smtp.me.com being the server. In the past, many many tries usually resulted in eventual success. This time I decided to get to the bottom of it.
    I searched the forums; my settings seemed to be correct. After that, the only relevant thing was the statement that there's a 100-address limit on Groups, set by Apple. I cut my group into two, each with about 75 members. No luck.
    Next I tried Apple's Mobileme help chat. The first time I was told I had corrupted addresses and had to export everything as a Vcard file (which would somehow clear up the corruption), erase the entire contents of Address Book, reimport the Vcard file data, and then manually re-establish my Groups.
    Two things about this bothered me: one of the rejected addresses I knew for a fact was good, and then the daunting prospect of making some sort of saved list of group members and then manually choosing them all over again out of the entire list of contacts. So I logged into chat again.
    The second person I chatted with told me the same thing but that I could save my Groups by exporting each one separately as a Vcard file (one file per group, it is in the Export menu of AB) and then making new empty groups with my original Group names, and re-importing them.
    This I did. First I backed up the Address Book datafile, then I exported the entire list of everyone, then exported each group, so I had a bunch of separate Vcard files with names like "AllAddresses.vcf", "Jack'sFriends.vcf", "SmithEvent.vcf" and so on. Then I chose all the entries in AB and deleted them. I Imported the "AllAddresses.vcf" file, then in AB I made the Groups again: Jack'sFriends and so on. Then instead of importing the various .vcf files I just dragged each one to its corresponding Group in AB.
    Voilá!
    My database was recreated, easily. No duplicates were created.
    Only problem was, the email was still rejected. This magical process of exporting as .vcf file is supposed to clear up corruption. But what if that was not the problem?
    I decided next to divide my 2 Groups that I was sending to, into 8 small groups, as a way to more easily find the bad addresses, and possibly dodge the problem if it was related to the groups being still too large.
    When I reduced the size of the Groups to between 20 and 30 addresses each, and sent 8 separate emails, the problem vanished. (I did not try each of the 8 Groups in the address block of a single email, which would have been a lot easier than cutting and pasting to make 8 different identical emails. It might work.)
    None of the addresses had been bad. Apparently it was just that the number of addresses was too large, at about 75. I should note that I tried sending via my gmail account also and it had failed with the exact same message.
    So, divide and conquer!
    Hope this helps someone else.

    Is there an email saved in your drafts or outbox folder?  I suspect that Mail is continually trying to send it, and each time Google is rejecting the email message.
    You can open the message and then delete it from your Outbox folder.  Then try removing all @gmail email addresses from it and seeing whether you can send to the other folks.  I suspect that will work.
    With email, if an SMTP server *can* verify email addresses, sometimes it will and it will refuse to send messages.  If a message has to be relayed across servers, no verification is done, and you'll get a bounce if an email address is bad.

  • ICal pop-up message .. The server did not recognize your user name or passw

    I'm having a problem with pop-up boxes when I launch iCal. They indicate the following;
    "The server responded with an error. The server did not recognize your user name or password for account “[email protected]” Make sure you enter them correctly."
    I recently let my MobileMe account expire as I was not using it that much. As a result, I think this issue is occuring, though I don;t know how to fix it. The same is happening on my iPhone when I attempt to receive eMails from a secondary eMail account.
    I would appreciate any help that anyone can provide.
    Thank you !! Kenneth

    A lot of people have been unable to access Yahoo e-mail on their iPhones or iPads. My wife’s iPad was not downloading Yahoo mail, although her iPhone was. Both used IOS 8.2. We tried deleting the account several times and troubleshooting all of the other settings. The problem appears to have been that allowing the IOS to automatically create the account on the iPad resulted in the wrong settings for the incoming server. The following procedure, pieced together from two websites, fixed the problem for us. So far, so good.
    https://portal.smartertools.com/kb/a2659/configure-imap-for-iphone-or-ipad.aspx
    https://help.yahoo.com/kb/mobile-mail/imap-server-settings-sln4075.html
    On the iPhone, tap Settings.
    Tap Mail, Contacts, Calendars.
    Tap your Yahoo account, then delete it.
    Tap Add Account.
    Tap Other.
    Tap Add Mail Account.
    Complete the Name, Address (email address), Password and Description fields.
    Click Next.
    Ensure IMAP is selected.
    Enter the following incoming mail server information:
    Incoming Mail (IMAP) Server - Requires SSL
    Server: imap.mail.yahoo.com
    Port: 993
    Requires SSL: Yes
    Hostname is mail.yahoo.com.
    Username is your full email address
    Password is the same password used to access webmail.
    Enter the following outgoing mail server information:
    Outgoing Mail (SMTP) Server - Requires SSL
    Server: smtp.mail.yahoo.com
    Port: 465 or 587
    Requires SSL: Yes
    Requires authentication: Yes
    Username is your full email address
    Password is the same password used to access webmail. It may have been entered for you.
    Tap Next.
    The iPhone will establish an SSL connection to your IMAP and SMTP servers.
    That’s all!

  • Error in iCal: The server did not recognize your user name or password for account "Gmail."

    To keep my iCal up to date on two computers, I export an Archive in one and import it to the other. Yes, I know I should use the Cloud, but humour me.
    Export of iCal from my MacBook Air (OS 10.7.5) no longer works when imported to my desktop (OS 10.6.8). It returns an error saying "The server did not recognize your user name or password for account “Gmail.” Make sure you enter them correctly."
    After dismissing this dialogue box twice (it offers no other options, iCal crashes.
    I've turned off the option on my MacBook that asks to use my Gmail account, but since I can no longer launch iCal on my desktop, it can't import new data. How can I clean out the brain of iCal on the desktop so that it will open -- blank -- and perhaps accept a new version of my iCal data?
    Thanks,
    Bruce

    iCal
    MobileMe
    Apple Support

  • The email server did not recognize  your username/ password combinations

    i recieved this alert:the email server did not recognize  your username/ password combinations. everytime when i sending a photo from iphoto? how do i solve it please?

    iPhoto preferences ==> accounts
    Of IMHO better yet set Apple Mail as the e-mail client in the iPhoto preferences
    LN

  • The email server did not recognize my username

    i try to mail picture   it says the email server did not recognize your username/password combination          

    In the iPhoto preferences ==> accounts delete the account and re-enter it
    Of IMHO the better alternative is to set Apple Mail as the e-mail client in the iPhoto preferences and use it instead of iPhoto
    LN

  • Please help  I am suddenly getting the following on my calendar  The server did not recognize your user name or password for account "..." Make sure you enter them correctly.  I depend on it for work

    Please help  I am suddenly getting the following from my calendar  The server did not recognize your user name or password for account “...” Make sure you enter them correctly.I have even tried changing the password and no luck.  I depend on it syncing with mobile me and my phone and I need it for work.

    I have been having the same issue but I think I fixed my problem.  In iCal, click iCal, Preferences, Accounts and retype your password.  That seems to have done the trick for me as far as I can tell.

  • I bought a new McBook Pro and when I backed up from my old computer, the iCal on my new computer is not syncing. It says "The server did not recognize your user name or password for (name of my mobile me acct). Make sure you enter them correctly."

    I bought a new McBook Pro and when I backed up from my old computer, the iCal on my new computer is not syncing. It says "The server did not recognize your user name or password for (name of my mobile me acct). Make sure you enter them correctly." Any suggestions?

    Carla,
    Check this post for a possible solution.

  • ICal pop-up when I open: The server did not recognize your user name or password for account. Make sure you enter them correctly.

    The server did not recognize your user name or password for account. Make sure you enter them correctly.
    I am getting this pop-up whenever I open iCal. Recently changed Google password. What has gone wrong?
    <Email Edited By Host>

    You really should not post your email address to a public forum such as this where it can be harvested by spammers. I requested the Hosts edit it for your protection.

  • HT1277 what to do when i get the message: email server did not recognize username and password combination.

    I changed the password on my iphone yesterda and now i can't send mail on my Imac via My gallery : the message is: email server did not recognize username and password combination

    I found that by turning of the SSL option at the bottom of the Accounts panel did the trick.

  • ICal error  "server did not recognize your user name"

    I recently was added to the MobileMe calendar beta, and now my iCal calendar doesn't sync with MobileMe. iPhone works fine. Error message when I launch iCal says "server did not recognize your user name"
    Any thoughts, suggestions would be appreciated.

    iCal/Preferences/Accounts/Password

  • Imqobjmgr does not recognize the value of java.naming.provider.url property

    On Windows, I am running imqobjmgr 4.3
    when I run imqobjmgr -i list.properties, I am getting the following error
    Error [A3052]: imqobjmgr does not recognize the value of java.naming.provider.url property.
    Why is that?
    classpath
    C:\Sun\SDK\imq\lib\jms.jar;C:\Sun\SDK\imq\lib\imq.jar;C:\Sun\SDK\imq\lib\fsconte
    xt.jar;.
    contents of list.properties
    # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
    # Copyright 2000-2008 Sun Microsystems, Inc. All rights reserved.
    # The contents of this file are subject to the terms of either the GNU
    # General Public License Version 2 only ("GPL") or the Common Development
    # and Distribution License ("CDDL") (collectively, the "License"). You may
    # not use this file except in compliance with the License. You can obtain
    # a copy of the License at https://glassfish.dev.java.net/public/CDDL+GPL.html
    # or mq/legal/LICENSE.txt. See the License for the specific language
    # governing permissions and limitations under the License.
    # When distributing the software, include this License Header Notice in each
    # file and include the License file at mq/legal/LICENSE.txt. Sun designates
    # this particular file as subject to the "Classpath" exception as provided by
    # Sun in the GPL Version 2 section of the License file that accompanied this
    # code. If applicable, add the following below the License Header, with the
    # fields enclosed by brackets [] replaced by your own identifying information:
    # "Portions Copyrighted [year] [name of copyright owner]"
    # Contributor(s):
    # If you wish your version of this file to be governed by only the CDDL or
    # only the GPL Version 2, indicate your decision by adding "[Contributor]
    # elects to include this software in this distribution under the [CDDL or GPL
    # Version 2] license." If you don't indicate a single choice of license, a
    # recipient has the option to distribute your version of this file under
    # either the CDDL, the GPL Version 2 or to extend the choice of license to
    # its licensees as provided above. However, if you add GPL Version 2 code
    # and therefore, elected the GPL Version 2 license, then the option applies
    # only if the new code is made subject to such option by the copyright holder.
    # @(#)list.properties     1.11 07/02/07
    # This property file will list administered objects
    # Version of command file
    # NOTE: This is not the version of the Sun Java(tm) System Message Queue product
    version=2.0
    cmdtype=list
    # If you want to only list a particular type of administered
    # object, uncomment the following line and specify the type.
    # Acceptable values for the type property are: t, q, tf, and qf,
    # where t = topic, q = queue, tf = topic connection factory, and
    # qf = queue connection factory.
    #obj.type=
    # To use the LDAP service provider implementation from
    # Sun Microsystems, uncomment the following two property lines
    # and set the url property correctly.
    objstore.attrs.java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory
    objstore.attrs.java.naming.provider.url=ldap://localhost:389/ou=imqobjmgr,o=sun.com
    # To use the File System service provider implementation from
    # Sun Microsystems on Solaris, uncomment the following two
    # property lines and set the url property correctly.
    # *** Note that the url syntax here is platform specific. ***
    #objstore.attrs.java.naming.factory.initial=com.sun.jndi.fscontext.RefFSContextFactory
    #objstore.attrs.java.naming.provider.url=file:///home/foo/imq_admin_objects
    # To use the File System service provider implementation from
    # Sun Microsystems on Windows, uncomment the following two
    # property lines and set the url property correctly.
    # *** Note that the url syntax here is platform specific. ***
    #objstore.attrs.java.naming.factory.initial=com.sun.jndi.fscontext.RefFSContextFactory
    #objstore.attrs.java.naming.provider.url=file:///C:/imq_admin_objects
    #objstore.attrs.java.naming.security.authentication=
    #objstore.attrs.java.naming.security.principal=
    #objstore.attrs.java.naming.security.credentials=

    I see you're using Sun Java System Message Queue. There's a forum specific to that product over at [http://forums.sun.com/forum.jspa?forumID=711&start=0|http://forums.sun.com/forum.jspa?forumID=711&start=0] . You could try asking there.
    Nigel

Maybe you are looking for