Error in annoting camel swagger Rest Service - rest

I have created a rest Service using Apache Camel Swagger component. The rest service works fine but the request and response schema is not what i intended of.
The schema that i am trying to create is :
{
"GetStudentData": [
{
"RollNumber": "1",
"Name": "ABC",
"ClassName": "VII",
"Grade": "A"
}]
}
For this i have created a model as:
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
#XmlRootElement(name = "GetStudentData")
#XmlAccessorType(XmlAccessType.FIELD)
#XmlType(name="", propOrder={"studentInfo"})
public class StudentInfoWrapper {
#XmlElement(required=true)
private List<Student> studentInfo;
private double visiteddate;
public double getVisiteddate() {
return visiteddate;
}
public void setVisiteddate(double visiteddate) {
this.visiteddate = visiteddate;
}
public List<Student> getStudentInfo() {
return studentInfo;
}
public void setStudentInfo(List<Student> studentInfo) {
studentInfo = studentInfo;
}
}
And my student class is:
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
#XmlAccessorType(XmlAccessType.FIELD)
#XmlType(name="", propOrder={"RollNumber", "Name", "ClassName", "Grade"})
public class Student {
private String RollNumber;
private String Name;
private String ClassName;
private String Grade;
public String getRollNumber() {
return RollNumber;
}
public void setRollNumber(String rollNumber) {
RollNumber = rollNumber;
}
public String getName() {
return Name;
}
public void setName(String name) {
Name = name;
}
public String getClassName() {
return ClassName;
}
public void setClassName(String className) {
ClassName = className;
}
public String getGrade() {
return Grade;
}
public void setGrade(String grade) {
Grade = grade;
}
}
So when i load the above service into the swaggerUI it doesn't show the schema that i want.
How can i i get the desired schema. Looking forward to your answers.
Thanks in advance.

Related

Trying to read values returned on jsp form submission in springboot project by setters and use the combination to call another java class

So, I have values in getter setter variables when I click on form submit but now want to have those values in variables and check combination of them to run code from another java class
I have tried using parametrized constructor or may be having a common setter but that did not help.
package com.grt.dto;
import java.util.Set;
public class WDPayrollRecon {
public Set<String> dataType;
public String planCountry;
public String payPeriod;
public String currentPeriod;
public String lastPayPeriod;
Set<String> test;
public Set<String> getdataType() {
return dataType;
}
public void setdataType(Set<String> dataType) {
this.dataType = dataType;
System.out.println("this is dataType" +dataType);
test = dataType;
}
public String getPlanCountry() {
return planCountry;
}
public void setPlanCountry(String planCountry) {
this.planCountry = planCountry;
}
public String getPayPeriod() {
return payPeriod;
}
public void setPayPeriod(String payPeriod) {
this.payPeriod = payPeriod;
}
public String getCurrentPeriod() {
return currentPeriod;
}
public void setCurrentPeriod(String currentPeriod) {
this.currentPeriod = currentPeriod;
}
public String getlastPayPeriod() {
return lastPayPeriod;
}
public void setlastPayPeriod(String lastPayPeriod) {
this.lastPayPeriod = lastPayPeriod;
}
public WDPayrollRecon()
{
}
public WDPayrollRecon(Set<String> dataType,String planCountry,String payPeriod,String currentPeriod,String lastPayPeriod)
{
this.dataType = dataType;
this.planCountry = planCountry;
this.payPeriod = payPeriod;
this.currentPeriod = currentPeriod;
this.lastPayPeriod = lastPayPeriod;
if(dataType.contains("GTLI")& planCountry.equals("USA")){
System.out.println("This is test");
}
else{
System.out.println("This is not test");
}
}
}

Rest Services - Tomcat able to start , homepage working fine but can't do any GET

