400 Error Calling Custom Services in _vti_bin

Hi all,
I am having an issue in my development VM. I have a site with a number of custom web parts that are throwing 400 errors when attempting to access them. The page itself loads fine, but the web parts are showing 400 errors when calling services that run them
that reside in the _vti_bin. No errors are showing in the ULS logs, only the 400s in Fiddler. I have been looking into this all day and had no luck.
Any ideas or thoughts on directions to pursue would be greatly appreciated. Please let me know if any other info is needed and I will include it.
Thanks,
J.

Hi,
Per my understanding, there is a 400 error thrown in your custom web part.
To narrow down the issue, I suggest you create a Console Application to test if the code snippet about calling web service works properly without issue, then adding
the working code into the web part project. By doing this, it would be easier to address the issued part of this solution.
Here is a demo about how to work with SharePoint web service for your reference:
http://mohamedakb.blogspot.com/2012/01/use-web-services-to-access-sharepoint.html
Best regards
Patrick Liang
TechNet Community Support

Similar Messages

  • Photoshop CS6 could not update successfully.  Error codes Adobe Photoshop 13.0.1.3 Installation failed. Error Code: U44M1P7  Extension Manager 6.0.8 Update Installation failed. Error Code: U44M1P7  Please help me figure out how to call customer service. 

    Photoshop CS6 could not update successfully.  Error codes Adobe Photoshop 13.0.1.3 Installation failed. Error Code: U44M1P7  Extension Manager 6.0.8 Update Installation failed. Error Code: U44M1P7  Please help me figure out how to call customer service.  I would prefer to talk to someone directly.

    Are you using any disk cleaner or optimization tools like CleanMymac or Mackeeper?
    Regards,
    Ashutosh

  • HT1349 I have purchased itunes card whenever enter the card number asking me to call customer service and treatment sinners

    I have purchased itunes card whenever enter the card number asking me to call customer service and treatment sinners

    Do as it says and contact customer service instead of posting to these user to user technical support forums.

  • I have an old iPhone 4 that finally stopped working.  I have an unlimited data plan and want to keep it.  When I called customer service, I was told like in the past that if you purchase the new phone at full price, you can keep your old plan.  However, a

    I have an old iPhone 4 that finally stopped working.  I have an unlimited data plan and want to keep it.  When I called customer service, I was told like in the past that if you purchase the new phone at full price, you can keep your old plan.  However, after some time on the phone i was told by the csr and supervisor that their system is not allowing them to complete the transaction without changing to a limited data plan.  I was told to try going to a store and buy the phone.  Same thing happened.  Has Verizon changed something and not told their employees?

    Seems like people having this problem are those coming from a phone that doesn't have a nano SIM card...so when Verizon issues them one they end up changing their plan. No clue why this keeps happening but stay on top of them. As long as you initiated the request for your plan to be reinstated within the 14 day time frame they should put it back. Interested in seeing how this plays out. There is still one phone in my house that hasn't been upgraded (an iPhone 4). I'm hoping when we do upgrade it at full retail they won't mess with her unlimited data plan

  • Apparently the default country for an account is US. I want it changed to Netherlands without having to call customer service. In need of assistance please.

    Hi,
    Apparently the default country for an account is US. I want it changed to Netherlands without having to call customer service. In need of assistance please, is there someone from Adobe on this forum who can help me? Or does someone know an email address?
    thanks!
    Arjan de Jong

    Change/Verify Account https://forums.adobe.com/thread/1465499 may help
    -http://helpx.adobe.com/x-productkb/policy-pricing/change-country-associated-with-adobe-id. html

  • Why doesnt the MBP 2011 w/Lion battery last as long? is it Lion or should I call customer service?

    is it Lion or should I call customer service? I just bought it Wednesday btw

    brianna the student wrote:
    Well I bought it from Best Buy so should I just call or go there?
    If you're going to call AppleCare, call AppleCare. If you're going to return it, I'd expect you'll need to return it to BB. An AppleStore will also provide service.

  • I paid my bill $50.23 but my plan is $45. i called customer service that my balance is $0.00 where is my $5.00? my data also have only 500MB.

    i paid my bill $50.23 but my plan is $45. i called customer service that my balance is $0.00 where is my $5.00? my data also have only 500MB.

    Taxes?

  • Call Custom Service from Event Receiver as Current User

    Hello,
    i bang my head on this problem for days now:
    My custom web service hosted in Sharepoint 2013 needs to know the logged on user name. I used to have a self-written impersonation in my service client before, but with switching to claims authentication this should be obsolete.
    So within my service i decode the user from
    IClaimsPrincipal icp = Thread.CurrentPrincipal as IClaimsPrincipal;
    IClaimsIdentity ci = (IClaimsIdentity)icp.Identity;
    String User = ci.ToString();
    This works well when i call the service from a custom aspx page.
    It utterly fails when i call the service from a List Item Event Receiver. The User always is the Application Pool Account.
    This is the Client code to open the Channel:
    private void SetChannelFactory(
    MyServiceApplicationProxy proxy,
    Uri address)
    if (null == proxy)
    throw new ArgumentNullException("proxy");
    if (null == address)
    throw new ArgumentNullException("address");
    // Check for a cached channel factory
    string endpointConfigurationName = GetEndpointConfigurationName(address);// Get the endpoint configuration name
    if ((null == s_ChannelFactory) || (endpointConfigurationName != m_EndpointConfigurationName))
    lock (s_ChannelFactoryLock)
    if ((null == s_ChannelFactory) || (endpointConfigurationName != m_EndpointConfigurationName))
    // Create a channel factory without specifying an endpoint address
    // so it can be cached and used for multiple endpoint addresses
    s_ChannelFactory = new ConfigurationChannelFactory<IMyServiceContract>(
    endpointConfigurationName, proxy.Configuration, null);
    // Configure the channel factory for claims-based authentication
    s_ChannelFactory.ConfigureCredentials(SPServiceAuthenticationMode.Claims);
    foreach (var operation in s_ChannelFactory.Endpoint.Contract.Operations)
    DataContractSerializerOperationBehavior behavior = operation.Behaviors.Find<DataContractSerializerOperationBehavior>() as DataContractSerializerOperationBehavior;
    if (behavior != null)
    behavior.MaxItemsInObjectGraph = 2147483647;
    // Store the current endpoint configuration name.
    m_EndpointConfigurationName = endpointConfigurationName;
    private IMyServiceContract GetChannel(
    MyServiceApplicationProxy proxy,
    Uri address)
    //Create Channelfactory
    SetChannelFactory(proxy, address);
    // Create a channel from the channel factory.
    return s_ChannelFactory.CreateChannelActingAsLoggedOnUser(new EndpointAddress(address));
    All research pointed out that "CreateChannelActingAsLoggedOnUser" would pass the current user (which is correctly identified within the event receiver!) to the service, but it doesn't work for my event receiver...
    Any advice on this would be great!
    With kind regards,
    Joachim

    You should be able to get the current user id from the SPListItemEventProperties object. From here you should be able to create a Claim. For example get the user by using
    user = SPWeb.Users.GetByID(properties.CurrentUserId)
    SPClaim claim = SPClaimProviderManager.CreateUserClaim(user.email, SPOriginalIssuerType.TrustedProvider, issuerIdentifier);
    https://msdn.microsoft.com/en-us/library/microsoft.sharepoint.administration.claims.spclaimprovidermanager.createuserclaim(v=office.14).aspx
    Blog | SharePoint Field Notes Dev Tools |
    SPFastDeploy | SPRemoteAPIExplorer

  • Error calling WSDL Service in Swing application.

    I'm having the following error when calling a web service in a Swing Application.
    getUserInfo is defined and properly deployed. I tried several time to recreate WSDL cache and auto generated code, but nothing changed.
    Exception occurred during event dispatching:
    java.lang.Error: java.lang.reflect.InvocationTargetException
    Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.jdesktop.application.ApplicationAction.noProxyActionPerformed(ApplicationAction.java:662)
        ... 88 more
    Caused by: java.lang.Error: Undefined operation name getUserInfos
        at com.sun.xml.ws.model.JavaMethodImpl.freeze(JavaMethodImpl.java:327)
        at com.sun.xml.ws.model.AbstractSEIModelImpl.freeze(AbstractSEIModelImpl.java:97)
        at com.sun.xml.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:268)
        at com.sun.xml.ws.client.WSServiceDelegate.addSEI(WSServiceDelegate.java:683)
        at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:340)
        at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:323)
        at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:305)
        at javax.xml.ws.Service.getPort(Unknown Source)
        at com.up4b.mercury.services.ServerManagerService.getServerManagerPort(ServerManagerService.java:56)
        at com.up4b.mercury.client.MercuryClientLoginBox.checkUser(MercuryClientLoginBox.java:139)
        ... 93 more

    OK.
    So here is an inside view of what I'm doing:
    Service is coded in a J2EE Web Application like this:
         * Web service operation
        @WebMethod(operationName = "userInfos")
        public Musers userInfos(@WebParam(name = "userId")
        Long userId) {
            return serverManager.getUserInfos(userId);
        }And in the client (Swing application generated by Netbeans) the code is:
    try { // Call Web Service Operation
                        com.up4b.mercury.services.CampaignManagerService service = new com.up4b.mercury.services.CampaignManagerService();
                        com.up4b.mercury.services.CampaignManager port = service.getCampaignManagerPort();
                        java.lang.Integer campaignId = client.getCampaignId();
                        java.util.List<com.up4b.mercury.services.Mstatus> result = port.getStatusList(campaignId);
                        Iterator iter = result.iterator();
                        String[] statusArray = new String[255];
                        statusArray[0] = "Sélectionner un statut";
                        int i = 1;
                        while (iter.hasNext()) {
                            com.up4b.mercury.services.Mstatus ts = (com.up4b.mercury.services.Mstatus) iter.next();
                            statusArray[i] = ts.getStatusSdesc();
                            i++;
                        status.setToolTipText("Statut de la fiche");
                        status.setModel(new javax.swing.DefaultComboBoxModel(statusArray));
                        status.setSelectedIndex(0);
                        // Reset pause mode to false and button to proper state
                        pauseButton.setSelected(false);
                        pauseButton.setText("Pause");
                        pauseState = false;
                    } catch (Exception ex) {
                        getClient().setIsActive(false);
                    }

  • Error calling web service from Adobe form

    Hi Experts,
    While calling web service form my adobe form, i was getting an error as below saying "Error attempting to read from the file" followed by the URL of my web service.
    To create the above scenario i followed the following steps:
    1. Create a Function module and create a web service from that function module.
    2. Through SOAMANAGER, download the WSDL file for the generated web service.
    3. Create an Adobe form with an empty Interface and create a new Data Connection on the form using the downloaded WSDL.
    4. Generate this adobe form using an ABAP report.
    Kindly extend help on this to figure out if I'm missing something!!!

    Well questions related to Web Services have been answered here in past, please Search on SCN for links to it.

  • Xslt: calling custom Service Application Proxy from xslt

    Hi,
    Basically, i have creted my custom service application and i wrote webpart to consume it. I have a requirement, to add a button in the SharePoint-Blog XSLTListViewWebPart located in the ~/blog/post/post.aspx page. In this page, they have 2 XSLTListViewWebPart,
    and i want to add a button in it to call my service application webservices. I have 2 problems:
    a. how to get the target url of my service app because in Custom Service App, it add reference to my AppClientService class in my service app:
    using
    (SPSite
    oSite = properties.OpenSite())
    AppServiceClient
    serviceClient = new
    AppServiceClient(SPServiceContext
    .GetContext(oSite));
    serviceClient.InsertTest("UserName"
    b.
    how to integrate the calling of my custom Service Application in the XSLTListWebPart?
    Any
    article about custom application with xsltListWebpart would be appreciated.
    Thank you.
    Thank
    you.
    Regards,
    Jerry

    In the blog.xsl file below span tag renders the author
    So you can use RenderAuthor template to display the author name
    <!-- For the author field, render it using the span style and preceed it with the word "by"-->
    <span class="ms-postfootercolor"><xsl:value-of select="$thisNode/../@resource.wss.ByPrefix"/></span><xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes">&amp;nbsp;</xsl:text><xsl:call-template name="RenderAuthor"/>

  • I'm getting a setup error, contact customer service when I try to install the 30 day trial

    I contacted Customer Service, they said to leave a post here and someone would respond to it.  Any help is appreciated.

    And what error is it? What computer do you install on? Please be more specific! There's just too many possible causes.
    Mylenium

  • Calling customer service

    I have been having some problems with 2 of my remotes.  i called the 800 number on Thursday and finally gave up after over 40 min. on hold.  Then I used the in-home feature, but really did not get much solved.  Today I called the 800 number again and gave up after 1 hr. 27mins.  I thought I could just wait "Peggy" out, but no.  Once again, I got on in home chat and finally got an appointmet for a Tech.  He came this afternoon and fixed everything quickly.  It is the on hold that I am complaining about.  I want to be able to talk to a human...  I have heard that Verizon was in trouble and I am beginning to believe it and know why.

    You could also try a live chat with an agent.  Sometimes you can get through quicker and receive a more straightforward answer to your question that way.  With the phone, I usually hang up and call again later if I find that I'm on hold for 15 minutes or more because I don't have time for that. 
    Welcome to Verizon or better yet, business in the 21st century where customer service often takes a back seat.

  • OIM 11g - Error Creating Custom 'Service Account' Field

    Hi experts,
    we would like to create a custom "Service Account" checkbox on a Form Provisioning, in way to enable\disable the 'service account'
    status on a target account.
    We wanto to control the 'Service Account' status through a checkbox into the account form.
    Here our steps:
    - Create a new Field on 'UD_ADUSER' Form, we add a 'Service Account' CheckBox as boolean type with default value = 0.
    - Create a new Adapter 'Service Account':
    ---- into 'Variable List' tab we define 2 variables: ProcessInstance -> Long and ServiceAccountCheckBox -> boolean
    ---- into 'Adapter Task' tab we define an IF(ServiceAccountCheckbox == 1) launch tcUserOperationsIntf.changeToServiceAccount method, with our variable 'ProcessInstance' as Input
    - Create a new task into 'Process Definition', we created 'Service Account Updated'.
    ---- into task tab named 'Integration' we set our custom adapter, mapping Process Data > Process Instance and Process Data > Service Account with adapter variables.
    When we assign an 'AD User' resource to a user, the new checkbox 'Service Account' is showed into the form.
    If we check/uncheck the checkbox the task 'Service Account Updated' is launched, but the response is "*Specified User Account Not Found*"
    I think that the problem is into the adapter..
    Any one can help us?
    Best Regards
    AT

    As I said map user key(usr_key) and process instance key(orc_key) form design console
    and use below query to get oiu_key
    prockey=<PROCESS_INSTANCE_KEY>;
    user_key=<USR_KEY>;
    String sqlquery="select oiu_key from oiu " +
    "where ORC_KEY = prockey " +
    "and usr_key = user_key" ;
    Connection con=Platform.getOperationalDS().getConnection();
    Statement st=con.prepareStatement(query);
    ResultSet rs=st.executeQuery();
    while(rs.next())
    long oiuKey=rs.getLong("oiu_key");
    now pass this key in the method

  • I can not find a phone # where I can call customer service for help....

    need a phone number to customer service quick

    Hi,
    You may find the local phone number to contact HP Support in the following link:
    http://www8.hp.com/us/en/contact-hp/ww-contact-us.​html
    Select your region first, then follow 'Technical support after you buy' within the Phone section.
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

Maybe you are looking for

  • In Photoshop CC (2014), Hue/Saturation adjustment layer properties disappear

    I am running Photoshop CC (2014) under Windows 7 Professional.  The program is up to date. Today, while editing an 8-bit image, I added a Hue/Saturation adjustment layer.  Then, in the properties panel for this layer, with the on-image adjustment too

  • Ready to throw my imac out the window!!

         I've had my iMac9,1 Intel 2 Duo 2, 2.66GHz, 4gb RAM, 600gb ROM for about two years now.  It has been a dream until about two months ago.  It started with my mouse malfunctioning while playing World of Warcraft.  It was like the mouse buttons wer

  • How to set a location of a JFrame using mouseListener?

    Hi, I was wondering how i could set the location of a JFrame using the mouseListener? I know when i want to show a JPopMenu i can do: pop.setLocation(e.getX(), e.getY()); pop.setInvoker(null); By using .setInvoker(); I can show the jpopup on the posi

  • Can we condense the two ODBC forums

    Under Technologies | Windows, there are two different forums for discussing ODBC and nothing, apparently, to differentiate the two forums. Under the old structure, this at least accomplished the objective of having ODBC discussions with two different

  • Getting error code 300 while trying to install an ...

    Please help me resolve the error while trying to install an app in nokia asha 311 mobile. The error code is 300. Please advise. Regards, KPS