JSON request in WADL

Hi guys,
I'm trying to perform POST operations via a REST service, but I can only get it to work with a JSON raw request (tested via Postman chrome app).
But the WADL generator doesn't work with JSON requests.  Anyone know of a way to manually fix the WADL file so that I can load it into Siena?
Cheers,
James

Hey James,
Thanks for the post! To create a JSON object in your POST request you need to use the  <representation> tag (as a child within <request>). The <representation> tag can be used to describe the JSON body of an HTTP request. For example: 
<representation mediaType="application/json">
  <param style="plain" name="name" required="true" path="/name" fixed="John
Doe" />
  <param style="plain" name="title" required="true" path="/title" fixed="Sales" />
  <param style="plain" name="homephone" required="true" path="/phones/home" fixed="555-0001" />
  <param style="plain" name="workphone" required="true" path="/phones/work" fixed="555-0002" />
</representation>
The above <representation> element would produce the following JSON data in the request body:
  "name": "John Doe",
  "title": "Sales",
  "phones": {
    "home": "555-0001"
    "work": "555-0002"
Hope this helps! Please don't hesitate to reach out with any more questions.
Thanks,
Evan
Program Manager - Microsoft Project Siena

Similar Messages

  • I'm getting a 'JSON request was malformed' when trying to log in on a toolbar...what can I do? Thanks in advance!

    I am working with a company that requires me to log in on a toolbar, but when I do, I get the error 'JSON request was malformed'. WTH does that mean and what can I do? Thanks!

    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    *Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do not click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Parsing json request from HTTPSend in visual studio 2013

    Dear all, 
    I need to pass this value in HTTPSend activity and i need to get the value of ClaimsToken.
    Below is the query. 
    string.Format("{0}/_api/web/lists/getbytitle('List')/items?$filter=Department eq 'Department'&$select=ClaimsToken",CurrentSiteUrl)
    "d/results(0)//ClaimsToken" i use this to get the output. i am getting null value returned. 
    your help would be appreciated
    manikantan

    Hi Doug,
    >>However, there is no Business Intelligence Wizards folder under 12.0\Common7\IDE\PrivateAssemblies - yet when selected, the report wizard is picking up a list of styles from somewhere.
    Just to make this issue clearly, whether this issue is related to the SSRS?
    Reference:
    http://forums.asp.net/t/2006554.aspx?How+to+make+Business+Intelligence+available+for+VS+2013+Express
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/7948fda2-c43b-48ad-8f4a-05fe0d528bf8/custom-styles-in-report-builder-20-table-or-matrix-wizard?forum=sqlreportingservices
    You said that it is related to the Business Intelligence, do you mean that you want to install the SSDT-BI?
    http://www.microsoft.com/en-hk/download/details.aspx?id=42313
    Like the second link in above references, if it is related to the SSRS, this forum would be better for you:
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=sqlreportingservices
    If not, please feel free to let me know more information about this issue.
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to send JSON data in HTTPService to PHP web service question

    I'm using Flex 4 and a mx:HTTPService to send a JSON request to a php web service. I'm not sure if I'm sending the request correctly. Could someone look at the code below to see what I'm doing wrong?
    thanks
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:mx="library://ns.adobe.com/flex/mx"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   width="100%" height="100%">
        <fx:Declarations>
            <mx:HTTPService id="service" url="https://my web service url/"
                            method="POST" resultFormat="text" result="onResult(event)" fault="onFault(event)">
            </mx:HTTPService>
        </fx:Declarations>
        <fx:Script>
            <![CDATA[
                import com.adobe.serialization.json.JSON;
                import mx.collections.ArrayCollection;
                import mx.rpc.events.FaultEvent;
                import mx.rpc.events.ResultEvent;
                import mx.utils.Base64Encoder;
                [Bindable]private var username:String = "[email protected]";
                [Bindable]private var password:String = "the password";
                [Bindable]private var accountNumber:String = "49055";
                [Bindable]private var anticipatedDeliveryDate:Number = 20101115;
                [Bindable]private var purchaseOrder:String = "#123 for retailer";
                [Bindable]private var detailRecords:Array = new Array();
                [Bindable]private var key:String = "abc123";
                private function populateService():void {
                    populateProducts();   
                    setRequestHeader();
                    setRequestData();
                    service.send();   
                private function setRequestHeader():void {
                    var encoder:Base64Encoder = new Base64Encoder();
                    encoder.insertNewLines = false;
                    encoder.encode(key);               
                    service.headers["Authorization"] = "VIP " + key;
                    service.headers["Content-Type"] = "application/json";
                private function setRequestData():void {
                    service.request.username = username;
                    service.request.password = password;
                    service.request.accountNumber = accountNumber;
                    service.request.anticipatedDeliveryDate = anticipatedDeliveryDate;
                    service.request.purchaseOrder = purchaseOrder;
                    service.request.detailRecords = detailRecords;
                    // caching test
                    var rnd : Number = Math.round(Math.random()*1000);
                    service.request.cacheOff = rnd;
                private function populateProducts():void {
                    var prod1:Object = new Object();
                    prod1.itemCodeOrUPC = "00241";
                    prod1.itemDescription = "Budweiser Keg 1/2 BBL";
                    prod1.quantityOrdered = 2;
                    prod1.orderUOM = "Keg";
                    var prod2:Object = new Object();
                    prod2.itemCodeOrUPC = "00219";
                    prod2.itemDescription = "Budweiser 24/12 OZ CAN";
                    prod2.quantityOrdered = 4;
                    prod2.orderUOM = "Case";
                    detailRecords.push(prod1);
                    detailRecords.push(prod2);
                private function onResult(event:ResultEvent):void
                    var json:Object = JSON.decode(event.result as String);
                private function onFault(event:FaultEvent):void
                    trace("Fault: " + event.fault.faultString);
            ]]>
        </fx:Script>
        <mx:Panel width="95%" height="100%" color="#000000">
            <mx:HBox width="100%">
                <mx:Button label="Submit" click="{populateService()}"/>
            </mx:HBox>   
        </mx:Panel>
    </s:Application>

    Have you think abut using ActionScript in your Flex application? Or, you can write javascript to be proxy between your flash app and backend PHP web service?
    Also, it seems that you will allow every customer's flash player to have a copy of secret code. I think it is dangerous design because an flv file can be easity decompiled. Therefore, you secret code can be found if it is not input by your end user and it is populated on your serverside script.

  • How to set Content-Disposition to "application/json;"

    Using System.Net.Http.Httpclient, I am trying to do a multipart post in C# and with a wp8.
    This is a snippet of my code:
    varclient =
    newHttpClient();
                    client.DefaultRequestHeaders.TryAddWithoutValidation(
    "Content-Type",
    "application/json");
    MultipartFormDataContent
    content = newMultipartFormDataContent();
    content.Add(
    newStringContent(requestObj,
    Encoding.UTF8,
    "application/json"),
    "request");
    but using Fiddler, I noticed that I am sending this:
    Content-Type: application/json; charset=utf-8
    Content-Dis name=request
    while I need to send this (taken from an android device where the call is working):
    Content-Dis name="request"
    Content-Type: text/plain; charset=UTF-8
     - How to achieve the expected result?

    Your code explicitly sets the incorrect content type.  Why are you setting it to "application/json", when you say it requires "text/plain; charset=UTF-8"?
    Bret Bentzinger (MSFT) @awehellyeah

  • Cache JSON response

    Hi,
    I used following blog to Ajaxify a component
    http://blogs.adobe.com/mtg/2011/11/building-components-in-adobe-cq5-part-2-a-tutorial-on-j query-ajax-and-sling.html
    Basically this talks about creating a JSP file in conponent with name [ComponentName].json.POST.jsp to allow running custom code to return JSON.
    My component is doing JCR search based a parameters and returning a JSON list (which could be different for different parameters)
    So all went well till I discover performance issues with AJAX response time.
    Is there a way in CQ5 to cache result of JSON and have it auto every x mins?
    Thanks in adavnce.

    Thanks Justin. I have couple of questions to understand the proposed solution
    1) Do you know how can I convert component POST to GET (for the reference blog). I tried renaming to myajaxsample.json.GET.jsp but it breaks component input dialog. Note that this component is making Ajax call to
    <%= currentNode.getPath() %>.json
    2) Can I force cache to update for cases when data for a particular JSON request is updated?

  • Json PUT method business service invoke via OSB

    Hi,
    I have to invoke business service that takes input as json object. I have followed following steps to create the project.
    1. I have setup business service with "Messaging Service", and selected TEXT as request and response.
    2. Created proxy service that is using wsdl.
    3. In message flow, I have added service call out and setup bodyRequest as Request Variable in payload document.
    4. I have added transport header to setup header as required.
    5. $bodyRequest is setup by json lib utility(java callout), which gets xml as input and return json object as string.
    6. When business service get invoked, Following payload is passed:
    <soapenv:Body      xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
         {"name":"string","status":"string","utilities":{"utilId":"string","utilType":"string"}}
    </soapenv:Body>
    whereas it should be only json request i.e.
    {"name":"string","status":"string","utilities":{"utilId":"string","utilType":"string"}}
    When I see the trace I get "{"name":"string","status":"string","utilities":{"utilId":"string","utilType":"string"}}" in $bodyRequest, but when it is passed to business Service, it gets embedded in <soapenv:Body></soapenv:Body>
    Kindly can anyone help me in this regard.

    yes, but I get response as no json body was found. This is response if i give input with soapBody, but if i only give json object i.e. {"name":"string","status":"string","utilities":{"utilId":"string","utilType":"string"}} , outside OSB i.e. using some json tool, it works fine.

  • OSB Conversion of Soap Service to JSON

    Hi All,
         I have a SOAP service that returns a list of employees which needs to be exposed in JSON format. I have nearly implemented this using XMLBeans by doing the following.
    In the message flow of OSB, the JSON request is converted into XML and a Service Callout is made to the SOAP service which returns the Employees list in the response. The SOAP response is then assign to the variable 'responseXML' and then a Java callout is made to convert the 'responseXML' to JSON response. The Java callout method is as below. The XMLObject parameter passed from the OSB is a XMLfragment instead of the full XML document.
    public static String employeeListResponseXmlToJson(XmlObject xml) {
            System.out.println("employeeListResponseXmlToJson() called with: " + xml.toString());
                   ObjectWriter writer = EmployeeServiceMapperFactory
                    .getEmployeeListWriter();
            EmployeeListResponse employeeListResponse =  new EmployeeListResponse();
            ArrayList <au.gov.vic.ambulance.pojo.Employee> employeeList = new ArrayList<au.gov.vic.ambulance.pojo.Employee>();
            String json = null;
            try {
                EmployeesDocument doc = EmployeesDocument.Factory.parse(xml.newXMLStreamReader());           
                if (doc instanceof EmployeesDocument) {
                    EmployeesDocument employeesDoc = (EmployeesDocument) doc;
                    Employees source = employeesDoc.getEmployees();               
                    for (Employee emp: source.getEmployeeArray())
                        au.gov.vic.ambulance.pojo.Employee employee = new au.gov.vic.ambulance.pojo.Employee();
                        employee.setEmployeeNumber(emp.getEmployeeNumber());
                        employee.setFirstName(emp.getFirstName());
                        employee.setMiddleName(emp.getMiddleName());
                        employee.setLastName(emp.getLastName());
                        employee.setPreferredName(emp.getPreferredName());
                        employee.setPreviousLastName(emp.getPreviousLastName());
                        employee.setTitle(emp.getTitle());
                        employee.setHireDate(emp.getHireDate());                  
                        employeeList.add(employee);
                    employeeListResponse.setEmployeeArr(employeeList);
                    json = writer.writeValueAsString(employeeListResponse);
            } catch (XmlException e) {
                e.printStackTrace();
            } catch (JsonGenerationException e) {
                e.printStackTrace();
            } catch (JsonMappingException e) {
                e.printStackTrace();
            } catch (IOException e) {
                e.printStackTrace();
            return json;
    The XML in the 'responseXML' variable is a as below
    <Employees xmlns:es="http://abc.com/employee>
        <Employee>
        </Employee>
        <Employee>
        </Employee>
    </Employees>
    The XML after Java callout is made from OSB is a as below.
    <xml-fragment>
        <Employee>
        </Employee>
        <Employee>
        </Employee>
    </xml-fragment>
    Why is OSB not passing the entire XMLDocument? Please suggest and help.
    Thanks

    Use the JSON libraries like jackson, Gson etc. to convert the from java collection to json that would be much easier. I recently done the same in my webservices.
    Regards,
    Anshul

  • Can't upload an app using either Xcode 4.2 or Application Loader JSON Error

    Hi,
    I am struggling with a problem for the past few days. I can't upload my archived application for an update of an existing app. The app name is (عرض القبلة). So it is in Arabic, though I changed the bundle name in the project to have only ASCII characters.
    When I try to Validate or Submit using Xcode or when I click Deliver your App button in Application Loader I am getting the following message:
    An error occurred talking to the iTunes Store
    In the Console I am seeing the following error message:
    10/25/11 12:57:59.387 AM Xcode: *** Error: An error occurred while deserializing the JSON request.  Error Message - Invalid spurious JSON character sequence (ا) at index 990
    Please note that the character in paranthesis is an Arabic character.
    I installed the latest version of Java for Lion but it didn't work. The application name in Xcode does not have any Arabic characters, I belive that the problem is coming because of the name in iTunesConnect.
    Does anyone know how to solve this problem. I tried 2 different machines but I am getting the same error on both of them.

                                      Can't upload apps using xcode4, JSON error, anyone knows?                    

  • APIM REST API - How to add an API with operations?

    When I issue a PUT to /apis/{aid} with import=true and contentType = application/json, I get an 400 BadRequest if the body contains operations.  Note that I'm
    not using WADL or Swagger format, and am building the JSON request body instead as per the documentation.  
    The error returned in the response body is:
    {"error":{"code":"ValidationError","message":"One or more fields contain incorrect values:","details":[{"code":"ValidationError","target":"operations","message":"Invalid
    field 'operations' specified"}]}}
    If I omit the operations field from the request body, the API is created correctly (but with no operations of course).  
    To illustrate, here is the RAW request (slightly modified to remove the authorization and instance names):
    PUT https://testinstance.management.azure-api.net/apis/123456?api-version=2014-02-14-preview&import=true HTTP/1.1
    Authorization: SharedAccessSignature . . .
    Content-Type: application/json; charset=utf-8
    Host: testinstance.management.azure-api.net
    Content-Length: 414
    Expect: 100-continue
    Connection: Keep-Alive
    {"name":"Customer","description":"This API is used to manage customers","serviceUrl":"http://www.somewebsite.com/customers","path":"customers","protocols":["http","https"],"operations":[{"id":"/apis/123456/operations/a04b16da-29b7-44f5-95a3-25603dbc9b6d","name":"Customer
    (Get)","description":"Returns information about the customer with the specified ID.","method":"GET","urlTemplate":"/customers/{customerId}"}]}
    The JSON looks correct to me - can anyone spot what I'm doing wrong?  Can you provide a RAW request that works?
    Note also that I've not included the "path" query string parameter, even though the documentation suggests that it is required when import=true.  Since there is no easy way to update APIs/Operations en masse, I'm having to resort to driving
    the APIM REST API and could use some additional documentation for this specific operation.

    Just updating this thread with the answer...my request body was malformed - I was using an array of objects for the operations field instead of a complex object representing the collection.
    So instead of this:
    "operations": [
    ...I should have been using this:
    "operations": {
        "value": [
    You can see the correctly formatted payload in the sample response body returned from the
    GetApi endpoint.
    Thanks to Vlad for pointing out my mistake!

  • Flash CS6; AS3: How to load image from a link on one frame and addChild(image) on other?

    How can I addChild outside the frame of images loader function? When I try to addChild on the other frame of the same loader, I get an error.
    I need to download all my 10 images only ONE TIME and place it on the screen in the other frames (to the same movie Clip).
    Also I can only play this as3 coded frame once. I know how to add an array of images, but I only need to understand how to do it with one image.
    Here is my loader for one image..
       var shirt1 = String("https://static.topsport.lt/sites/all/themes/topsport2/files/images/marskineliai_png/215.pn g");
       var img1Request:URLRequest = new URLRequest(shirt1);
       var img1Loader:Loader = new Loader();
       img1Loader.load(img1Request);
       myMovieClip.removeChildAt(0);
       myMovieClip.addChild(img1Loader);

    Symbol 'Spinner', Layer 'AS', Frame 2, Line 1
    1120: Access of undefined property img1Loader.
    [FRAME1]
    import flash.display.Sprite;
    import flash.events.Event;
    import flash.net.URLLoader;
    import flash.net.URLRequest;
    import flash.events.*;
    import flash.net.URLRequestHeader;
    import flash.net.URLRequestMethod;
    import flash.net.URLVariables;
    import flash.events.SecurityErrorEvent;
    function init(e:Event = null):void
        removeEventListener(Event.ADDED_TO_STAGE, init);
        var loader:URLLoader = new URLLoader();
        var request:URLRequest = new URLRequest("http://www.topsport.lt/front/Odds/affiliate/delfi");
      var acceptHeader:URLRequestHeader = new URLRequestHeader("Accept", "application/json");
      request.requestHeaders.push(acceptHeader);
      request.method = URLRequestMethod.POST;
        //request.url = _jsonPath;
        loader.addEventListener(Event.COMPLETE, onLoaderComplete);
      //loader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
        loader.load(request);
      try {
                    loader.load(request);
                } catch (error:Error) {
                    trace("Unable to load requested document.");
    init();
    function onLoaderComplete(e:Event):void
        var loader:URLLoader = URLLoader(e.target);
        var jsonObject:Object = JSON.parse(loader.data);
      var marsk1 = String("https://static.topsport.lt/sites/all/themes/topsport2/files/images/marskineliai_png/215.pn g");
      var img1Request:URLRequest = new URLRequest(marsk1);
      var img1Loader:Loader = new Loader();
      img1Loader.load(img1Request);
      _2.removeChildAt(0);
      if(_2 != null)
      _2.smoothing = true;
      //    the addChild which works when on frame one
      //_2.addChild(img1Loader);
    [FRAME2]
      _2.addChild(img1Loader);
    p.s. I removed the unnecessary code like other movieClips. It works then addChild function is on frame one.
    I'm kind of new to as3. I started using it this month so sorry if it's the obvious mistake.
    How to make flash recognize the loader?

  • Caching gateway'd pages....

    Edit: disregard this. Twitter's rate limiting means that if you try to gateway the json request you'll run out of your request limit very fast. I'll write an app to make the request.
    I'm working on a twitter portlet. (by the way, if anyone has one already, stop me....) I was thinking of just grabbing one of the 8 million of the twitter widgets off the internet and just modify it to use the gateway. (Our portal is https, so normal widgets don't work without dislaying the mixed mode warning in IE).
    The way most widgets work is they load the tweets via ajax. I gatewayed the http://twitter.com/user-stautuses/. page but I wasn't sure if i could cache the response on the portal.
    My questions:
    Does the portal cache gateway'd requests in a smilar manner as caching the initial portlet request? Does settign the minimum and maximum cache times have any affect on a gatewayed request?
    In related news, when i was googling for alui caching i found this which doesn't seem to be in the normal alui blogrolls...
    http://mauroy.blogspot.com/2009/05/caching-portlets-in-alui-6x.html
    Edited by: Joel Collins on Jul 9, 2009 7:26 AM

    Using the application scope is one way to do it.
    I would recommend writing a CacheControl bean to handle this for you (or re-using an existing cache object)
    You can put that bean into the application scope. Just to keep things neat and tidy.
    How that bean then caches web pages is up to you
    - Store them in memory (I would recommend a LinkedHashMap in LRU mode)
    - Store them to disk - less memory intensive, a bit slower but can store more
    How are you going to determine if a page is "the same"?
    I think you should also consider the "no-cache" tags that a page may send with itself.
    Caching can drive web application drivers nuts, as the page actually DOES change on every request.
    Cheers,
    evnafets

  • Error Unexpected end of file from server with HTTP POST

    Hi everyone,
    I'm coding a simple client to download some information from a local machine in my LAN.
    I have to do this with an http post request.
    When i try to parse the http response the program catch an exception, this one:
    java.net.SocketException: Unexpected end of file from server
    at sun.net.www.http.HttpClient.parseHTTPHeader(...)
    the parameter is a JSON request, and of course the response is a JSON formatted.
    i put the http request code:
    import java.io.BufferedInputStream;
    import java.io.BufferedReader;
    import java.io.ByteArrayOutputStream;
    import java.io.InputStream;
    import java.io.InputStreamReader;
    import java.io.OutputStreamWriter;
    import java.net.HttpURLConnection;
    import java.net.URL;
    public class HttpDownloaderThread  extends Thread{
         private String url;
            private String param;
         private HttpDownloadListener listener;
         private HttpURLConnection connection=null;
         private InputStream is;
            private OutputStreamWriter wr;
         public HttpDownloaderThread(String _url,String param, HttpDownloadListener _listener){
              url = _url;
              listener = _listener;
                    this.param=param;
         public void run(){
              try{
                   connection=(HttpURLConnection)new URL(url).openConnection();
                            connection.setRequestMethod("POST");
                            connection.setReadTimeout(5000);
                            connection.setRequestProperty("Content-Type", "application/jsonrequest");
                            connection.setDoOutput(true);
                            wr = new OutputStreamWriter(connection.getOutputStream());
                            wr.write(param, 0, param.length());
                            wr.flush();
                            int responseCode=0;
                   System.out.println();
                            try{
                             responseCode= connection.getResponseCode();
                            }catch(Exception e){
                                e.printStackTrace();
                   if (responseCode == HttpURLConnection.HTTP_OK){
                        is = connection.getInputStream();
                                     BufferedReader rd = new BufferedReader(new InputStreamReader(is));
                                    String line;
                                    while ((line = rd.readLine()) != null) {
                                        System.out.println(line);
                        closeHttpConnection();
                        listener.resourceDownloaded(url, null);
                                else{
                                closeHttpConnection();
                                listener.downloadFailed(url, new Exception("Http error: " + Integer.toString(responseCode)));
              }catch(Exception e){
                   e.printStackTrace();
                   listener.downloadFailed(url, e);
              }finally{
         public void closeHttpConnection(){
              if (is != null){
                   try{
                        is.close();
                                    wr.close();
                   }catch (Exception e){
                   }finally{
                        is = null;
                                    wr=null;
              if (connection != null){
                   try{
                        connection.disconnect();
                   }catch (Exception e){
                   }finally{
                        connection = null;
    }there's someone who know's why??
    Thanks to everyone :)
    Thomas.

    jole_star wrote:
    this problem also happen to me,.So since you provided actually no information about your problem you are going to get exactly the same response.
    Please don't hijack old threads. Start your own and provide much much much more information.
    I shall lock this thread.

  • Can two accounts just use one macbook.error occurred talking to the iTunes store

    I have two accounts(A and B), of course I just use one iphone and one macbook.
    but now ,the problem is,
    the account A can use xcode organizer to upload App,
    and the account B can't upload in the same MAC and Xcode,
    the error message is: error occurred talking to the iTunes store
    and the console print:  *** Error: An error occurred while deserializing the JSON request.  Error Message - Invalid JSON character read at index 0
    (of course if I change from account B to A, upload success)
    it cotinue for three days, of course there are many people have the same problem.
    must I buy another iphone ,another macbook,and install another xcode
    I am so sad.
    thank you

    the problem is ,  .ipa can't  upload by(in) account B
    I think the bug can be two possible list blow
          1.  the .ipa  is wrong
          2.  the account(B) is wrong.
    if   the .ipa is wrong  
    the .ipa can't upload  by any account (account A  or  account B,  just change the identifier and the sigh identity)
    but if the .ipa can upload success by  account A,
    so , the .ipa(program) is right.
    then, there is exist only one possible,   the account (B) is wrong,
    K T , do you thine my logic for this problem is right

  • Can two accounts just use one macbook and one iphone.error occurred talking to the iTunes store

    I have two accounts(A and B), of course I just use one iphone and one macbook.
    but now ,the problem is,
    the account A can use xcode organizer to upload App,
    and the account B can't upload in the same MAC and Xcode,
    the error message is: error occurred talking to the iTunes store
    and the console print:  *** Error: An error occurred while deserializing the JSON request.  Error Message - Invalid JSON character read at index 0
    (of course if I change from account B to A, upload success)
    it cotinue for three days, of course there are many people have the same problem.
    must I buy another iphone ,another macbook,and install another xcode
    I am so sad.
    thank you

    the problem is ,  .ipa can't  upload by(in) account B
    I think the bug can be two possible list blow
          1.  the .ipa  is wrong
          2.  the account(B) is wrong.
    if   the .ipa is wrong  
    the .ipa can't upload  by any account (account A  or  account B,  just change the identifier and the sigh identity)
    but if the .ipa can upload success by  account A,
    so , the .ipa(program) is right.
    then, there is exist only one possible,   the account (B) is wrong,
    K T , do you thine my logic for this problem is right

Maybe you are looking for