`
https://www.pegaxchange.com/2016/08/11/jax-rs-java-rest-service-eclipse-tomcat/
I was trying to build working rest service by this guide.
And so far I am struggling.
I'm able to see Tomcat homepage via http://localhost:8080
But can't see any GET searches etc.
Tried to get by below URL
http://localhost:8080/SampleWebProject/search?name=
http://localhost:8080/SampleWebProject/productcatalog/search?name=
http://localhost:8080/SampleWebProject/myRestServices/search?name=
I'm still getting 404
Type Status Report
Message /SampleWebProject/search
Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.
What am I doing wrong?
Tried to build it 4 times from scratch, on different PC, doubled checked libraries, used Postman and Insomnia.
package com.pegaxchange.java.web.rest;
import javax.ws.rs.ApplicationPath;
import org.glassfish.jersey.server.ResourceConfig;
#ApplicationPath("restservices")
public class MyRESTServices extends ResourceConfig {
public MyRESTServices() {
packages("com.fasterxml.jackson.jaxrs.json");
packages("com.pegaxchange.java.web.rest");
}
}
----------
package com.pegaxchange.java.web.rest;
import java.util.*;
import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;
import com.pegaxchange.java.bean.Product;
import com.pegaxchange.java.bean.Status;
#Path("productcatalog")
public class ProductCatalogResource {
private static List<Product> productCatalog;
public ProductCatalogResource() {
initializeProductCatalog();
}
#GET
#Path("search")
#Produces(MediaType.APPLICATION_JSON)
public Product[] searchByName(#QueryParam("name") String name) {
List<Product> products = new ArrayList<Product>();
for (Product p : productCatalog) {
if (name != null && p.getName().toLowerCase().startsWith(name.toLowerCase())) {
products.add(p);
}
}
return products.toArray(new Product[products.size()]);
}
#POST
#Path("insert")
#Consumes(MediaType.APPLICATION_JSON)
#Produces(MediaType.APPLICATION_JSON)
public Status insert(Product product) {
productCatalog.add(product);
return new Status("SUCCESS", "Inserted " + product.getName());
}
#GET
#Path("getId")
#Produces(MediaType.APPLICATION_JSON)
public Product get(#QueryParam("id") int id) {
Product product = null;
for (Product p: productCatalog) {
if (id == p.getId() ) {
product = p;
break;
}
}
return product;
}
#POST
#Path("update")
#Consumes(MediaType.APPLICATION_JSON)
#Produces(MediaType.APPLICATION_JSON)
public Status update(Product product) {
Status stat = new Status("ERROR", "No ID " + product.getId());
Product prod = get(product.getId());
if (prod != null) {
if (product.getName() != null) {
prod.setName(product.getName());
}
if (product.getUnitPrice() != null) {
prod.setUnitPrice(product.getUnitPrice());
}
stat = new Status("Success", "updated ID " + product.getId());
}
return stat;
}
#DELETE
#Path("delete")
#Consumes(MediaType.APPLICATION_JSON)
#Produces(MediaType.APPLICATION_JSON)
public Status delete(#QueryParam("id") int id) {
Status stat = new Status("ERROR", "No ID " + id);
Product product = get(id);
if (product != null) {
productCatalog.remove(product);
stat = new Status("Success", "deleted" + product.getId());
}
return stat;
}
private void initializeProductCatalog() {
if (productCatalog == null) {
productCatalog = new ArrayList<Product>();
productCatalog.add(new Product(1, "Keyboard", 29.99D));
productCatalog.add(new Product(2, "Mouse", 9.95D));
productCatalog.add(new Product(3, "17\" Monitor", 159.49D));
productCatalog.add(new Product(4, "Hammer", 9.95D));
productCatalog.add(new Product(5, "Screwdriver", 7.95D));
productCatalog.add(new Product(6, "English Dictionary", 11.39D));
productCatalog.add(new Product(7, "A House in Bali", 15.99D));
productCatalog.add(new Product(8, "An Alaskan Odyssey", 799.99D));
productCatalog.add(new Product(9, "LCD Projector", 1199.19D));
productCatalog.add(new Product(10, "Smart Thermostat", 1199.19D));
}
}
}
---
package com.pegaxchange.java.bean;
import java.io.Serializable;
import javax.xml.bind.annotation.XmlRootElement;
#XmlRootElement
public class Status implements Serializable {
private static final long serialVersionUID = -9130603850117689481L;
private String status;
private String message;
public Status() {} // needed for JAXB
public Status(String status, String message) {
this.status = status;
this.message = message;
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
}
--
package com.pegaxchange.java.bean;
import java.io.Serializable;
import javax.xml.bind.annotation.XmlRootElement;
#XmlRootElement
public class Product implements Serializable {
private static final long serialVersionUID = 6826191735682596960L;
private int id;
private String name;
private Double unitPrice;
public Product() {} // needed for JAXB
public Product(int id, String name, double unitPrice) {
this.id = id;
this.name = name;
this.unitPrice = unitPrice;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Double getUnitPrice() {
return unitPrice;
}`enter code here`
public void setUnitPrice(double unitPrice) {
this.unitPrice = unitPrice;
}
}
Just after i posted i founded a solution.
Because its clearly visible...
Wrong URLs
http://localhost:8080/SampleWebProject/restservices/productcatalog/search?name=Hammer
and now working fine.

Spring Boot - Bean named entityManagerFactory

I am trying to make a simple Spring Boot application generated with jHipster to get from a postgresql a list of articles from a postreSQL database and display it using a rest controller, but when i run it i get
***************************
APPLICATION FAILED TO START
***************************
Description:
Parameter 0 of constructor in org.adi.security.DomainUserDetailsService required a bean named 'entityManagerFactory' that could not be found.
Action:
Consider defining a bean named 'entityManagerFactory' in your configuration.
But the thing is that that `DomainUserDetailsService is something generated by jhipster which stopped working after i added my classes. So i will write below my classes:
Article Entity:
package org.adi.domain;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
#Entity
#Table(name="articles")
public class Article implements Serializable {
private static final long serialVersionUID = 1L;
#Id
#GeneratedValue(strategy=GenerationType.AUTO)
#Column(name="article_id")
private int articleId;
#Column(name="title")
private String title;
#Column(name="category")
private String category;
public int getArticleId() {
return articleId;
}
public void setArticleId(int articleId) {
this.articleId = articleId;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getCategory() {
return category;
}
public void setCategory(String category) {
this.category = category;
}
}
ArticleDAO (Repository):
#Transactional
#Repository
public class ArticleDAO implements IArticleDAO {
#PersistenceContext
private EntityManager entityManager;
#Override
public Article getArticleById(int articleId) {
return entityManager.find(Article.class, articleId);
}
#SuppressWarnings("unchecked")
#Override
public List<Article> getAllArticles() {
String hql = "FROM Article as atcl ORDER BY atcl.articleId DESC";
return (List<Article>) entityManager.createQuery(hql).getResultList();
}
#Override
public void createArticle(Article article) {
entityManager.persist(article);
}
#Override
public void updateArticle(Article article) {
Article artcl = getArticleById(article.getArticleId());
artcl.setTitle(article.getTitle());
artcl.setCategory(article.getCategory());
entityManager.flush();
}
#Override
public void deleteArticle(int articleId) {
entityManager.remove(getArticleById(articleId));
}
#Override
public boolean articleExists(String title, String category) {
String hql = "FROM Article as atcl WHERE atcl.title = ? and atcl.category = ?";
int count = entityManager.createQuery(hql).setParameter(1, title)
.setParameter(2, category).getResultList().size();
return count > 0 ? true : false;
}
}
ArticleService:
#Service
public class ArticleService implements IArticleService {
#Autowired
private IArticleDAO articleDAO;
#Override
public Article getArticleById(int articleId) {
Article obj = articleDAO.getArticleById(articleId);
return obj;
}
#Override
public List<Article> getAllArticles(){
return articleDAO.getAllArticles();
}
#Override
public synchronized boolean createArticle(Article article){
if (articleDAO.articleExists(article.getTitle(), article.getCategory())) {
return false;
} else {
articleDAO.createArticle(article);
return true;
}
}
#Override
public void updateArticle(Article article) {
articleDAO.updateArticle(article);
}
#Override
public void deleteArticle(int articleId) {
articleDAO.deleteArticle(articleId);
}
}
and finally my REST controller:
#Controller
#RequestMapping("user")
#CrossOrigin(origins = {"http://localhost:4200"})
public class ArticleController {
#Autowired
private IArticleService articleService;
#GetMapping("article")
public ResponseEntity<Article> getArticleById(#RequestParam("id") String id) {
Article article = articleService.getArticleById(Integer.parseInt(id));
return new ResponseEntity<Article>(article, HttpStatus.OK);
}
#GetMapping("all-articles")
public ResponseEntity<List<Article>> getAllArticles() {
List<Article> list = articleService.getAllArticles();
return new ResponseEntity<List<Article>>(list, HttpStatus.OK);
}
#PostMapping("article")
public ResponseEntity<Void> createArticle(#RequestBody Article article, UriComponentsBuilder builder) {
boolean flag = articleService.createArticle(article);
if (flag == false) {
return new ResponseEntity<Void>(HttpStatus.CONFLICT);
}
HttpHeaders headers = new HttpHeaders();
headers.setLocation(builder.path("/article?id={id}").buildAndExpand(article.getArticleId()).toUri());
return new ResponseEntity<Void>(headers, HttpStatus.CREATED);
}
#PutMapping("article")
public ResponseEntity<Article> updateArticle(#RequestBody Article article) {
articleService.updateArticle(article);
return new ResponseEntity<Article>(article, HttpStatus.OK);
}
#DeleteMapping("article")
public ResponseEntity<Void> deleteArticle(#RequestParam("id") String id) {
articleService.deleteArticle(Integer.parseInt(id));
return new ResponseEntity<Void>(HttpStatus.NO_CONTENT);
}
}
Did you create a Persistence Unit?
[Reference]=> https://docs.oracle.com/cd/E19798-01/821-1841/bnbrj/index.html
Once you already have the persistence-unit's tag defined you are able to create your entity manager like this:
private final String PERSISTENCE_UNIT_NAME = "PUName";
private EntityManagerFactory eMFactory = Persistence.createEntityManagerFactory(PERSISTENCE_UNIT_NAME);
EntityManager entityManager=eMFactory.createEntityManager();

Property access of the returned object throws ODatabaseException: Database not set in current thread

I'm using orientdb-object-2.1.9 and trying to setup a basic repository to save and find objects.
But when accessing any property of the returned object from the database, it throws an ODatabaseException, that Database is not set in current thread.
Here is a failing test, showing my usage of the API.
import javax.persistence.Id;
import javax.persistence.Version;
import com.orientechnologies.orient.core.db.OPartitionedDatabasePool;
import com.orientechnologies.orient.object.db.OObjectDatabaseTx;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
public class ObjectDatabaseTest {
private MyObjectAuthorRepository repository;
#Before
public void setUp() {
repository = new MyObjectAuthorRepository();
}
#After
public void tearDown() {
repository.close();
}
#Test
public void testAuthor() {
Author savedAuthor = repository.saveAuthor(new Author("Author Name"));
// a detached object also fails when accessing the property
// Assert.assertEquals("Author Name", savedAuthor.getAuthorName());
Author author = repository.findAuthor();
Assert.assertEquals("Author Name", author.getAuthorName());
}
class MyObjectAuthorRepository {
private final OPartitionedDatabasePool pool;
public MyObjectAuthorRepository() {
pool = new OPartitionedDatabasePool("memory:test", "admin", "admin");
pool.setAutoCreate(true);
try (OObjectDatabaseTx db = new OObjectDatabaseTx(pool.acquire())) {
db.setAutomaticSchemaGeneration(true);
db.getEntityManager().registerEntityClass(Author.class);
}
}
private Author saveAuthor(Author author) {
OObjectDatabaseTx db = new OObjectDatabaseTx(pool.acquire());
try {
db.begin();
Author savedAuthor = db.save(author);
db.commit();
return db.detach(savedAuthor);
} catch (Exception ex) {
db.rollback();
throw ex;
} finally {
db.close();
}
}
public Author findAuthor() {
try (OObjectDatabaseTx db = new OObjectDatabaseTx(pool.acquire())) {
return db.browseClass(Author.class).next();
}
}
public void close() {
pool.close();
}
}
#javax.persistence.Entity
public class Author {
#Id
private String id;
#Version
private Long version;
private String authorName;
public Author() {
}
public Author(String authorName) {
this.authorName = authorName;
}
public String getId() {
return id;
}
public Long getVersion() {
return version;
}
public String getAuthorName() {
return authorName;
}
public void setAuthorName(String authorName) {
this.authorName = authorName;
}
}
}
Please let me know, if the API should be used in a different way or if any other configuration I'm missing here above. It'll be really helpful. Thanks.

Consuming REST API and getting 404 ErrorCode

Here is the information for my REST Service.
EndPoint https://spectrumcore.myCompany.com
Resources : /spectrum-core/services/customer/ept/getSoloIdentifiersV1x0
Here is my code.
package com.spectrum.biller;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
#SpringBootApplication
public class BillerApplication {
private static final Logger log = LoggerFactory.getLogger(BillerApplication.class);
public static void main(String[] args) {
SpringApplication.run(BillerApplication.class, args);
}
}
package com.spectrum.biller.controllers;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;
import com.spectrum.biller.exception.BillerException;
import com.spectrum.biller.model.SoloIdentifiersRequest;
import com.spectrum.biller.model.SoloIdentifiersResponse;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
#RestController
#RequestMapping("/biller")
#ComponentScan("com.spectrum.biller")
public class BillerControllers {
private static final Logger log = LoggerFactory.getLogger(BillerControllers.class);
#Value("${biller.service.url}")
private String billerServiceUrl;
#GetMapping(value = "/soloIdentifiers", produces= {"application/json"})
#ResponseBody
public SoloIdentifiersResponse getSoloIdentifiers(
//#ModelAttribute SoloIdentifiersRequest soloIdentifiersRequest
#RequestParam String systemID,
#RequestParam String divisionID,
#RequestParam String accountNumber
) {
try {
RestTemplate restTemplate = new RestTemplate();
SoloIdentifiersRequest soloIdentifiersRequest = new SoloIdentifiersRequest();
soloIdentifiersRequest.setSystemID(systemID);
soloIdentifiersRequest.setDivisionID(divisionID);
soloIdentifiersRequest.setAccountNumber(accountNumber);
SoloIdentifiersResponse soloIdentifiersResponse =
restTemplate.getForObject(billerServiceUrl, SoloIdentifiersResponse.class, soloIdentifiersRequest);
return soloIdentifiersResponse;
} catch ( Exception e) {
throw new BillerException("Error in Biller Client " + e.getMessage() + e);
}
}
}
My application.yml file
server:
port : 8080
biller.service:
url: https://spectrumcore.myCompany.com/spectrum-core/services/customer/ept/getSoloIdentifiersV1x0
package com.spectrum.biller.model;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
#JsonIgnoreProperties
public class SoloIdentifiersRequest {
private String systemID;
private String divisionID;
private String accountNumber;
public String getSystemID() {
return systemID;
}
public void setSystemID(String systemID) {
this.systemID = systemID;
}
public String getDivisionID() {
return divisionID;
}
public void setDivisionID(String divisionID) {
this.divisionID = divisionID;
}
public String getAccountNumber() {
return accountNumber;
}
public void setAccountNumber(String accountNumber) {
this.accountNumber = accountNumber;
}
#Override
public String toString() {
return "SoloIdentifiersRequest [systemID=" + systemID + ", divisionID=" + divisionID + ", accountNumber="
+ accountNumber + "]";
}
}
package com.spectrum.biller.model;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
#JsonIgnoreProperties
public class SoloIdentifiersResponse {
private String uCAN;
private String divisionID;
private String accountNumber;
private String locationNumber;
private String customerNumber;
private String soloAccountNumber;
private String soloLocationNumber;
private String soloPartyID;
private String billingStationLevel1Code;
private String billingStationLevel2Code;
private String billingStationID;
private String sourceFTACode;
public String getuCAN() {
return uCAN;
}
public void setuCAN(String uCAN) {
this.uCAN = uCAN;
}
public String getDivisionID() {
return divisionID;
}
public void setDivisionID(String divisionID) {
this.divisionID = divisionID;
}
public String getAccountNumber() {
return accountNumber;
}
public void setAccountNumber(String accountNumber) {
this.accountNumber = accountNumber;
}
public String getLocationNumber() {
return locationNumber;
}
public void setLocationNumber(String locationNumber) {
this.locationNumber = locationNumber;
}
public String getCustomerNumber() {
return customerNumber;
}
public void setCustomerNumber(String customerNumber) {
this.customerNumber = customerNumber;
}
public String getSoloAccountNumber() {
return soloAccountNumber;
}
public void setSoloAccountNumber(String soloAccountNumber) {
this.soloAccountNumber = soloAccountNumber;
}
public String getSoloLocationNumber() {
return soloLocationNumber;
}
public void setSoloLocationNumber(String soloLocationNumber) {
this.soloLocationNumber = soloLocationNumber;
}
public String getSoloPartyID() {
return soloPartyID;
}
public void setSoloPartyID(String soloPartyID) {
this.soloPartyID = soloPartyID;
}
public String getBillingStationLevel1Code() {
return billingStationLevel1Code;
}
public void setBillingStationLevel1Code(String billingStationLevel1Code) {
this.billingStationLevel1Code = billingStationLevel1Code;
}
public String getBillingStationLevel2Code() {
return billingStationLevel2Code;
}
public void setBillingStationLevel2Code(String billingStationLevel2Code) {
this.billingStationLevel2Code = billingStationLevel2Code;
}
public String getBillingStationID() {
return billingStationID;
}
public void setBillingStationID(String billingStationID) {
this.billingStationID = billingStationID;
}
public String getSourceFTACode() {
return sourceFTACode;
}
public void setSourceFTACode(String sourceFTACode) {
this.sourceFTACode = sourceFTACode;
}
#Override
public String toString() {
return "SoloIdentifiersResponse [uCAN=" + uCAN + ", divisionID=" + divisionID + ", accountNumber="
+ accountNumber + ", locationNumber=" + locationNumber + ", customerNumber=" + customerNumber
+ ", soloAccountNumber=" + soloAccountNumber + ", soloLocationNumber=" + soloLocationNumber
+ ", soloPartyID=" + soloPartyID + ", billingStationLevel1Code=" + billingStationLevel1Code
+ ", billingStationLevel2Code=" + billingStationLevel2Code + ", billingStationID=" + billingStationID
+ ", sourceFTACode=" + sourceFTACode + "]";
}
}
My url to test the app.
http://localhost:8080/biller/soloIdentifiers?systemID=ProvSvcs&divisionID=LBT.8150&accountNumber=8150300010008485
I am getting
Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Mon Jan 27 15:18:19 MST 2020
There was an unexpected error (type=Internal Server Error, status=500).
Error in Biller Client 400 : [{ "errorResponse" : { "errors" : [ { "code" : "1000", "description" : "Invalid Request Exception", "source" : "SPECTRUM_CORE" } ] } }]org.springframework.web.client.HttpClientErrorException$BadRequest: 400 : [{ "errorResponse" : { "errors" : [ { "code" : "1000", "description" : "Invalid Request Exception", "source" : "SPECTRUM_CORE" } ] } }]
Here is the input I am adding in soapUI and getting below response as well.
<GetSoloIdentifiersRequest>
<systemID>ProvSvcs</systemID>
<divisionID>LBT.8150</divisionID>
<accountNumber>8150300010008485</accountNumber>
</GetSoloIdentifiersRequest> <getSoloIdentifiersResponse>
<uCAN>57922705670</uCAN>
<divisionID>LBT.8150</divisionID>
<accountNumber>8150300010008485</accountNumber>
<locationNumber>10992150205033</locationNumber>
<customerNumber>1104018630888</customerNumber>
<soloAccountNumber>71694273</soloAccountNumber>
<soloLocationNumber>235342534</soloLocationNumber>
<soloPartyID>55379641</soloPartyID>
<billingStationLevel1Code>8150</billingStationLevel1Code>
<billingStationLevel2Code>3000</billingStationLevel2Code>
<billingStationID>32455613</billingStationID>
<sourceFTACode>0010</sourceFTACode>
</getSoloIdentifiersResponse>