You need to sign in to do that
Don't have an account?

Error: Compile Error: Invalid type: nphaseComUnifiedwebserviceV2.GetStateAndServicesListResponse at line 16 column 13
I am working on my first outbound message api integration and it seems I need some apex to assist with this. I have the following class:
//Methods Included: GoToState, GetStateAndServicesList
// Primary Port Class Name: BasicHttpBinding_IStateService
public class nphaseComUnifiedwebserviceV2 {
public class BasicHttpBinding_IStateService {
public String endpoint_x = 'https://uws.apps.nphase.com/api/v2/StateService.svc?wsdl';
public Map<String,String> inputHttpHeaders_x;
public Map<String,String> outputHttpHeaders_x;
public String clientCertName_x;
public String clientCert_x;
public String clientCertPasswd_x;
public Integer timeout_x;
private String[] ns_map_type_info = new String[]{'http://nphase.com/unifiedwebservice/v2','nphaseComUnifiedwebserviceV2','http://schemas.microsoft.com/2003/10/Serialization/','schemasMicrosoftCom200310Serializat','http://schemas.datacontract.org/2004/07/NPhase.UnifiedWebService.APIs.v2.Contract.StateService','schemasDatacontractOrg200407NphaseU','http://schemas.datacontract.org/2004/07/NPhase.UnifiedWebService.APIs.v2.Contract.Common','schemasDatacontractOrg200407NphaseU1','http://schemas.microsoft.com/2003/10/Serialization/Arrays','schemasMicrosoftCom200310Serializat1'};
public nphaseComUnifiedwebserviceV2.GetStateAndServicesListResponse_element GetStateAndServicesList(schemasDatacontractOrg200407NphaseU.GetStateAndServicesListRequest Input) {
nphaseComUnifiedwebserviceV2.GetStateAndServicesList_element request_x = new nphaseComUnifiedwebserviceV2.GetStateAndServicesList_element();
nphaseComUnifiedwebserviceV2.GetStateAndServicesListResponse response_x;
request_x.Input = Input;
Map<String, nphaseComUnifiedwebserviceV2.GetStateAndServicesListResponse> response_map_x = new Map<String, nphaseComUnifiedwebserviceV2.GetStateAndServicesListResponse>();
response_map_x.put('response_x', response_x);
WebServiceCallout.invoke(
this,
request_x,
response_map_x,
new String[]{endpoint_x,
'http://nphase.com/unifiedwebservice/v2/IStateService/GetStateAndServicesList',
'http://nphase.com/unifiedwebservice/v2',
'GetStateAndServicesList',
'http://nphase.com/unifiedwebservice/v2',
'GetStateAndServicesListResponse',
'nphaseComUnifiedwebserviceV2.GetStateAndServicesListResponse'}
);
response_x = response_map_x.get('response_x');
return response_x;
}
public nphaseComUnifiedwebserviceV2.GoToStateResponse_element GoToState(schemasDatacontractOrg200407NphaseU.GoToStateRequest Input) {
nphaseComUnifiedwebserviceV2.GoToState_element request_x = new nphaseComUnifiedwebserviceV2.GoToState_element();
nphaseComUnifiedwebserviceV2.GoToStateResponse response_x;
request_x.Input = Input;
Map<String, nphaseComUnifiedwebserviceV2.GoToStateResponse> response_map_x = new Map<String, nphaseComUnifiedwebserviceV2.GoToStateResponse>();
response_map_x.put('response_x', response_x);
WebServiceCallout.invoke(
this,
request_x,
response_map_x,
new String[]{endpoint_x,
'http://nphase.com/unifiedwebservice/v2/IStateService/GoToState',
'http://nphase.com/unifiedwebservice/v2',
'GoToState',
'http://nphase.com/unifiedwebservice/v2',
'GoToStateResponse',
'nphaseComUnifiedwebserviceV2.GoToStateResponse'}
);
response_x = response_map_x.get('response_x');
return response_x;
}
}
public class GetStateAndServicesList_element {
public schemasDatacontractOrg200407NphaseU.GetStateAndServicesListRequest Input;
private String[] Input_type_info = new String[]{'Input','http://nphase.com/unifiedwebservice/v2','GetStateAndServicesListRequest','0','1','true'};
private String[] apex_schema_type_info = new String[]{'http://nphase.com/unifiedwebservice/v2','true','false'};
private String[] field_order_type_info = new String[]{'Input'};
}
public class GetStateAndServicesListResponse_element {
public nphaseComUnifiedwebserviceV2.GetStateAndServicesListResponse Output;
private String[] Output_type_info = new String[]{'Output','http://nphase.com/unifiedwebservice/v2','GetStateAndServicesListResponse','0','1','true'};
private String[] apex_schema_type_info = new String[]{'http://nphase.com/unifiedwebservice/v2','true','false'};
private String[] field_order_type_info = new String[]{'Output'};
}
public class GoToState_element {
public schemasDatacontractOrg200407NphaseU.GoToStateRequest Input;
private String[] Input_type_info = new String[]{'Input','http://nphase.com/unifiedwebservice/v2','GoToStateRequest','0','1','true'};
private String[] apex_schema_type_info = new String[]{'http://nphase.com/unifiedwebservice/v2','true','false'};
private String[] field_order_type_info = new String[]{'Input'};
}
public class GoToStateResponse_element {
public nphaseComUnifiedwebserviceV2.GoToStateResponse Output;
private String[] Output_type_info = new String[]{'Output','http://nphase.com/unifiedwebservice/v2','GoToStateResponse','0','1','true'};
private String[] apex_schema_type_info = new String[]{'http://nphase.com/unifiedwebservice/v2','true','false'};
private String[] field_order_type_info = new String[]{'Output'};
}
}
And I am receiving the following error:
Error: Compile Error: Invalid type: nphaseComUnifiedwebserviceV2.GetStateAndServicesListResponse at line 16 column 13
Anyone have any solutions or suggestions?
Thanks
Jerry
//Methods Included: GoToState, GetStateAndServicesList
// Primary Port Class Name: BasicHttpBinding_IStateService
public class nphaseComUnifiedwebserviceV2 {
public class BasicHttpBinding_IStateService {
public String endpoint_x = 'https://uws.apps.nphase.com/api/v2/StateService.svc?wsdl';
public Map<String,String> inputHttpHeaders_x;
public Map<String,String> outputHttpHeaders_x;
public String clientCertName_x;
public String clientCert_x;
public String clientCertPasswd_x;
public Integer timeout_x;
private String[] ns_map_type_info = new String[]{'http://nphase.com/unifiedwebservice/v2','nphaseComUnifiedwebserviceV2','http://schemas.microsoft.com/2003/10/Serialization/','schemasMicrosoftCom200310Serializat','http://schemas.datacontract.org/2004/07/NPhase.UnifiedWebService.APIs.v2.Contract.StateService','schemasDatacontractOrg200407NphaseU','http://schemas.datacontract.org/2004/07/NPhase.UnifiedWebService.APIs.v2.Contract.Common','schemasDatacontractOrg200407NphaseU1','http://schemas.microsoft.com/2003/10/Serialization/Arrays','schemasMicrosoftCom200310Serializat1'};
public nphaseComUnifiedwebserviceV2.GetStateAndServicesListResponse_element GetStateAndServicesList(schemasDatacontractOrg200407NphaseU.GetStateAndServicesListRequest Input) {
nphaseComUnifiedwebserviceV2.GetStateAndServicesList_element request_x = new nphaseComUnifiedwebserviceV2.GetStateAndServicesList_element();
nphaseComUnifiedwebserviceV2.GetStateAndServicesListResponse response_x;
request_x.Input = Input;
Map<String, nphaseComUnifiedwebserviceV2.GetStateAndServicesListResponse> response_map_x = new Map<String, nphaseComUnifiedwebserviceV2.GetStateAndServicesListResponse>();
response_map_x.put('response_x', response_x);
WebServiceCallout.invoke(
this,
request_x,
response_map_x,
new String[]{endpoint_x,
'http://nphase.com/unifiedwebservice/v2/IStateService/GetStateAndServicesList',
'http://nphase.com/unifiedwebservice/v2',
'GetStateAndServicesList',
'http://nphase.com/unifiedwebservice/v2',
'GetStateAndServicesListResponse',
'nphaseComUnifiedwebserviceV2.GetStateAndServicesListResponse'}
);
response_x = response_map_x.get('response_x');
return response_x;
}
public nphaseComUnifiedwebserviceV2.GoToStateResponse_element GoToState(schemasDatacontractOrg200407NphaseU.GoToStateRequest Input) {
nphaseComUnifiedwebserviceV2.GoToState_element request_x = new nphaseComUnifiedwebserviceV2.GoToState_element();
nphaseComUnifiedwebserviceV2.GoToStateResponse response_x;
request_x.Input = Input;
Map<String, nphaseComUnifiedwebserviceV2.GoToStateResponse> response_map_x = new Map<String, nphaseComUnifiedwebserviceV2.GoToStateResponse>();
response_map_x.put('response_x', response_x);
WebServiceCallout.invoke(
this,
request_x,
response_map_x,
new String[]{endpoint_x,
'http://nphase.com/unifiedwebservice/v2/IStateService/GoToState',
'http://nphase.com/unifiedwebservice/v2',
'GoToState',
'http://nphase.com/unifiedwebservice/v2',
'GoToStateResponse',
'nphaseComUnifiedwebserviceV2.GoToStateResponse'}
);
response_x = response_map_x.get('response_x');
return response_x;
}
}
public class GetStateAndServicesList_element {
public schemasDatacontractOrg200407NphaseU.GetStateAndServicesListRequest Input;
private String[] Input_type_info = new String[]{'Input','http://nphase.com/unifiedwebservice/v2','GetStateAndServicesListRequest','0','1','true'};
private String[] apex_schema_type_info = new String[]{'http://nphase.com/unifiedwebservice/v2','true','false'};
private String[] field_order_type_info = new String[]{'Input'};
}
public class GetStateAndServicesListResponse_element {
public nphaseComUnifiedwebserviceV2.GetStateAndServicesListResponse Output;
private String[] Output_type_info = new String[]{'Output','http://nphase.com/unifiedwebservice/v2','GetStateAndServicesListResponse','0','1','true'};
private String[] apex_schema_type_info = new String[]{'http://nphase.com/unifiedwebservice/v2','true','false'};
private String[] field_order_type_info = new String[]{'Output'};
}
public class GoToState_element {
public schemasDatacontractOrg200407NphaseU.GoToStateRequest Input;
private String[] Input_type_info = new String[]{'Input','http://nphase.com/unifiedwebservice/v2','GoToStateRequest','0','1','true'};
private String[] apex_schema_type_info = new String[]{'http://nphase.com/unifiedwebservice/v2','true','false'};
private String[] field_order_type_info = new String[]{'Input'};
}
public class GoToStateResponse_element {
public nphaseComUnifiedwebserviceV2.GoToStateResponse Output;
private String[] Output_type_info = new String[]{'Output','http://nphase.com/unifiedwebservice/v2','GoToStateResponse','0','1','true'};
private String[] apex_schema_type_info = new String[]{'http://nphase.com/unifiedwebservice/v2','true','false'};
private String[] field_order_type_info = new String[]{'Output'};
}
}
And I am receiving the following error:
Error: Compile Error: Invalid type: nphaseComUnifiedwebserviceV2.GetStateAndServicesListResponse at line 16 column 13
Anyone have any solutions or suggestions?
Thanks
Jerry